|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "ApplicationInsightsManagementClient", |
| 5 | + "description": "Azure Application Insights client for application insights diagnostic services token.", |
| 6 | + "version": "2021-03-03-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 | + "/{resourceUri}/providers/Microsoft.Insights/generateDiagnosticServiceReadOnlyToken": { |
| 38 | + "post": { |
| 39 | + "tags": [ |
| 40 | + "generateDiagnosticServiceReadOnlyToken" |
| 41 | + ], |
| 42 | + "operationId": "DiagnosticServiceToken_GetReadOnly", |
| 43 | + "description": "Gets an read-only access token for application insights diagnostic service data.", |
| 44 | + "parameters": [ |
| 45 | + { |
| 46 | + "$ref": "#/parameters/ResourceUriParameter" |
| 47 | + }, |
| 48 | + { |
| 49 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 50 | + } |
| 51 | + ], |
| 52 | + "responses": { |
| 53 | + "default": { |
| 54 | + "description": "Error response describing why the operation failed .", |
| 55 | + "schema": { |
| 56 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" |
| 57 | + } |
| 58 | + }, |
| 59 | + "200": { |
| 60 | + "description": "Successful response containing the application insights diagnostic services token.", |
| 61 | + "schema": { |
| 62 | + "$ref": "#/definitions/DiagnosticServicesTokenResponse" |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + "x-ms-examples": { |
| 67 | + "Get diagnostic services read-only token for resource": { |
| 68 | + "$ref": "./examples/DiagnosticServicesReadOnlyTokenPost.json" |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + }, |
| 73 | + "/{resourceUri}/providers/Microsoft.Insights/generateDiagnosticServiceReadWriteToken": { |
| 74 | + "post": { |
| 75 | + "tags": [ |
| 76 | + "generateDiagnosticServiceReadWriteToken" |
| 77 | + ], |
| 78 | + "operationId": "DiagnosticServiceToken_GetReadWrite", |
| 79 | + "description": "Gets an read-write access token for application insights diagnostic service data.", |
| 80 | + "parameters": [ |
| 81 | + { |
| 82 | + "$ref": "#/parameters/ResourceUriParameter" |
| 83 | + }, |
| 84 | + { |
| 85 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 86 | + } |
| 87 | + ], |
| 88 | + "responses": { |
| 89 | + "default": { |
| 90 | + "description": "Error response describing why the operation failed .", |
| 91 | + "schema": { |
| 92 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" |
| 93 | + } |
| 94 | + }, |
| 95 | + "200": { |
| 96 | + "description": "Successful response containing the application insights diagnostic services token.", |
| 97 | + "schema": { |
| 98 | + "$ref": "#/definitions/DiagnosticServicesTokenResponse" |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + "x-ms-examples": { |
| 103 | + "Get diagnostic services read-write token for resource": { |
| 104 | + "$ref": "./examples/DiagnosticServicesReadWriteTokenPost.json" |
| 105 | + } |
| 106 | + } |
| 107 | + } |
| 108 | + } |
| 109 | + }, |
| 110 | + "definitions": { |
| 111 | + "DiagnosticServicesTokenResponse": { |
| 112 | + "type": "object", |
| 113 | + "properties": { |
| 114 | + "token": { |
| 115 | + "x-ms-secret": true, |
| 116 | + "type": "string", |
| 117 | + "description": "JWT token for accessing application insights diagnostic service data." |
| 118 | + } |
| 119 | + }, |
| 120 | + "description": "The response to a diagnostic services token query." |
| 121 | + } |
| 122 | + }, |
| 123 | + "parameters": { |
| 124 | + "ResourceUriParameter": { |
| 125 | + "name": "resourceUri", |
| 126 | + "in": "path", |
| 127 | + "required": true, |
| 128 | + "type": "string", |
| 129 | + "description": "The identifier of the resource.", |
| 130 | + "x-ms-parameter-location": "method", |
| 131 | + "x-ms-skip-url-encoding": true |
| 132 | + } |
| 133 | + } |
| 134 | +} |
0 commit comments