|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "ApiManagementClient", |
| 5 | + "description": "Use these REST APIs for performing operations on Backend entity in Azure API Management deployment. The Backend entity in API Management represents a backend service that is configured to skip certification chain validation when using a self-signed certificate to test mutual certificate authentication.", |
| 6 | + "version": "2023-09-01-preview" |
| 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.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends": { |
| 38 | + "get": { |
| 39 | + "tags": [ |
| 40 | + "Backend" |
| 41 | + ], |
| 42 | + "operationId": "WorkspaceBackend_ListByWorkspace", |
| 43 | + "description": "Lists a collection of backends in the specified workspace.", |
| 44 | + "x-ms-examples": { |
| 45 | + "ApiManagementListWorkspaceBackends": { |
| 46 | + "$ref": "./examples/ApiManagementListWorkspaceBackends.json" |
| 47 | + } |
| 48 | + }, |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 58 | + }, |
| 59 | + { |
| 60 | + "name": "$filter", |
| 61 | + "in": "query", |
| 62 | + "required": false, |
| 63 | + "type": "string", |
| 64 | + "description": "| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>" |
| 65 | + }, |
| 66 | + { |
| 67 | + "$ref": "./apimanagement.json#/parameters/TopQueryParameter" |
| 68 | + }, |
| 69 | + { |
| 70 | + "$ref": "./apimanagement.json#/parameters/SkipQueryParameter" |
| 71 | + }, |
| 72 | + { |
| 73 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 74 | + }, |
| 75 | + { |
| 76 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 77 | + } |
| 78 | + ], |
| 79 | + "responses": { |
| 80 | + "200": { |
| 81 | + "description": "Lists a collection of Backend entities.", |
| 82 | + "schema": { |
| 83 | + "$ref": "./definitions.json#/definitions/BackendCollection" |
| 84 | + } |
| 85 | + }, |
| 86 | + "default": { |
| 87 | + "description": "Error response describing why the operation failed.", |
| 88 | + "schema": { |
| 89 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 90 | + } |
| 91 | + } |
| 92 | + }, |
| 93 | + "x-ms-pageable": { |
| 94 | + "nextLinkName": "nextLink" |
| 95 | + }, |
| 96 | + "x-ms-odata": "./definitions.json#/definitions/BackendContract" |
| 97 | + } |
| 98 | + }, |
| 99 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}": { |
| 100 | + "head": { |
| 101 | + "tags": [ |
| 102 | + "Backend" |
| 103 | + ], |
| 104 | + "operationId": "WorkspaceBackend_GetEntityTag", |
| 105 | + "description": "Gets the entity state (Etag) version of the backend specified by its identifier.", |
| 106 | + "x-ms-examples": { |
| 107 | + "ApiManagementHeadWorkspaceBackend": { |
| 108 | + "$ref": "./examples/ApiManagementHeadWorkspaceBackend.json" |
| 109 | + } |
| 110 | + }, |
| 111 | + "parameters": [ |
| 112 | + { |
| 113 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 114 | + }, |
| 115 | + { |
| 116 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 117 | + }, |
| 118 | + { |
| 119 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 120 | + }, |
| 121 | + { |
| 122 | + "$ref": "./apimanagement.json#/parameters/BackendIdParameter" |
| 123 | + }, |
| 124 | + { |
| 125 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 126 | + }, |
| 127 | + { |
| 128 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 129 | + } |
| 130 | + ], |
| 131 | + "responses": { |
| 132 | + "200": { |
| 133 | + "description": "Specified backend entity exists and current entity state version is present in the ETag header.", |
| 134 | + "headers": { |
| 135 | + "ETag": { |
| 136 | + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", |
| 137 | + "type": "string" |
| 138 | + } |
| 139 | + } |
| 140 | + }, |
| 141 | + "default": { |
| 142 | + "description": "Error response describing why the operation failed.", |
| 143 | + "schema": { |
| 144 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 145 | + } |
| 146 | + } |
| 147 | + } |
| 148 | + }, |
| 149 | + "get": { |
| 150 | + "tags": [ |
| 151 | + "Backend" |
| 152 | + ], |
| 153 | + "operationId": "WorkspaceBackend_Get", |
| 154 | + "description": "Gets the details of the backend specified by its identifier.", |
| 155 | + "x-ms-examples": { |
| 156 | + "ApiManagementGetWorkspaceBackend": { |
| 157 | + "$ref": "./examples/ApiManagementGetWorkspaceBackend.json" |
| 158 | + } |
| 159 | + }, |
| 160 | + "parameters": [ |
| 161 | + { |
| 162 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 163 | + }, |
| 164 | + { |
| 165 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 166 | + }, |
| 167 | + { |
| 168 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 169 | + }, |
| 170 | + { |
| 171 | + "$ref": "./apimanagement.json#/parameters/BackendIdParameter" |
| 172 | + }, |
| 173 | + { |
| 174 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 175 | + }, |
| 176 | + { |
| 177 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 178 | + } |
| 179 | + ], |
| 180 | + "responses": { |
| 181 | + "200": { |
| 182 | + "description": "The response body contains the specified Backend entity.", |
| 183 | + "schema": { |
| 184 | + "$ref": "./definitions.json#/definitions/BackendContract" |
| 185 | + }, |
| 186 | + "headers": { |
| 187 | + "ETag": { |
| 188 | + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", |
| 189 | + "type": "string" |
| 190 | + } |
| 191 | + } |
| 192 | + }, |
| 193 | + "default": { |
| 194 | + "description": "Error response describing why the operation failed.", |
| 195 | + "schema": { |
| 196 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 197 | + } |
| 198 | + } |
| 199 | + } |
| 200 | + }, |
| 201 | + "put": { |
| 202 | + "tags": [ |
| 203 | + "Backend" |
| 204 | + ], |
| 205 | + "operationId": "WorkspaceBackend_CreateOrUpdate", |
| 206 | + "description": "Creates or Updates a backend.", |
| 207 | + "x-ms-examples": { |
| 208 | + "ApiManagementCreateWorkspaceBackendServiceFabric": { |
| 209 | + "$ref": "./examples/ApiManagementCreateWorkspaceBackendServiceFabric.json" |
| 210 | + }, |
| 211 | + "ApiManagementCreateWorkspaceBackendProxyBackend": { |
| 212 | + "$ref": "./examples/ApiManagementCreateWorkspaceBackendProxyBackend.json" |
| 213 | + } |
| 214 | + }, |
| 215 | + "parameters": [ |
| 216 | + { |
| 217 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 218 | + }, |
| 219 | + { |
| 220 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 221 | + }, |
| 222 | + { |
| 223 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 224 | + }, |
| 225 | + { |
| 226 | + "$ref": "./apimanagement.json#/parameters/BackendIdParameter" |
| 227 | + }, |
| 228 | + { |
| 229 | + "name": "parameters", |
| 230 | + "in": "body", |
| 231 | + "required": true, |
| 232 | + "schema": { |
| 233 | + "$ref": "./definitions.json#/definitions/BackendContract" |
| 234 | + }, |
| 235 | + "description": "Create parameters." |
| 236 | + }, |
| 237 | + { |
| 238 | + "$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter" |
| 239 | + }, |
| 240 | + { |
| 241 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 242 | + }, |
| 243 | + { |
| 244 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 245 | + } |
| 246 | + ], |
| 247 | + "responses": { |
| 248 | + "201": { |
| 249 | + "description": "Backend was successfully created.", |
| 250 | + "headers": { |
| 251 | + "ETag": { |
| 252 | + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", |
| 253 | + "type": "string" |
| 254 | + } |
| 255 | + }, |
| 256 | + "schema": { |
| 257 | + "$ref": "./definitions.json#/definitions/BackendContract" |
| 258 | + } |
| 259 | + }, |
| 260 | + "200": { |
| 261 | + "description": "The existing backend was successfully updated.", |
| 262 | + "headers": { |
| 263 | + "ETag": { |
| 264 | + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", |
| 265 | + "type": "string" |
| 266 | + } |
| 267 | + }, |
| 268 | + "schema": { |
| 269 | + "$ref": "./definitions.json#/definitions/BackendContract" |
| 270 | + } |
| 271 | + }, |
| 272 | + "default": { |
| 273 | + "description": "Error response describing why the operation failed.", |
| 274 | + "schema": { |
| 275 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 276 | + } |
| 277 | + } |
| 278 | + } |
| 279 | + }, |
| 280 | + "patch": { |
| 281 | + "tags": [ |
| 282 | + "Backend" |
| 283 | + ], |
| 284 | + "operationId": "WorkspaceBackend_Update", |
| 285 | + "description": "Updates an existing backend.", |
| 286 | + "x-ms-examples": { |
| 287 | + "ApiManagementUpdateWorkspaceBackend": { |
| 288 | + "$ref": "./examples/ApiManagementUpdateWorkspaceBackend.json" |
| 289 | + } |
| 290 | + }, |
| 291 | + "parameters": [ |
| 292 | + { |
| 293 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 294 | + }, |
| 295 | + { |
| 296 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 297 | + }, |
| 298 | + { |
| 299 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 300 | + }, |
| 301 | + { |
| 302 | + "$ref": "./apimanagement.json#/parameters/BackendIdParameter" |
| 303 | + }, |
| 304 | + { |
| 305 | + "name": "parameters", |
| 306 | + "in": "body", |
| 307 | + "required": true, |
| 308 | + "schema": { |
| 309 | + "$ref": "./definitions.json#/definitions/BackendUpdateParameters" |
| 310 | + }, |
| 311 | + "description": "Update parameters." |
| 312 | + }, |
| 313 | + { |
| 314 | + "$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter" |
| 315 | + }, |
| 316 | + { |
| 317 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 318 | + }, |
| 319 | + { |
| 320 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 321 | + } |
| 322 | + ], |
| 323 | + "responses": { |
| 324 | + "200": { |
| 325 | + "description": "The existing backend was successfully updated.", |
| 326 | + "headers": { |
| 327 | + "ETag": { |
| 328 | + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", |
| 329 | + "type": "string" |
| 330 | + } |
| 331 | + }, |
| 332 | + "schema": { |
| 333 | + "$ref": "./definitions.json#/definitions/BackendContract" |
| 334 | + } |
| 335 | + }, |
| 336 | + "default": { |
| 337 | + "description": "Error response describing why the operation failed.", |
| 338 | + "schema": { |
| 339 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 340 | + } |
| 341 | + } |
| 342 | + } |
| 343 | + }, |
| 344 | + "delete": { |
| 345 | + "tags": [ |
| 346 | + "Backend" |
| 347 | + ], |
| 348 | + "operationId": "WorkspaceBackend_Delete", |
| 349 | + "description": "Deletes the specified backend.", |
| 350 | + "x-ms-examples": { |
| 351 | + "ApiManagementDeleteWorkspaceBackend": { |
| 352 | + "$ref": "./examples/ApiManagementDeleteWorkspaceBackend.json" |
| 353 | + } |
| 354 | + }, |
| 355 | + "parameters": [ |
| 356 | + { |
| 357 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" |
| 358 | + }, |
| 359 | + { |
| 360 | + "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" |
| 361 | + }, |
| 362 | + { |
| 363 | + "$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter" |
| 364 | + }, |
| 365 | + { |
| 366 | + "$ref": "./apimanagement.json#/parameters/BackendIdParameter" |
| 367 | + }, |
| 368 | + { |
| 369 | + "$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter" |
| 370 | + }, |
| 371 | + { |
| 372 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
| 373 | + }, |
| 374 | + { |
| 375 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" |
| 376 | + } |
| 377 | + ], |
| 378 | + "responses": { |
| 379 | + "200": { |
| 380 | + "description": "The backend was successfully deleted." |
| 381 | + }, |
| 382 | + "204": { |
| 383 | + "description": "The backend was successfully deleted." |
| 384 | + }, |
| 385 | + "default": { |
| 386 | + "description": "Error response describing why the operation failed.", |
| 387 | + "schema": { |
| 388 | + "$ref": "./apimanagement.json#/definitions/ErrorResponse" |
| 389 | + } |
| 390 | + } |
| 391 | + } |
| 392 | + } |
| 393 | + } |
| 394 | + }, |
| 395 | + "definitions": {}, |
| 396 | + "parameters": {} |
| 397 | +} |
0 commit comments