diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/ServiceOperations.json index dfe832292f6b..fa6c48a11e60 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/ServiceOperations.json @@ -172,6 +172,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailabilityWithoutLocation_Execute", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "description": "Check the availability of name for server", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if server name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": { "post": { "tags": [ @@ -273,6 +318,16 @@ "VirtualNetworkSubnetUsageResult": { "type": "object", "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The location name." + }, + "subscriptionId": { + "type": "string", + "readOnly": true, + "description": "The subscription id." + }, "delegatedSubnetsUsage": { "description": "A list of delegated subnet usage", "type": "array", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json index 646038764a13..4c111a729639 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/CheckVirtualNetworkSubnetUsage.json @@ -10,6 +10,8 @@ "responses": { "200": { "body": { + "location": "WestUS", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "delegatedSubnetsUsage": [ { "subnetName": "test-subnet-1", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/examples/CheckVirtualNetworkSubnetUsage.json index 85e4f9f375b4..2b0581ba73b6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/examples/CheckVirtualNetworkSubnetUsage.json @@ -10,6 +10,8 @@ "responses": { "200": { "body": { + "location": "WestUS", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "delegatedSubnetsUsage": [ { "subnetName": "test-subnet-1", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/mysql.json index 59f6d97fa9d2..3b4a6c483e1f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2021-05-01/mysql.json @@ -1387,6 +1387,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailabilityWithoutLocation_Execute", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "description": "Check the availability of name for server", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if server name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": { "post": { "tags": [ @@ -2300,6 +2345,16 @@ "VirtualNetworkSubnetUsageResult": { "type": "object", "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The location name." + }, + "subscriptionId": { + "type": "string", + "readOnly": true, + "description": "The subscription id." + }, "delegatedSubnetsUsage": { "description": "A list of delegated subnet usage", "type": "array",