Accounts - Check Name Availability

Checks whether the specified account name is available or taken.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/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

Get 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 Analytics name to check availability for.

type True enum:

Microsoft.DataLakeAnalytics/accounts

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

Responses

Name Type Description
200 OK

NameAvailabilityInformation

Successfully retrieved the Data Lake Analytics account name availability information.

Other Status Codes

ErrorResponse

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.DataLakeAnalytics/locations/EastUS2/checkNameAvailability?api-version=2016-11-01

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

Sample Response

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

Definitions

Name Description
CheckNameAvailabilityParameters

Data Lake Analytics account name availability check parameters.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

NameAvailabilityInformation

Data Lake Analytics account name availability result information.

CheckNameAvailabilityParameters

Data Lake Analytics account name availability check parameters.

Name Type Description
name

string

The Data Lake Analytics name to check availability for.

type enum:

Microsoft.DataLakeAnalytics/accounts

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

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

NameAvailabilityInformation

Data Lake Analytics account name availability result information.

Name Type Description
message

string

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

nameAvailable

boolean

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

reason

string

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