Disaster Recovery Configs - Check Name Availability
Check the give namespace name availability.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability?api-version=2024-01-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
namespace
|
path | True |
string |
The namespace name |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
name | True |
string |
The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
check availability returned successfully. |
|
Other Status Codes |
ServiceBus 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
AliasNameAvailability
Sample request
Sample response
{
"nameAvailable": true,
"reason": "None",
"message": ""
}
Definitions
Name | Description |
---|---|
Check |
Description of a Check Name availability request properties. |
Check |
Description of a Check Name availability request properties. |
Error |
The error object. |
Error |
The resource management error additional info. |
Error |
The resource management error response. |
Unavailable |
Specifies the reason for the unavailability of the service. |
CheckNameAvailability
Description of a Check Name availability request properties.
Name | Type | Description |
---|---|---|
name |
string |
The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number. |
CheckNameAvailabilityResult
Description of a Check Name availability request properties.
Name | Type | Description |
---|---|---|
message |
string |
The detailed info regarding the reason associated with the namespace. |
nameAvailable |
boolean |
Value indicating namespace is availability, true if the namespace is available; otherwise, false. |
reason |
The reason for unavailability of a namespace. |
Error
The error object.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
The resource management error response.
Name | Type | Description |
---|---|---|
error |
The error object. |
UnavailableReason
Specifies the reason for the unavailability of the service.
Name | Type | Description |
---|---|---|
InvalidName |
string |
|
NameInLockdown |
string |
|
NameInUse |
string |
|
None |
string |
|
SubscriptionIsDisabled |
string |
|
TooManyNamespaceInCurrentSubscription |
string |