|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "version": "2018-03-01-preview", |
| 5 | + "title": "SubscriptionClient", |
| 6 | + "description": "Subscription client provides an interface to create and manage Azure subscriptions programmatically." |
| 7 | + }, |
| 8 | + "schemes": [ |
| 9 | + "https" |
| 10 | + ], |
| 11 | + "host": "management.azure.com", |
| 12 | + "consumes": [ |
| 13 | + "application/json" |
| 14 | + ], |
| 15 | + "produces": [ |
| 16 | + "application/json" |
| 17 | + ], |
| 18 | + "paths": { |
| 19 | + "/providers/Microsoft.Subscription/operations": { |
| 20 | + "get": { |
| 21 | + "description": "Lists all of the available Microsoft.Subscription API operations.", |
| 22 | + "operationId": "Operations_List", |
| 23 | + "x-ms-examples": { |
| 24 | + "getOperations": { |
| 25 | + "$ref": "./examples/getOperations.json" |
| 26 | + } |
| 27 | + }, |
| 28 | + "parameters": [ |
| 29 | + { |
| 30 | + "$ref": "#/parameters/apiVersionParameter" |
| 31 | + } |
| 32 | + ], |
| 33 | + "responses": { |
| 34 | + "200": { |
| 35 | + "description": "OK. The request has succeeded.", |
| 36 | + "schema": { |
| 37 | + "$ref": "#/definitions/OperationListResult" |
| 38 | + } |
| 39 | + }, |
| 40 | + "default": { |
| 41 | + "description": "Error response describing why the operation failed.", |
| 42 | + "schema": { |
| 43 | + "$ref": "#/definitions/ErrorResponse" |
| 44 | + } |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
| 50 | + "definitions": { |
| 51 | + "ErrorResponse": { |
| 52 | + "description": "Describes the format of Error response.", |
| 53 | + "type": "object", |
| 54 | + "properties": { |
| 55 | + "code": { |
| 56 | + "description": "Error code", |
| 57 | + "type": "string" |
| 58 | + }, |
| 59 | + "message": { |
| 60 | + "description": "Error message indicating why the operation failed.", |
| 61 | + "type": "string" |
| 62 | + } |
| 63 | + } |
| 64 | + }, |
| 65 | + "OperationListResult": { |
| 66 | + "description": "Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.", |
| 67 | + "properties": { |
| 68 | + "value": { |
| 69 | + "type": "array", |
| 70 | + "items": { |
| 71 | + "$ref": "#/definitions/Operation" |
| 72 | + }, |
| 73 | + "description": "List of operations." |
| 74 | + }, |
| 75 | + "nextLink": { |
| 76 | + "type": "string", |
| 77 | + "description": "URL to get the next set of operation list results if there are any." |
| 78 | + } |
| 79 | + } |
| 80 | + }, |
| 81 | + "Operation": { |
| 82 | + "description": "REST API operation", |
| 83 | + "type": "object", |
| 84 | + "properties": { |
| 85 | + "name": { |
| 86 | + "description": "Operation name: {provider}/{resource}/{operation}", |
| 87 | + "type": "string" |
| 88 | + }, |
| 89 | + "display": { |
| 90 | + "description": "The object that represents the operation.", |
| 91 | + "properties": { |
| 92 | + "provider": { |
| 93 | + "description": "Service provider: Microsoft.Subscription", |
| 94 | + "type": "string" |
| 95 | + }, |
| 96 | + "resource": { |
| 97 | + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", |
| 98 | + "type": "string" |
| 99 | + }, |
| 100 | + "operation": { |
| 101 | + "description": "Operation type: Read, write, delete, etc.", |
| 102 | + "type": "string" |
| 103 | + } |
| 104 | + } |
| 105 | + } |
| 106 | + } |
| 107 | + } |
| 108 | + }, |
| 109 | + "parameters": { |
| 110 | + "apiVersionParameter": { |
| 111 | + "name": "api-version", |
| 112 | + "in": "query", |
| 113 | + "required": true, |
| 114 | + "type": "string", |
| 115 | + "description": "Version of the API to be used with the client request. Current version is 2015-06-01" |
| 116 | + } |
| 117 | + }, |
| 118 | + "security": [ |
| 119 | + { |
| 120 | + "azure_auth": [ |
| 121 | + "user_impersonation" |
| 122 | + ] |
| 123 | + } |
| 124 | + ], |
| 125 | + "securityDefinitions": { |
| 126 | + "azure_auth": { |
| 127 | + "type": "oauth2", |
| 128 | + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", |
| 129 | + "flow": "implicit", |
| 130 | + "description": "Azure Active Directory OAuth2 Flow", |
| 131 | + "scopes": { |
| 132 | + "user_impersonation": "impersonate your user account" |
| 133 | + } |
| 134 | + } |
| 135 | + } |
| 136 | +} |
0 commit comments