Version Infos
- URL:https://<versionmanagementservice-url>/versionInfos
- Version Introduced:10.6
Description
For the specified feature service, return the info of all versions that the client has access to. If the client is the service owner (the user that published the service), all versions are accessible and will be returned.
Request Parameters
Parameter | Details |
---|---|
f | Description: Optional parameter to specify the output format of the response. The default response format is html. Values: html | json |
ownerFilter | Description: Optional parameter to filter the versions by the owner. Syntax: ownerFilter=<userIdentity> |
includeHidden | Description: Optional boolean parameter specifying whether or not to return versions whose access is hidden. The default value for user is false. Values: true | false |
JSON Response Syntax
{
"versions": [
"versionName": <versionName>,
"versionGuid": <guid>,
"description": <description>,
"creationDate": <dateTime>,
"modifiedDate": <dateTime>,
"reconcileDate": <dateTime>,
"evaluationDate": <dateTime>,
"commonAncestorDate": <dateTime>,
"access": "private" | "public" | "protected"
}
],
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}

Example usage
Return information for versions using the versionInfos operation.
Request URL and parameters:
https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versionInfos
f=json
ownerFilter=unadmin
includeHidden=false
JSON response:
{
"versions": [
{
"versionName": "unadmin.project2a",
"versionGuid": "{496C55E1-86EA-4F06-8FC8-8D5BBCBD7761}",
"description": "Created from the rest endpoint",
"creationDate": 1549926318552,
"modifiedDate": 1549926318552,
"reconcileDate": null,
"evaluationDate": null,
"commonAncestorDate": 1549926318552,
"access": "public"
},
{
"versionName": "unadmin.project2b",
"versionGuid": "{E8EBB6AE-F7D8-45B2-806E-D745943682FC}",
"description": "Created from the rest endpoint",
"creationDate": 1549926344967,
"modifiedDate": 1549926344967,
"reconcileDate": null,
"evaluationDate": null,
"commonAncestorDate": 1549926344967,
"access": "public"
}
],
"success": true
}