Check Namespace Availability

Checks the availability of the given service namespace across all Microsoft Azure subscriptions. This is useful because the domain name is created based on the namespace name.

Request

Method Request URI HTTP version
GET https://management.core.windows.net/{subscription ID}/services/ServiceBus/CheckNamespaceAvailability/?namespace=<namespaceValue> HTTP/1.1

The API requires a mandatory query parameter called namespace. If the query parameter is not specified (or other query parameters are specified in addition or instead of namespace), the API returns HTTP Status code – 400 (bad request).

Request Headers

The following table describes required and optional request headers.

Request Header Description
Content-Type Set to application/xml;charset=utf-8.
x-ms-version 2012-03-01

Note that the request also requires a client certificate. This certificate must match the certificate you uploaded for that particular subscription.

Request Body

None.

Response

The response includes an HTTP status code and a set of response headers.

Response Codes

Code Description
200 Success; namespace available.
400 Invalid request body.
405 Method not allowed. A method other than HTTP GET was used.

For information about status codes, see Status and Error Codes.

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header Description
Content-Type application/xml;type=collection;charset=utf-8

Response Body

None.