diff --git a/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/dynamicstelemetry.json b/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/dynamicstelemetry.json new file mode 100644 index 000000000000..2c26009a3e89 --- /dev/null +++ b/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/dynamicstelemetry.json @@ -0,0 +1,142 @@ +{ + "swagger": "2.0", + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "info": { + "title": "Dynamics Telemetry", + "version": "2019-01-24" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "paths": { + "/providers/Microsoft.DynamicsTelemetry/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "204": { + "description": "No Content" + } + }, + "x-ms-examples": { + "List Operations": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "OperationList": { + "type": "array", + "description": "List of supported operations.", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "Operation": { + "type": "object", + "additionalProperties": false, + "required": [ + "isDataAction" + ], + "properties": { + "origin": { + "type": "string" + }, + "name": { + "type": "string" + }, + "display": { + "$ref": "#/definitions/Display" + }, + "properties": { + "$ref": "#/definitions/Properties" + }, + "isDataAction": { + "type": "boolean" + } + } + }, + "Display": { + "type": "object", + "additionalProperties": false, + "properties": { + "provider": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "operation": { + "type": "string" + }, + "description": { + "type": "string" + }, + "publisher": { + "type": "string" + } + } + }, + "Properties": { + "type": "object", + "additionalProperties": false, + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "ServiceSpecification": { + "type": "object", + "additionalProperties": false, + "properties": { + "logSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + } + } + } + }, + "LogSpecification": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "blobDuration": { + "type": "string", + "format": "duration" + } + } + } + } +} diff --git a/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/examples/Operations_List.json b/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/examples/Operations_List.json new file mode 100644 index 000000000000..8cda204e5701 --- /dev/null +++ b/specification/dynamicstelemetry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/examples/Operations_List.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2019-01-24" + }, + "responses": { + "200": { + "body": [{ + "origin": "system", + "name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Dynamics Telemetry", + "resource": "Log definition", + "operation": "Read tenants log definitions", + "description": "Gets the available logs for tenants" + }, + "properties": {}, + "isDataAction": false + }, + { + "origin": "system", + "name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Dynamics Telemetry", + "resource": "tenants", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource" + }, + "isDataAction": false + }, + { + "origin": "system", + "name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Dynamics Telemetry", + "resource": "tenants", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + }, + "isDataAction": false + }, + { + "name": "microsoft.dynamicstelemetry/diagnosticsettings/write", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings write", + "description": "Writing a diagnostic setting", + "publisher": "Microsoft" + }, + "properties": {}, + "isDataAction": false + }, + { + "name": "microsoft.dynamicstelemetry/diagnosticsettings/read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings read", + "description": "Reading a diagnostic setting", + "publisher": "Microsoft" + }, + "properties": {}, + "isDataAction": false + }, + { + "name": "microsoft.dynamicstelemetry/diagnosticsettings/delete", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings", + "operation": "Diagnostic settings delete", + "description": "Deleting a diagnostic setting", + "publisher": "Microsoft" + }, + "properties": {}, + "isDataAction": false + }, + { + "name": "microsoft.dynamicstelemetry/diagnosticsettingscategories/read", + "display": { + "provider": "Microsoft Monitoring Insights", + "resource": "Diagnostic settings categories", + "operation": "Diagnostic settings categories read", + "description": "Reading a diagnostic setting categories", + "publisher": "Microsoft" + }, + "properties": {}, + "isDataAction": false + } + ] + + }, + "204": { + } + } +}