Scheduled Actions - Check Name Availability
Checks availability and correctness of the name for a scheduled action.
POST https://management.azure.com/providers/Microsoft.CostManagement/checkNameAvailability?api-version=2023-11-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the resource for which availability needs to be checked. |
| type |
string |
The resource type. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Response of scheduled action name availability. |
|
| Other Status Codes |
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
ScheduledActionCheckNameAvailability
Sample request
POST https://management.azure.com/providers/Microsoft.CostManagement/checkNameAvailability?api-version=2023-11-01
{
"name": "testName",
"type": "Microsoft.CostManagement/ScheduledActions"
}
Sample response
{
"nameAvailable": false,
"reason": "AlreadyExists",
"message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name."
}
Definitions
| Name | Description |
|---|---|
|
Check |
The reason why the given name is not available. |
|
Check |
The check availability request body. |
|
Check |
The check availability result. |
|
Error |
The details of the error. |
|
Error |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. Some Error responses:
|
CheckNameAvailabilityReason
The reason why the given name is not available.
| Value | Description |
|---|---|
| Invalid | |
| AlreadyExists |
CheckNameAvailabilityRequest
The check availability request body.
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the resource for which availability needs to be checked. |
| type |
string |
The resource type. |
CheckNameAvailabilityResponse
The check availability result.
| Name | Type | Description |
|---|---|---|
| message |
string |
Detailed reason why the given name is available. |
| nameAvailable |
boolean |
Indicates if the resource name is available. |
| reason |
The reason why the given name is not available. |
ErrorDetailsWithNestedDetails
The details of the error.
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code. |
| details |
The additional details of the error. |
|
| message |
string |
Error message indicating why the operation failed. |
ErrorResponseWithNestedDetails
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
Some Error responses:
429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header.
503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header.
| Name | Type | Description |
|---|---|---|
| error |
The details of the error. |