- URL:
- https://<root>/services/isServiceNameAvailable
- Methods:
POST- Version Introduced:
- 12.0
Description
The is operation queries existing services to determine if a service name is available or if it is already in use. Video services cannot have duplicate names.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The requested name of the service, formatted as a string. |
(Required) | The output format for this operation. The default value is Values: |
(Required) | Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation. |
Example usage
The following is a sample POST request for the is operation:
POST /arcgis/rest/services/sampleService/VideoServer/layerId/update/poster HTTP/1.1
Host: organization.example.com:21443
Content-Type: application/x-www-form-urlencoded
Content-Length: []
serviceName=testService&f=pjson&token=<token>JSON Response syntax
{
"available": <true | false>
}JSON Response example
{
"available": true
}