ArcGIS REST API

Version Management Service

  • URL:https://<catalog-url>/<serviceName>/VersionManagementServer
  • Version Introduced: 10.6

Description

The Version Management Service is responsible for exposing the management capabilities necessary to support feature services that work with branch versioned datasets. This server will only support datasets that are using branch versioning.

Summary graphic of version management server operations.

Example usage

VersionManagementServer

Request URL:

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

JSON Response:

{
  "name": "Version Management Server",
  "type": "Map Server Extension",
  "defaultVersionName": "<versionName>"
  "defaultVersionGuid": <guid>
}

Example:

{
 "name": "Version Management Server",
 "type": "Map Server Extension",
 "defaultVersionName": "SDE.DEFAULT",
 "defaultVersionGuid": "{BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}"
}

VersionManagementServer/versions

Request URL:

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

JSON Response:

An array of objects, each corresponding to the name of a version. Hidden versions are not returned.

{
  "versions" : [
    {
      "versionName": "<versionName>",
      "versionGuid": <guid>
    }
  ]
}

Example:

{
 "versions": [
  {
   "versionName": "SDE.DEFAULT",
   "versionGuid": "{BD3F4817-9A00-41AC-B0CC-58F78DBAE0A1}"
  },
  {
   "versionName": "UNADMIN.ProjectA",
   "versionGuid": "{F93DB9FD-6F39-45D9-A6C7-D43E69EB3076}"
  }
 ],
 "success": true
}

VersionManagementServer/versions/<versionGuid>

Request URL:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions/F93DB9FD-6F39-45D9-A6C7-D43E69EB3076

JSON Response:

{
  "versionName": "<owner.versionName>",
  "versionGuid": <guid>,
  "description": "<description>",
  "creationDate": <dateTime>,
  "modifiedDate": <dateTime>,
  "reconcileDate": <dateTime>,
  "commonAncestorDate": <dateTime>,
  "isBeingEdited": <true | false>,
  "isBeingRead": <true | false>,
  "hasConflicts": <true | false>,
  "isLocked": <true | false>,
  "lockOwner": "<lockOwner>",
  "lockDate": <dateTime>,
  "access": "private" | "public" | "protected", 
}

Example:

{
 "versionName": "UNADMIN.ProjectA",
 "versionGuid": "{F93DB9FD-6F39-45D9-A6C7-D43E69EB3076}",
 "description": "",
 "creationDate": 1550771990888,
 "modifiedDate": 1550853280024,
 "reconcileDate": 1550853215169,
 "commonAncestorDate": 1550853215169,
 "evaluationDate": null,
 "isBeingEdited": false,
 "isBeingRead": false,
 "hasConflicts": false,
 "isLocked": false,
 "lockOwner": "",
 "lockDate": -1,
 "access": "public",
 "success": true
}


In this topic
  1. Description
  2. Example usage