{ "swagger": "2.0", "info": { "title": "NetworkManagementClient", "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", "version": "2019-07-01" }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow.", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability": { "get": { "operationId": "CheckDnsNameAvailability", "description": "Checks whether a domain name in the cloudapp.azure.com zone is available for use.", "parameters": [ { "name": "location", "in": "path", "required": true, "type": "string", "description": "The location of the domain name." }, { "name": "domainNameLabel", "in": "query", "required": true, "type": "string", "description": "The domain name to be verified. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$." }, { "$ref": "./network.json#/parameters/ApiVersionParameter" }, { "$ref": "./network.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Request successful. Returns whether the DNS name is available.", "schema": { "$ref": "#/definitions/DnsNameAvailabilityResult" } } }, "x-ms-examples": { "Check Dns Name Availability": { "$ref": "./examples/CheckDnsNameAvailability.json" } } } } }, "definitions": { "DnsNameAvailabilityResult": { "properties": { "available": { "type": "boolean", "description": "Domain availability (True/False)." } }, "description": "Response for the CheckDnsNameAvailability API service call." } } }