Iot Hub Resource - Check Name Availability
Check if an IoT hub name is available.
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscriptionId
|
path | True |
|
The subscription identifier. |
|
api-version
|
query | True |
|
The version of the API. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| Name | True |
|
The name of the IoT hub to check. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the IoT hub name is available. If the name is not available, the body contains the reason. |
|
| Other Status Codes |
DefaultErrorResponse |
Definitions
| ErrorDetails | |
| IotHubNameAvailabilityInfo |
| Name | Type | Description |
|---|---|---|
| Code |
|
The error code. |
| Details |
|
The error details. |
| HttpStatusCode |
|
The HTTP status code. |
| Message |
|
The error message. |
| Name | Type | Description |
|---|---|---|
| message |
|
The detailed reason message. |
| nameAvailable |
|
The value which indicates whether the provided name is available. |
| reason |
|
The reason for unavailability. |