Check Front Door Name Availability With Subscription - Check Front Door Name Availability With Subscription
Check the availability of a Front Door subdomain.
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability?api-version=2020-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client API version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
name | True |
string |
The resource name to validate. |
type | True |
The type of the resource whose name is to be validated. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
Other Status Codes |
Front Door error response describing why the operation failed. |
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
CheckNameAvailabilityWithSubscription
Sample request
POST https://management.azure.com/subscriptions/subid/providers/Microsoft.Network/checkFrontDoorNameAvailability?api-version=2020-04-01
{
"name": "sampleName",
"type": "Microsoft.Network/frontDoors/frontendEndpoints"
}
Sample response
{
"nameAvailability": "Unavailable",
"reason": "Name is already in use",
"message": "Name not available"
}
Definitions
Name | Description |
---|---|
Availability |
Indicates whether the name is available. |
Check |
Input of CheckNameAvailability API. |
Check |
Output of check name availability API. |
Error |
Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message. |
Resource |
Type of Front Door resource used in CheckNameAvailability. |
Availability
Indicates whether the name is available.
Value | Description |
---|---|
Available | |
Unavailable |
CheckNameAvailabilityInput
Input of CheckNameAvailability API.
Name | Type | Description |
---|---|---|
name |
string |
The resource name to validate. |
type |
The type of the resource whose name is to be validated. |
CheckNameAvailabilityOutput
Output of check name availability API.
Name | Type | Description |
---|---|---|
message |
string |
The detailed error message describing why the name is not available. |
nameAvailability |
Indicates whether the name is available. |
|
reason |
string |
The reason why the name is not available. |
ErrorResponse
Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message indicating why the operation failed. |
ResourceType
Type of Front Door resource used in CheckNameAvailability.
Value | Description |
---|---|
Microsoft.Network/frontDoors | |
Microsoft.Network/frontDoors/frontendEndpoints |