Apps - Check Name Availability
Check if an IoT Central application name is available.
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string |
The subscription identifier. |
|
api-version
|
query | True |
string |
The version of the API. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| name | True |
string |
The name of the IoT Central application instance to check. |
| type |
string |
The type of the IoT Central resource to query. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the IoT Central application name is available. If the name is not available, the body contains the reason. |
|
| Other Status Codes |
DefaultErrorResponse |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Apps_CheckNameAvailability
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01
{
"name": "myiotcentralapp",
"type": "IoTApps"
}
Sample response
code: 200
{
"nameAvailable": true
}
{
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
Definitions
| Name | Description |
|---|---|
|
App |
The properties indicating whether a given IoT Central application name or subdomain is available. |
|
Cloud |
Error details. |
|
Cloud |
Details of error response. |
|
Operation |
Input values. |
AppAvailabilityInfo
The properties indicating whether a given IoT Central application name or subdomain is available.
| Name | Type | Description |
|---|---|---|
| message |
string |
The detailed reason message. |
| nameAvailable |
boolean |
The value which indicates whether the provided name is available. |
| reason |
string |
The reason for unavailability. |
CloudError
Error details.
| Name | Type | Description |
|---|---|---|
| error.code |
string |
The error code. |
| error.details |
A list of additional details about the error. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The target of the particular error. |
CloudErrorBody
Details of error response.
| Name | Type | Description |
|---|---|---|
| code |
string |
The error code. |
| details |
A list of additional details about the error. |
|
| message |
string |
The error message. |
| target |
string |
The target of the particular error. |
OperationInputs
Input values.
| Name | Type | Default value | Description |
|---|---|---|---|
| name |
string |
The name of the IoT Central application instance to check. |
|
| type |
string |
IoTApps |
The type of the IoT Central resource to query. |