|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "version": "2023-06-30", |
| 5 | + "title": "MySQLManagementClient", |
| 6 | + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations." |
| 7 | + }, |
| 8 | + "host": "management.azure.com", |
| 9 | + "schemes": [ |
| 10 | + "https" |
| 11 | + ], |
| 12 | + "consumes": [ |
| 13 | + "application/json" |
| 14 | + ], |
| 15 | + "produces": [ |
| 16 | + "application/json" |
| 17 | + ], |
| 18 | + "security": [ |
| 19 | + { |
| 20 | + "azure_auth": [ |
| 21 | + "user_impersonation" |
| 22 | + ] |
| 23 | + } |
| 24 | + ], |
| 25 | + "securityDefinitions": { |
| 26 | + "azure_auth": { |
| 27 | + "type": "oauth2", |
| 28 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
| 29 | + "flow": "implicit", |
| 30 | + "description": "Azure Active Directory OAuth2 Flow", |
| 31 | + "scopes": { |
| 32 | + "user_impersonation": "impersonate your user account" |
| 33 | + } |
| 34 | + } |
| 35 | + }, |
| 36 | + "paths": { |
| 37 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}": { |
| 38 | + "get": { |
| 39 | + "tags": [ |
| 40 | + "PrivateEndpointConnections" |
| 41 | + ], |
| 42 | + "description": "Gets a private endpoint connection.", |
| 43 | + "operationId": "PrivateEndpointConnections_Get", |
| 44 | + "parameters": [ |
| 45 | + { |
| 46 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" |
| 47 | + }, |
| 48 | + { |
| 49 | + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "privateEndpointConnectionName", |
| 53 | + "in": "path", |
| 54 | + "description": "The name of the private endpoint connection.", |
| 55 | + "required": true, |
| 56 | + "type": "string", |
| 57 | + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" |
| 61 | + }, |
| 62 | + { |
| 63 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" |
| 64 | + } |
| 65 | + ], |
| 66 | + "responses": { |
| 67 | + "200": { |
| 68 | + "description": "Successfully retrieved a specified private endpoint connection.", |
| 69 | + "schema": { |
| 70 | + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" |
| 71 | + } |
| 72 | + }, |
| 73 | + "default": { |
| 74 | + "description": "Error response describing why the operation failed.", |
| 75 | + "schema": { |
| 76 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" |
| 77 | + } |
| 78 | + } |
| 79 | + }, |
| 80 | + "x-ms-examples": { |
| 81 | + "Gets private endpoint connection.": { |
| 82 | + "$ref": "./examples/PrivateEndpointConnectionGet.json" |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "put": { |
| 87 | + "tags": [ |
| 88 | + "PrivateEndpointConnections" |
| 89 | + ], |
| 90 | + "description": "Approve or reject a private endpoint connection with a given name.", |
| 91 | + "operationId": "PrivateEndpointConnections_CreateOrUpdate", |
| 92 | + "parameters": [ |
| 93 | + { |
| 94 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" |
| 95 | + }, |
| 96 | + { |
| 97 | + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" |
| 98 | + }, |
| 99 | + { |
| 100 | + "name": "privateEndpointConnectionName", |
| 101 | + "in": "path", |
| 102 | + "required": true, |
| 103 | + "type": "string" |
| 104 | + }, |
| 105 | + { |
| 106 | + "name": "parameters", |
| 107 | + "in": "body", |
| 108 | + "required": true, |
| 109 | + "schema": { |
| 110 | + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" |
| 111 | + } |
| 112 | + }, |
| 113 | + { |
| 114 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" |
| 115 | + }, |
| 116 | + { |
| 117 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" |
| 118 | + } |
| 119 | + ], |
| 120 | + "responses": { |
| 121 | + "200": { |
| 122 | + "description": "Successfully update the private endpoint connection by approving, rejecting or disconnecting it.", |
| 123 | + "schema": { |
| 124 | + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" |
| 125 | + } |
| 126 | + }, |
| 127 | + "201": { |
| 128 | + "description": "Created", |
| 129 | + "schema": { |
| 130 | + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" |
| 131 | + } |
| 132 | + }, |
| 133 | + "202": { |
| 134 | + "description": "Accepted", |
| 135 | + "headers": { |
| 136 | + "Location": { |
| 137 | + "type": "string" |
| 138 | + } |
| 139 | + } |
| 140 | + }, |
| 141 | + "default": { |
| 142 | + "description": "Error response describing why the operation failed.", |
| 143 | + "schema": { |
| 144 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" |
| 145 | + } |
| 146 | + } |
| 147 | + }, |
| 148 | + "x-ms-long-running-operation": true, |
| 149 | + "x-ms-long-running-operation-options": { |
| 150 | + "final-state-via": "azure-async-operation" |
| 151 | + }, |
| 152 | + "x-ms-examples": { |
| 153 | + "Approve or reject a private endpoint connection with a given name.": { |
| 154 | + "$ref": "./examples/PrivateEndpointConnectionUpdate.json" |
| 155 | + } |
| 156 | + } |
| 157 | + }, |
| 158 | + "delete": { |
| 159 | + "tags": [ |
| 160 | + "PrivateEndpointConnections" |
| 161 | + ], |
| 162 | + "description": "Deletes a private endpoint connection with a given name.", |
| 163 | + "operationId": "PrivateEndpointConnections_Delete", |
| 164 | + "parameters": [ |
| 165 | + { |
| 166 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" |
| 167 | + }, |
| 168 | + { |
| 169 | + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" |
| 170 | + }, |
| 171 | + { |
| 172 | + "name": "privateEndpointConnectionName", |
| 173 | + "in": "path", |
| 174 | + "required": true, |
| 175 | + "type": "string" |
| 176 | + }, |
| 177 | + { |
| 178 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" |
| 179 | + }, |
| 180 | + { |
| 181 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" |
| 182 | + } |
| 183 | + ], |
| 184 | + "responses": { |
| 185 | + "200": { |
| 186 | + "description": "Successfully deleted private endpoint connection." |
| 187 | + }, |
| 188 | + "202": { |
| 189 | + "description": "Accepted", |
| 190 | + "headers": { |
| 191 | + "Location": { |
| 192 | + "type": "string" |
| 193 | + } |
| 194 | + } |
| 195 | + }, |
| 196 | + "204": { |
| 197 | + "description": "Private endpoint connection does not exist." |
| 198 | + }, |
| 199 | + "default": { |
| 200 | + "description": "Error response describing why the operation failed.", |
| 201 | + "schema": { |
| 202 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" |
| 203 | + } |
| 204 | + } |
| 205 | + }, |
| 206 | + "x-ms-long-running-operation": true, |
| 207 | + "x-ms-long-running-operation-options": { |
| 208 | + "final-state-via": "location" |
| 209 | + }, |
| 210 | + "x-ms-examples": { |
| 211 | + "Deletes a private endpoint connection with a given name.": { |
| 212 | + "$ref": "./examples/PrivateEndpointConnectionDelete.json" |
| 213 | + } |
| 214 | + } |
| 215 | + } |
| 216 | + }, |
| 217 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateEndpointConnections": { |
| 218 | + "get": { |
| 219 | + "tags": [ |
| 220 | + "PrivateEndpointConnections" |
| 221 | + ], |
| 222 | + "description": "Gets all private endpoint connections on a server.", |
| 223 | + "operationId": "PrivateEndpointConnections_ListByServer", |
| 224 | + "parameters": [ |
| 225 | + { |
| 226 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" |
| 227 | + }, |
| 228 | + { |
| 229 | + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" |
| 230 | + }, |
| 231 | + { |
| 232 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" |
| 233 | + }, |
| 234 | + { |
| 235 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" |
| 236 | + } |
| 237 | + ], |
| 238 | + "responses": { |
| 239 | + "200": { |
| 240 | + "description": "Successfully retrieved private endpoint connections.", |
| 241 | + "schema": { |
| 242 | + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" |
| 243 | + } |
| 244 | + }, |
| 245 | + "default": { |
| 246 | + "description": "Error response describing why the operation failed.", |
| 247 | + "schema": { |
| 248 | + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" |
| 249 | + } |
| 250 | + } |
| 251 | + }, |
| 252 | + "x-ms-examples": { |
| 253 | + "Gets list of private endpoint connections on a server.": { |
| 254 | + "$ref": "./examples/PrivateEndpointConnectionList.json" |
| 255 | + } |
| 256 | + } |
| 257 | + } |
| 258 | + } |
| 259 | + }, |
| 260 | + "definitions": { |
| 261 | + "TagsObject": { |
| 262 | + "type": "object", |
| 263 | + "properties": { |
| 264 | + "tags": { |
| 265 | + "type": "object", |
| 266 | + "additionalProperties": { |
| 267 | + "type": "string" |
| 268 | + }, |
| 269 | + "description": "Resource tags." |
| 270 | + } |
| 271 | + }, |
| 272 | + "description": "Tags object for patch operations." |
| 273 | + } |
| 274 | + } |
| 275 | +} |
0 commit comments