- URL:
- https://<root>/System/PublishingTools/GPServer/Is Datastore Registered/submitJob
- Methods:
GETPOST- Version Introduced:
- 11.4
Description
The Is Datastore Registered operation checks whether a specific data store has been registered with an organization. The operation either returns a list of matching data stores or, if there are no matches, an empty array for matched. The Is Datastore Registered operation should be performed as the second step in moving a map service from one organization to another. For more information on this workflow, and supported service types, see the Export Service documentation.
Request parameters
| Parameter | Details |
|---|---|
(Required) | A JSON object containing the data store's information. The object must contain the |
(Optional) | A set of additional options for the request. At this time, no options are available or supported. |
(Optional) | A Boolean that determines if z-values are included as part of the result. If Values: |
(Optional) | A Boolean that specifies whether true curves will be returned in the output geometries ( Values: |
(Optional) | A Boolean that specifies whether geometries should be simplified ( Values: |
(Optional) | Additional settings that affect the result of the operation:
|
| The response format. The default format is Values: |
Example usage
The following are sample requests (GET and POST) for the Is Datastore Registered operation:
https://machine.domain.com/webadaptor/rest/services/System/PublishingTools/GPServer/Is%20Datastore%20Registered/submitJob?datastore={"path": "/enterpriseDatabases/EGDB_shared_db","type": "egdb","info": {"dataStoreConnectionType": "shared","isManaged": false,"connectionString":"ENCRYPTED_PASSWORD_UTF8=00022e6855315744425a512f754e4f65334b47585574596c4a513d3d2a00ENCRYPTED_PASSWORD=00022e68494e74644572374667587a6f50612b49794b424944413d3d2a00;SERVER=antigua;INSTANCE=sde:oracle$antigua/ant11gr2;DBCLIENT=oracle;DB_CONNECTION_PROPERTIES=antigua/ant11gr2;USER=gdb;VERSION=SDE.DEFAULT;AUTHENTICATION_MODE=DBMS"}}&options=&returnZ=false&returnM=false&returnTrueCurves=false&simplifyFeatures=true&context=&f=pjsonPOST /webadaptor/rest/services/System/PublishingTools/GPServer/Is%20Datastore%20Registered/submitJob HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
datastore={"path": "/enterpriseDatabases/EGDB_shared_db","type": "egdb","info": {"dataStoreConnectionType": "shared","isManaged": false,"connectionString":"ENCRYPTED_PASSWORD_UTF8=00022e6855315744425a512f754e4f65334b47585574596c4a513d3d2a00ENCRYPTED_PASSWORD=00022e68494e74644572374667587a6f50612b49794b424944413d3d2a00;SERVER=antigua;INSTANCE=sde:oracle$antigua/ant11gr2;DBCLIENT=oracle;DB_CONNECTION_PROPERTIES=antigua/ant11gr2;USER=gdb;VERSION=SDE.DEFAULT;AUTHENTICATION_MODE=DBMS"}}&options=&returnZ=false&returnM=false&returnTrueCurves=false&simplifyFeatures=true&context=&f=pjsonJSON Response example
The tabbed sections below outline the workflow to obtain the Is Datastore Registered response.
When the Is Datastore Registered job request is submitted, the following JSON response is returned:
{
"jobId": "j5f3aa768e0a24dcfbdff45f379870553",
"jobStatus": "esriJobSubmitted"
}The value for job can be appended to a modified version of the request URL (shown below) to access the job resource:
https://machine.domain.com/webadaptor/rest/services/System/PublishingTools/GPServer/Is%20Datastore%20Registered/jobs/j5f3aa768e0a24dcfbdff45f379870553?f=pjsonThe job resource can be polled to check the status of the Is Datastore Registered job. When the job is completed successfully, the following JSON response is returned:
{
"jobId": "j3a05c75b952546bc997af96bc01178b9",
"jobStatus": "esriJobSucceeded",
"results": {
"results": {
"paramUrl": "results/results"
}
},
"inputs": {
"datastore": {
"paramUrl": "inputs/datastore"
}
},
"messages": [
{
"type": "esriJobMessageTypeInformative",
"description": "Start Time: Saturday, September 21, 2024 5:17:35 PM"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Succeeded at Saturday, September 21, 2024 5:17:35 PM (Elapsed Time: 0.16 seconds)"
}
]
}The value for the results property's param can be appended to the job resource URL to access the results resource:
https://machine.domain.com/webadaptor/rest/services/System/PublishingTools/GPServer/Is%20Datastore%20Registered/jobs/j0754c83d71884311a53b9d3018d40500/results/resultsIf there are matching data stores, the results resource returns the following JSON response:
{
"paramName": "results",
"dataType": "GPString",
"value": {
"matchedDatastores": [
{
"id": "dc060080e87c405ab99326033f98952e",
"path": "/enterpriseDatabases/EGDB_shared_db"
}
]
}
}If there are no matching data stores, the results resource returns the following JSON response:
{
"paramName": "results",
"dataType": "GPString",
"value": {
"matchedDatastores": []
}
}