Share via


Accounts - Check Name Availability

Checks whether the specified account name is available or taken.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/checkNameAvailability?api-version=2016-11-01

URI Parameters

Name In Required Type Description
location
path True

string

The resource location without whitespace.

subscriptionId
path True

string

Gets subscription credentials which uniquely identify 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 Data Lake Store name to check availability for.

type True enum:

Microsoft.DataLakeStore/accounts

The resource type. Note: This should not be set by the user, as the constant value is Microsoft.DataLakeStore/accounts

Responses

Name Type Description
200 OK

NameAvailabilityInformation

Successfully retrieved the Data Lake Store account name availability information.

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

Checks whether the specified account name is available or taken

Sample request

POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DataLakeStore/locations/EastUS2/checkNameAvailability?api-version=2016-11-01

{
  "name": "contosoadla",
  "type": "Microsoft.DataLakeStore/accounts"
}

Sample response

{
  "nameAvailable": false,
  "reason": "AlreadyExists",
  "message": "An account named 'abc' already exists."
}

Definitions

Name Description
CheckNameAvailabilityParameters

Data Lake Store account name availability check parameters.

NameAvailabilityInformation

Data Lake Store account name availability result information.

CheckNameAvailabilityParameters

Data Lake Store account name availability check parameters.

Name Type Description
name

string

The Data Lake Store name to check availability for.

type enum:

Microsoft.DataLakeStore/accounts

The resource type. Note: This should not be set by the user, as the constant value is Microsoft.DataLakeStore/accounts

NameAvailabilityInformation

Data Lake Store account name availability result information.

Name Type Description
message

string

The message describing why the Data Lake Store account name is not available, if nameAvailable is false.

nameAvailable

boolean

The Boolean value of true or false to indicate whether the Data Lake Store account name is available or not.

reason

string

The reason why the Data Lake Store account name is not available, if nameAvailable is false.