- URL:https://<versionmanagementservice-url>/versions
- 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.
Request parameters
Parameter | Details |
---|---|
f | The response format. The default response format is html. Values: <html | json> |
JSON Response syntax
{
"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
{
"versions": [
{
"versionName": "SDE.DEFAULT",
"versionGuid": "{BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}"
},
{
"versionName": "UNADMIN.ProjectA",
"versionGuid": "{F93DB9FD-6F39-45D9-A6C7-D43E69EB3076}"
}
],
"success": true
}