|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "Azure Log Analytics", |
| 5 | + "description": "Azure Log Analytics API reference", |
| 6 | + "version": "2020-03-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.OperationalInsights/workspaces/{workspaceName}/dataCollectorLogs/{tableName}": { |
| 38 | + "delete": { |
| 39 | + "tags": [ |
| 40 | + "DataCollectorLogs" |
| 41 | + ], |
| 42 | + "x-ms-examples": { |
| 43 | + "DataCollectorLogsDelete": { |
| 44 | + "$ref": "./examples/DataCollectorLogsDelete.json" |
| 45 | + } |
| 46 | + }, |
| 47 | + "operationId": "DataCollectorLogs_Delete", |
| 48 | + "description": "Deletes a specify data collector log table.", |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 52 | + }, |
| 53 | + { |
| 54 | + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" |
| 55 | + }, |
| 56 | + { |
| 57 | + "name": "tableName", |
| 58 | + "in": "path", |
| 59 | + "required": true, |
| 60 | + "type": "string", |
| 61 | + "pattern": "^[A-Za-z0-9]+[A-Za-z0-9]_CL$", |
| 62 | + "minLength": 4, |
| 63 | + "maxLength": 63, |
| 64 | + "description": "DataCollector table name." |
| 65 | + }, |
| 66 | + { |
| 67 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 68 | + }, |
| 69 | + { |
| 70 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 71 | + }, |
| 72 | + { |
| 73 | + "$ref": "#/parameters/ForceDeletion" |
| 74 | + } |
| 75 | + ], |
| 76 | + "responses": { |
| 77 | + "200": { |
| 78 | + "description": "OK response definition." |
| 79 | + }, |
| 80 | + "default": { |
| 81 | + "description": "Error response describing why the operation failed.", |
| 82 | + "schema": { |
| 83 | + "$ref": "#/definitions/ErrorContract" |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + }, |
| 88 | + "get": { |
| 89 | + "tags": [ |
| 90 | + "DataCollectorLogs" |
| 91 | + ], |
| 92 | + "x-ms-examples": { |
| 93 | + "DataCollectorLogsDelete": { |
| 94 | + "$ref": "./examples/DataCollectorLogsGet.json" |
| 95 | + } |
| 96 | + }, |
| 97 | + "operationId": "DataCollectorLogs_Get", |
| 98 | + "description": "Retrieves a specify data collector log table.", |
| 99 | + "parameters": [ |
| 100 | + { |
| 101 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 102 | + }, |
| 103 | + { |
| 104 | + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" |
| 105 | + }, |
| 106 | + { |
| 107 | + "name": "tableName", |
| 108 | + "in": "path", |
| 109 | + "required": true, |
| 110 | + "type": "string", |
| 111 | + "pattern": "^[A-Za-z0-9]+[A-Za-z0-9]_CL$", |
| 112 | + "minLength": 4, |
| 113 | + "maxLength": 63, |
| 114 | + "description": "DataCollector table name." |
| 115 | + }, |
| 116 | + { |
| 117 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 118 | + }, |
| 119 | + { |
| 120 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 121 | + }, |
| 122 | + { |
| 123 | + "$ref": "#/parameters/ForceDeletion" |
| 124 | + } |
| 125 | + ], |
| 126 | + "responses": { |
| 127 | + "200": { |
| 128 | + "description": "OK response definition.", |
| 129 | + "schema": { |
| 130 | + "$ref": "#/definitions/DataCollectorLog" |
| 131 | + } |
| 132 | + }, |
| 133 | + "default": { |
| 134 | + "description": "Error response describing why the operation failed.", |
| 135 | + "schema": { |
| 136 | + "$ref": "#/definitions/ErrorContract" |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + } |
| 141 | + }, |
| 142 | + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataCollectorLogs": { |
| 143 | + "get": { |
| 144 | + "tags": [ |
| 145 | + "DataCollectorLogs" |
| 146 | + ], |
| 147 | + "description": "Listing all data collector log tables, being created via data collector endpoint and scoped to the specified workspace", |
| 148 | + "operationId": "DataCollectorLogs_ListByWorkspace", |
| 149 | + "parameters": [ |
| 150 | + { |
| 151 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" |
| 152 | + }, |
| 153 | + { |
| 154 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" |
| 155 | + }, |
| 156 | + { |
| 157 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
| 158 | + }, |
| 159 | + { |
| 160 | + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" |
| 161 | + } |
| 162 | + ], |
| 163 | + "responses": { |
| 164 | + "200": { |
| 165 | + "description": "OK response definition.", |
| 166 | + "schema": { |
| 167 | + "$ref": "#/definitions/DataCollectorLogsListResult" |
| 168 | + } |
| 169 | + }, |
| 170 | + "default": { |
| 171 | + "description": "Error response describing why the operation failed.", |
| 172 | + "schema": { |
| 173 | + "$ref": "#/definitions/ErrorContract" |
| 174 | + } |
| 175 | + } |
| 176 | + }, |
| 177 | + "x-ms-pageable": { |
| 178 | + "nextLinkName": null |
| 179 | + }, |
| 180 | + "x-ms-examples": { |
| 181 | + "DataCollectorLogsListByWorkspace": { |
| 182 | + "$ref": "./examples/DataCollectorLogsListByWorkspace.json" |
| 183 | + } |
| 184 | + } |
| 185 | + } |
| 186 | + } |
| 187 | + }, |
| 188 | + "definitions": { |
| 189 | + "DataCollectorLogProperties": { |
| 190 | + "description": "Data collector log properties.", |
| 191 | + "type": "object", |
| 192 | + "properties": { |
| 193 | + "name": { |
| 194 | + "description": "Table's name.", |
| 195 | + "type": "string" |
| 196 | + } |
| 197 | + } |
| 198 | + }, |
| 199 | + "DataCollectorLog": { |
| 200 | + "properties": { |
| 201 | + "properties": { |
| 202 | + "x-ms-client-flatten": true, |
| 203 | + "$ref": "#/definitions/DataCollectorLogProperties", |
| 204 | + "description": "Data collector log properties." |
| 205 | + } |
| 206 | + }, |
| 207 | + "allOf": [ |
| 208 | + { |
| 209 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" |
| 210 | + } |
| 211 | + ], |
| 212 | + "description": "Data collector log top level resource container." |
| 213 | + }, |
| 214 | + "DataCollectorLogsListResult": { |
| 215 | + "properties": { |
| 216 | + "value": { |
| 217 | + "type": "array", |
| 218 | + "items": { |
| 219 | + "$ref": "#/definitions/DataCollectorLog" |
| 220 | + }, |
| 221 | + "description": "data collector log collection." |
| 222 | + } |
| 223 | + }, |
| 224 | + "description": "Data collector log tables collection, all tables are scoped to the specified workspace." |
| 225 | + }, |
| 226 | + "ErrorContract": { |
| 227 | + "properties": { |
| 228 | + "error": { |
| 229 | + "description": "The details of the error.", |
| 230 | + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" |
| 231 | + } |
| 232 | + }, |
| 233 | + "description": "Contains details when the response code indicates an error." |
| 234 | + } |
| 235 | + }, |
| 236 | + "parameters": { |
| 237 | + "ForceDeletion": { |
| 238 | + "name": "force", |
| 239 | + "in": "query", |
| 240 | + "required": false, |
| 241 | + "type": "boolean", |
| 242 | + "description": "When true, enables bypassing retention validation.", |
| 243 | + "x-ms-parameter-location": "method" |
| 244 | + } |
| 245 | + } |
| 246 | +} |
0 commit comments