Versions

URL:
https://<root>/<serviceName>/VersionManagementServer/versions
Methods:
GET
Child Resources:
Version
Version Introduced:
10.6

Description

The versions resource represents all the versions in a version management service that the current user can access. It is returned as an array of version names. Hidden versions are not included.

Learn more about version access for branch versions

Request parameters

ParameterDetails

f

Specifies the output format of the response. The default response format is html .

Values: <html | json>

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "versions" : [
    {
      "versionName": "<versionName>",
      "versionGuid": <guid>
    }
  ]
}

Example usage

The versions resource is used to return branch versions for the version management service. Hidden versions are not returned.

Request URL and JSON response:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
 "versions": [
  {
   "versionName": "SDE.DEFAULT",
   "versionGuid": "{BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}"
  },
  {
   "versionName": "UNADMIN.ProjectA",
   "versionGuid": "{F93DB9FD-6F39-45D9-A6C7-D43E69EB3076}"
  }
 ],
 "success": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.