|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "ApplicationInsightsManagementClient", |
| 5 | + "description": "Azure Application Insights workbook template type.", |
| 6 | + "version": "2019-10-17-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}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { |
| 38 | + "get": { |
| 39 | + "description": "Get a single workbook template by its resourceName.", |
| 40 | + "operationId": "WorkbookTemplates_Get", |
| 41 | + "parameters": [ |
| 42 | + { |
| 43 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 44 | + }, |
| 45 | + { |
| 46 | + "$ref": "#/parameters/ResourceGroupNameParameter" |
| 47 | + }, |
| 48 | + { |
| 49 | + "$ref": "#/parameters/WorkbookTemplateResourceNameParameter" |
| 50 | + }, |
| 51 | + { |
| 52 | + "$ref": "#/parameters/ApiVersionParameter" |
| 53 | + } |
| 54 | + ], |
| 55 | + "responses": { |
| 56 | + "200": { |
| 57 | + "description": "A workbook template definition.", |
| 58 | + "schema": { |
| 59 | + "$ref": "#/definitions/BodyAsObject" |
| 60 | + } |
| 61 | + }, |
| 62 | + "default": { |
| 63 | + "description": "Error response describing why the operation failed.", |
| 64 | + "schema": { |
| 65 | + "$ref": "#/definitions/WorkbookError" |
| 66 | + } |
| 67 | + } |
| 68 | + }, |
| 69 | + "x-ms-examples": { |
| 70 | + "WorkbookTemplateGet": { |
| 71 | + "$ref": "./WorkbookTemplateGet.json" |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + }, |
| 77 | + "definitions": { |
| 78 | + "Resource": { |
| 79 | + "properties": { |
| 80 | + "resourceId": { |
| 81 | + "type": "string", |
| 82 | + "readOnly": true, |
| 83 | + "description": "Azure resource Id" |
| 84 | + }, |
| 85 | + "name": { |
| 86 | + "type": "string", |
| 87 | + "readOnly": true, |
| 88 | + "description": "Azure resource name." |
| 89 | + }, |
| 90 | + "type": { |
| 91 | + "type": "string", |
| 92 | + "readOnly": true, |
| 93 | + "description": "Azure resource type" |
| 94 | + }, |
| 95 | + "location": { |
| 96 | + "type": "string", |
| 97 | + "description": "Resource location", |
| 98 | + "x-ms-mutability": [ |
| 99 | + "create", |
| 100 | + "read" |
| 101 | + ] |
| 102 | + }, |
| 103 | + "tags": { |
| 104 | + "type": "object", |
| 105 | + "additionalProperties": { |
| 106 | + "type": "string" |
| 107 | + }, |
| 108 | + "description": "Resource tags" |
| 109 | + } |
| 110 | + }, |
| 111 | + "required": [ |
| 112 | + "location" |
| 113 | + ], |
| 114 | + "x-ms-azure-resource": true, |
| 115 | + "description": "An azure resource object" |
| 116 | + }, |
| 117 | + "BodyAsObject": { |
| 118 | + "description": "Test obj.", |
| 119 | + "type": "object", |
| 120 | + "additionalProperties": true |
| 121 | + }, |
| 122 | + "ErrorFieldContract": { |
| 123 | + "properties": { |
| 124 | + "code": { |
| 125 | + "type": "string", |
| 126 | + "description": "Property level error code." |
| 127 | + }, |
| 128 | + "message": { |
| 129 | + "type": "string", |
| 130 | + "description": "Human-readable representation of property-level error." |
| 131 | + }, |
| 132 | + "target": { |
| 133 | + "type": "string", |
| 134 | + "description": "Property name." |
| 135 | + } |
| 136 | + }, |
| 137 | + "description": "Error Field contract." |
| 138 | + }, |
| 139 | + "WorkbookError": { |
| 140 | + "properties": { |
| 141 | + "code": { |
| 142 | + "type": "string", |
| 143 | + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response." |
| 144 | + }, |
| 145 | + "message": { |
| 146 | + "type": "string", |
| 147 | + "description": "Human-readable representation of the error." |
| 148 | + }, |
| 149 | + "details": { |
| 150 | + "type": "array", |
| 151 | + "items": { |
| 152 | + "$ref": "#/definitions/ErrorFieldContract" |
| 153 | + }, |
| 154 | + "description": "The list of invalid fields send in request, in case of validation error." |
| 155 | + } |
| 156 | + }, |
| 157 | + "description": "Error message body that will indicate why the operation failed." |
| 158 | + } |
| 159 | + }, |
| 160 | + "parameters": { |
| 161 | + "WorkbookTemplateResourceNameParameter": { |
| 162 | + "name": "resourceName", |
| 163 | + "in": "path", |
| 164 | + "required": true, |
| 165 | + "type": "string", |
| 166 | + "description": "The name of the Application Insights component resource.", |
| 167 | + "x-ms-parameter-location": "method" |
| 168 | + }, |
| 169 | + "SubscriptionIdParameter": { |
| 170 | + "name": "subscriptionId", |
| 171 | + "in": "path", |
| 172 | + "required": true, |
| 173 | + "type": "string", |
| 174 | + "description": "The ID of the target subscription.", |
| 175 | + "minLength": 1 |
| 176 | + }, |
| 177 | + "ApiVersionParameter": { |
| 178 | + "name": "api-version", |
| 179 | + "in": "query", |
| 180 | + "required": true, |
| 181 | + "type": "string", |
| 182 | + "description": "The API version to use for this operation.", |
| 183 | + "minLength": 1 |
| 184 | + }, |
| 185 | + "ResourceGroupNameParameter": { |
| 186 | + "name": "resourceGroupName", |
| 187 | + "in": "path", |
| 188 | + "required": true, |
| 189 | + "type": "string", |
| 190 | + "description": "The name of the resource group. The name is case insensitive.", |
| 191 | + "pattern": "^[-\\w\\._\\(\\)]+$", |
| 192 | + "minLength": 1, |
| 193 | + "maxLength": 90, |
| 194 | + "x-ms-parameter-location": "method" |
| 195 | + } |
| 196 | + } |
| 197 | +} |
0 commit comments