{ "swagger": "2.0", "info": { "title": "MySQLManagementClient", "version": "2024-12-30", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" } ] }, "schemes": [ "https" ], "host": "management.azure.com", "produces": [ "application/json" ], "consumes": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, "tags": [ { "name": "Operations" }, { "name": "AzureADAdministrators" }, { "name": "Servers" }, { "name": "BackupAndExport" }, { "name": "LogFiles" }, { "name": "ServersMigration" }, { "name": "Backups" }, { "name": "LongRunningBackups" }, { "name": "LongRunningBackup" }, { "name": "Configurations" }, { "name": "Databases" }, { "name": "FirewallRules" }, { "name": "AdvancedThreatProtectionSettings" }, { "name": "LocationBasedCapabilitySet" }, { "name": "Maintenances" }, { "name": "PrivateEndpointConnections" }, { "name": "PrivateLinkResources" }, { "name": "Replicas" } ], "paths": { "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": { "post": { "operationId": "GetPrivateDnsZoneSuffix_Execute", "description": "Get private DNS zone suffix in the cloud.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/GetPrivateDnsZoneSuffixResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "GetPrivateDnsZoneSuffix": { "$ref": "./examples/GetPrivateDnsZoneSuffix.json" } } } }, "/providers/Microsoft.DBforMySQL/operations": { "get": { "operationId": "Operations_List", "tags": [ "Operations" ], "description": "List the operations for the provider", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/OperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "OperationList": { "$ref": "./examples/OperationsList.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { "post": { "operationId": "CheckNameAvailabilityWithoutLocation_Execute", "description": "Check the availability of name for server", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "name": "nameAvailabilityRequest", "in": "body", "description": "The request body", "required": true, "schema": { "$ref": "#/definitions/NameAvailabilityRequest" } } ], "responses": { "200": { "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/NameAvailability" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "Check name availability": { "$ref": "./examples/CheckNameAvailabilityWithoutLocation.json" } } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers": { "get": { "operationId": "Servers_List", "tags": [ "Servers" ], "description": "List all the servers in a given subscription.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/ServerListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "List servers in a subscription": { "$ref": "./examples/ServersList.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilities": { "get": { "operationId": "LocationBasedCapabilities_List", "description": "Get capabilities at specified location in a given subscription.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/LocationNameParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/CapabilitiesListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "CapabilitiesList": { "$ref": "./examples/CapabilitiesByLocationList.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilitySets": { "get": { "operationId": "LocationBasedCapabilitySet_List", "tags": [ "LocationBasedCapabilitySet" ], "description": "Get capabilities at specified location in a given subscription.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/LocationNameParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/CapabilitySetsList" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "CapabilitySetsResult": { "$ref": "./examples/CapabilitySetListByLocation.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilitySets/{capabilitySetName}": { "get": { "operationId": "LocationBasedCapabilitySet_Get", "tags": [ "LocationBasedCapabilitySet" ], "description": "Get capabilities at specified location in a given subscription.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/LocationNameParameter" }, { "name": "capabilitySetName", "in": "path", "description": "Name of capability set", "required": true, "type": "string", "default": "default", "pattern": "^[a-z0-9][-a-z0-9]*(?