v4

latestSwagger 2.0raw.githubusercontent.com2019-05-31182460.5 KB
POST

Check if a provisioning service name is available.

Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable

post/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability

Path parameters

subscriptionIdstring required

The subscription identifier.

Query parameters

api-versionstring required

The version of the API.

Request body

namestring required

The name of the Provisioning Service to check.

Response

This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the provisioning service name is available. If the name is not available, the body contains the reason.

nameAvailableboolean

specifies if a name is available or not

reason'Invalid' | 'AlreadyExists'

specifies the reason a name is unavailable

messagestring

message containing a detailed reason name is unavailable