From daae53d96ab3b8710ab6879556fb8fba7a28fb67 Mon Sep 17 00:00:00 2001 From: Saar Shen Date: Wed, 3 Mar 2021 14:38:40 -0800 Subject: [PATCH 1/7] Adds base for updating Microsoft.Insights from version preview/2020-10-05-preview to version 2021-03-03-preview --- .../examples/Operations_List.json | 23 + .../examples/WebTestCreate.json | 64 ++ .../examples/WebTestDelete.json | 12 + .../examples/WebTestGet.json | 45 ++ .../examples/WebTestList.json | 68 ++ .../examples/WebTestListByComponent.json | 47 ++ .../examples/WebTestListByResourceGroup.json | 76 ++ .../examples/WebTestUpdate.json | 67 ++ .../examples/WebTestUpdateTagsOnly.json | 57 ++ .../2021-03-03-preview/webTests_API.json | 678 ++++++++++++++++++ 10 files changed, 1137 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json new file mode 100644 index 000000000000..02bcba3635f9 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.insights/webtests", + "display": { + "provider": "Microsoft Container Instance", + "resource": "webtests", + "operation": "CRUD operations on webtest", + "description": "CRUD operations on webtest" + }, + "origin": "User" + } + ] + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json new file mode 100644 index 000000000000..d4a592e3395a --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-my-component", + "WebTestDefinition": { + "location": "South Central US", + "kind": "ping", + "properties": { + "Name": "my-webtest-my-component", + "SyntheticMonitorId": "my-webtest-my-component", + "Configuration": { + "WebTest": "" + }, + "Description": "Ping web test alert for mytestwebapp", + "Enabled": true, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" + }, + "kind": "ping", + "properties": { + "Name": "my-webtest-my-component", + "SyntheticMonitorId": "my-webtest-my-component", + "Description": "Ping web test alert for mytestwebapp", + "Enabled": true, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json new file mode 100644 index 000000000000..c1438fa108c3 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-01-mywebservice" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json new file mode 100644 index 000000000000..af81591ea12f --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-01-mywebservice" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice", + "name": "my-webtest-01-mywebservice", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/components/mytester": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Web/sites/mytester": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-01-mywebservice", + "Name": "mytest-webtest-01", + "Description": "", + "Enabled": false, + "Frequency": 900, + "Timeout": 30, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + }, + { + "Id": "apac-hk-hkn-azr" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json new file mode 100644 index 000000000000..033c6ebec7b7 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-my-component", + "Name": "my-webtest", + "Description": "", + "Enabled": false, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component", + "name": "my-webtest-my-other-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "Test": "You can delete this synthetic monitor anytime", + "hidden-link:/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-my-other-component", + "Name": "342bccf4-722f-496d-b064-123456789abc", + "Description": "", + "Enabled": false, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": false, + "Locations": [], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json new file mode 100644 index 000000000000..b8f6f6901248 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "componentName": "my-component" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-my-component", + "Name": "my-webtest", + "Description": "", + "Enabled": false, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "apac-hk-hkn-azr" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json new file mode 100644 index 000000000000..06a2118a79bb --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-my-component", + "Name": "my-webtest", + "Description": "", + "Enabled": false, + "Frequency": 900, + "Timeout": 120, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "apac-hk-hkn-azr" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component", + "name": "my-webtest-my-other-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "Test": "You can delete this synthetic monitor anytime", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource" + }, + "kind": "ping", + "properties": { + "SyntheticMonitorId": "my-webtest-my-other-component", + "Name": "342bccf4-722f-496d-b064-123456789abc", + "Description": "", + "Enabled": false, + "Frequency": 300, + "Timeout": 90, + "Kind": "ping", + "RetryEnabled": false, + "Locations": [ + { + "Id": "us-fl-mia-edge" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json new file mode 100644 index 000000000000..4db95f82f2cd --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-my-component", + "WebTestDefinition": { + "location": "South Central US", + "kind": "ping", + "properties": { + "Configuration": { + "WebTest": "" + }, + "Frequency": 600, + "Timeout": 30, + "Locations": [ + { + "Id": "us-fl-mia-edge" + }, + { + "Id": "apac-hk-hkn-azr" + } + ], + "Kind": "ping", + "Name": "my-webtest-my-component", + "SyntheticMonitorId": "my-webtest-my-component" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" + }, + "kind": "ping", + "properties": { + "Name": "my-webtest-my-component", + "SyntheticMonitorId": "my-webtest-my-component", + "Description": "Ping web test alert for mytestwebapp", + "Enabled": true, + "Frequency": 600, + "Timeout": 30, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + }, + { + "Id": "apac-hk-hkn-azr" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json new file mode 100644 index 000000000000..517323cb7cfe --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2020-10-05-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-my-component", + "WebTestTags": { + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource", + "CustomField-01": "This is a random value", + "SystemType": "A08", + "Color": "AzureBlue" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", + "name": "my-webtest-my-component", + "type": "Microsoft.Insights/webtests", + "location": "southcentralus", + "tags": { + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", + "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource", + "CustomField-01": "This is a random value", + "SystemType": "A08", + "Color": "AzureBlue" + }, + "kind": "ping", + "properties": { + "Name": "my-webtest-my-component", + "SyntheticMonitorId": "my-webtest-my-component", + "Description": "Ping web test alert for mytestwebapp", + "Enabled": true, + "Frequency": 600, + "Timeout": 30, + "Kind": "ping", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + }, + { + "Id": "apac-hk-hkn-azr" + } + ], + "Configuration": { + "WebTest": "" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json new file mode 100644 index 000000000000..cf128cdb0556 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json @@ -0,0 +1,678 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights client for web test based alerting.", + "version": "2020-10-05-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "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" + } + } + }, + "paths": { + "/providers/Microsoft.Insights/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "List available operations.", + "description": "List the available operations supported by the Microsoft.EventGrid resource provider.", + "operationId": "Operations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests": { + "get": { + "description": "Get all Application Insights web tests defined within a specified resource group.", + "operationId": "WebTests_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more web test definitions.", + "schema": { + "$ref": "#/definitions/webTestListResult" + } + } + }, + "x-ms-examples": { + "webTestListByResourceGroup": { + "$ref": "./examples/WebTestListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}": { + "get": { + "description": "Get a specific Application Insights web test definition.", + "operationId": "WebTests_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WebTestNameParameter" + } + ], + "responses": { + "200": { + "description": "Ann Application Insights web test definition.", + "schema": { + "$ref": "#/definitions/WebTest" + } + } + }, + "x-ms-examples": { + "webTestGet": { + "$ref": "./examples/WebTestGet.json" + } + } + }, + "put": { + "description": "Creates or updates an Application Insights web test definition.", + "operationId": "WebTests_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WebTestNameParameter" + }, + { + "name": "WebTestDefinition", + "description": "Properties that need to be specified to create or update an Application Insights web test definition.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WebTest" + } + } + ], + "responses": { + "200": { + "description": "Adding the Application Insights web test was successful. Web test properties are updated and returned.", + "schema": { + "$ref": "#/definitions/WebTest" + } + } + }, + "x-ms-examples": { + "webTestCreate": { + "$ref": "./examples/WebTestCreate.json" + }, + "webTestUpdate": { + "$ref": "./examples/WebTestUpdate.json" + } + } + }, + "patch": { + "description": "Creates or updates an Application Insights web test definition.", + "operationId": "WebTests_UpdateTags", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WebTestNameParameter" + }, + { + "name": "WebTestTags", + "description": "Updated tag information to set into the web test instance.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsResource" + } + } + ], + "responses": { + "200": { + "description": "Updating the Application Insights web test tags was successful. Web test tags are updated and returned with the rest of the WebTest object properties.", + "schema": { + "$ref": "#/definitions/WebTest" + } + } + }, + "x-ms-examples": { + "webTestUpdateTags": { + "$ref": "./examples/WebTestUpdateTagsOnly.json" + } + } + }, + "delete": { + "description": "Deletes an Application Insights web test.", + "operationId": "WebTests_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WebTestNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "No content: the request was successful, but the response is empty (the request to delete failed because the specified web test does not exist)." + }, + "200": { + "description": "Successful request to delete a web test definition." + } + }, + "x-ms-examples": { + "webTestDelete": { + "$ref": "./examples/WebTestDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests": { + "get": { + "description": "Get all Application Insights web test alerts definitions within a subscription.", + "operationId": "WebTests_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list of 0 or more Application Insights web test definitions.", + "schema": { + "$ref": "#/definitions/webTestListResult" + } + } + }, + "x-ms-examples": { + "webTestList": { + "$ref": "./examples/WebTestList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests": { + "get": { + "description": "Get all Application Insights web tests defined for the specified component.", + "operationId": "WebTests_ListByComponent", + "parameters": [ + { + "$ref": "#/parameters/ComponentNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more web test definitions.", + "schema": { + "$ref": "#/definitions/webTestListResult" + } + } + }, + "x-ms-examples": { + "webTestListByComponent": { + "$ref": "./examples/WebTestListByComponent.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "WebtestsResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "TagsResource": { + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance." + }, + "webTestListResult": { + "description": "A list of 0 or more Application Insights WebTest definitions.", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "Set of Application Insights WebTest definitions.", + "items": { + "$ref": "#/definitions/WebTest" + } + }, + "nextLink": { + "type": "string", + "description": "The link to get the next part of the returned list of WebTest, should the return set be too large for a single request. May be null." + } + } + }, + "WebTest": { + "description": "An Application Insights WebTest definition.", + "allOf": [ + { + "$ref": "#/definitions/WebtestsResource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of WebTest that this web test watches. Choices are ping and multistep.", + "default": "ping", + "enum": [ + "ping", + "multistep" + ], + "x-ms-enum": { + "name": "WebTestKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WebTestProperties" + } + } + }, + "WebTestProperties": { + "description": "Metadata describing a web test for an Azure resource.", + "required": [ + "Name", + "Kind", + "Locations", + "SyntheticMonitorId" + ], + "properties": { + "SyntheticMonitorId": { + "type": "string", + "description": "Unique ID of this WebTest. This is typically the same value as the Name field." + }, + "Name": { + "x-ms-client-name": "WebTestName", + "type": "string", + "description": "User defined name if this WebTest." + }, + "Description": { + "type": "string", + "description": "User defined description for this WebTest." + }, + "Enabled": { + "type": "boolean", + "description": "Is the test actively being monitored." + }, + "Frequency": { + "type": "integer", + "format": "int32", + "description": "Interval in seconds between test runs for this WebTest. Default value is 300.", + "default": 300 + }, + "Timeout": { + "type": "integer", + "format": "int32", + "description": "Seconds until this WebTest will timeout and fail. Default value is 30.", + "default": 30 + }, + "Kind": { + "x-ms-client-name": "WebTestKind", + "type": "string", + "description": "The kind of web test this is, valid choices are ping, multistep, basic, and standard.", + "default": "ping", + "enum": [ + "ping", + "multistep", + "basic", + "standard" + ], + "x-ms-enum": { + "name": "WebTestKindEnum", + "modelAsString": false + } + }, + "RetryEnabled": { + "type": "boolean", + "description": "Allow for retries should this WebTest fail." + }, + "Locations": { + "type": "array", + "description": "A list of where to physically run the tests from to give global coverage for accessibility of your application.", + "items": { + "$ref": "#/definitions/WebTestGeolocation" + } + }, + "Configuration": { + "type": "object", + "description": "An XML configuration specification for a WebTest.", + "properties": { + "WebTest": { + "type": "string", + "description": "The XML specification of a WebTest to run against an application." + } + } + }, + "provisioningState": { + "type": "string", + "description": "Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.", + "readOnly": true + }, + "Request": { + "type": "object", + "description": "The collection of request properties", + "properties": { + "RequestUrl": { + "type": "string", + "description": "Url location to test." + }, + "Headers": { + "type": "array", + "description": "List of headers and their values to add to the WebTest call.", + "items": { + "$ref": "#/definitions/HeaderField" + } + }, + "HttpVerb": { + "type": "string", + "description": "Http verb to use for this web test." + }, + "RequestBody": { + "type": "string", + "description": "Base64 encoded string body to send with this web test." + }, + "ParseDependentRequests": { + "type": "boolean", + "description": "Parse Dependent request for this WebTest." + }, + "FollowRedirects": { + "type": "boolean", + "description": "Follow redirects for this web test." + } + } + }, + "ContentValidation": { + "type": "object", + "description": "The collection of content validation properties", + "properties": { + "ContentMatch": { + "type": "string", + "description": "Content to look for in the return of the WebTest." + }, + "IgnoreCase": { + "type": "boolean", + "description": "When set, this value makes the ContentMatch validation case insensitive." + }, + "PassIfTextFound": { + "type": "boolean", + "description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match" + } + } + }, + "SSLCheck": { + "type": "boolean", + "description": "Checks to see if the SSL cert is still valid." + }, + "SSLCertRemainingLifetimeCheck": { + "type": "integer", + "format": "int32", + "description": "A number of days to check still remain before the the existing SSL cert expires." + }, + "ExpectedHttpStatusCode": { + "type": "integer", + "format": "int32", + "description": "Validate that the WebTest returns the http status code provided." + }, + "IgnoreHttpsStatusCode": { + "type": "boolean", + "description": "When set, validation will ignore the status code." + } + } + }, + "WebTestGeolocation": { + "description": "Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.", + "type": "object", + "properties": { + "Id": { + "x-ms-client-name": "location", + "type": "string", + "description": "Location ID for the WebTest to run from." + } + } + }, + "HeaderField": { + "description": "A header to add to the WebTest.", + "type": "object", + "properties": { + "key": { + "x-ms-client-name": "headerFieldName", + "type": "string", + "description": "The name of the header." + }, + "value": { + "x-ms-client-name": "headerFieldValue", + "type": "string", + "description": "The value of the header." + } + } + }, + "OperationsListResult": { + "description": "Result of the List Operations operation", + "type": "object", + "properties": { + "value": { + "description": "A collection of operations", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "Represents an operation returned by the GetOperations request", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationInfo", + "description": "Display name of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "description": "Properties of the operation", + "type": "object", + "x-ms-client-flatten": true + } + } + }, + "OperationInfo": { + "description": "Information about an operation", + "type": "object", + "properties": { + "provider": { + "description": "Name of the provider", + "type": "string" + }, + "resource": { + "description": "Name of the resource type", + "type": "string" + }, + "operation": { + "description": "Name of the operation", + "type": "string" + }, + "description": { + "description": "Description of the operation", + "type": "string" + } + } + } + }, + "parameters": { + "ComponentNameParameter": { + "name": "componentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + }, + "WebTestNameParameter": { + "name": "webTestName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights WebTest resource.", + "x-ms-parameter-location": "method" + } + } +} From b5702901eb7eb9610475ce97f0d8565b5908b89a Mon Sep 17 00:00:00 2001 From: Saar Shen Date: Wed, 3 Mar 2021 14:39:01 -0800 Subject: [PATCH 2/7] Updates readme --- .../applicationinsights/resource-manager/readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index b4532edb0ce1..31cdbd214739 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the ApplicationInsights API. title: ApplicationInsightsManagementClient description: Composite Swagger for Application Insights Management Client openapi-type: arm -tag: package-preview-2020-10 +tag: package-preview-2021-03 ``` ### Suppression @@ -203,6 +203,15 @@ directive: reason: 'Previously implemented operation apis are using an incorrect RP case format which I cannot change.' ``` + +### Tag: package-preview-2021-03 + +These settings apply only when `--tag=package-preview-2021-03` is specified on the command line. + +```yaml $(tag) == 'package-preview-2021-03' +input-file: + - Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json +``` ### Tag: package-2020-02-12 These settings apply only when `--tag=package-2020-02-12` is specified on the command line. @@ -251,7 +260,7 @@ input-file: These settings apply only when `--tag=package-preview-2020-10` is specified on the command line. -```yaml $(tag) == 'package-preview-2020-10' +``` yaml $(tag) == 'package-preview-2020-10' input-file: - Microsoft.Insights/preview/2020-10-05-preview/webTests_API.json ``` From c59f65526562ab5616267cde7e390cbb946ded04 Mon Sep 17 00:00:00 2001 From: Saar Shen Date: Wed, 3 Mar 2021 14:39:02 -0800 Subject: [PATCH 3/7] Updates API version in new specs and examples --- .../preview/2021-03-03-preview/examples/Operations_List.json | 2 +- .../preview/2021-03-03-preview/examples/WebTestCreate.json | 2 +- .../preview/2021-03-03-preview/examples/WebTestDelete.json | 2 +- .../preview/2021-03-03-preview/examples/WebTestGet.json | 2 +- .../preview/2021-03-03-preview/examples/WebTestList.json | 2 +- .../2021-03-03-preview/examples/WebTestListByComponent.json | 2 +- .../2021-03-03-preview/examples/WebTestListByResourceGroup.json | 2 +- .../preview/2021-03-03-preview/examples/WebTestUpdate.json | 2 +- .../2021-03-03-preview/examples/WebTestUpdateTagsOnly.json | 2 +- .../preview/2021-03-03-preview/webTests_API.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json index 02bcba3635f9..187b6aa4e3a7 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview" + "api-version": "2021-03-03-preview" }, "responses": { "200": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json index d4a592e3395a..e35ed8f1bd99 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "webTestName": "my-webtest-my-component", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json index c1438fa108c3..91f7c5527638 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "webTestName": "my-webtest-01-mywebservice" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json index af81591ea12f..d2df88edc505 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "webTestName": "my-webtest-01-mywebservice" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json index 033c6ebec7b7..b072b8747908 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group" }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json index b8f6f6901248..b80a3207dcbe 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "componentName": "my-component" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json index 06a2118a79bb..e14a956d70b9 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group" }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json index 4db95f82f2cd..d31e947b8b33 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "webTestName": "my-webtest-my-component", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json index 517323cb7cfe..3a76b92f3f74 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-10-05-preview", + "api-version": "2021-03-03-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "webTestName": "my-webtest-my-component", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json index cf128cdb0556..d234bb51b80a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json @@ -3,7 +3,7 @@ "info": { "title": "ApplicationInsightsManagementClient", "description": "Azure Application Insights client for web test based alerting.", - "version": "2020-10-05-preview" + "version": "2021-03-03-preview" }, "host": "management.azure.com", "schemes": [ From 4d228b4bd89ad71bd0071152c9425c3f25895929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saar=20Shen=20=F0=9F=9A=BE?= Date: Wed, 3 Mar 2021 15:20:03 -0800 Subject: [PATCH 4/7] Add DiagnosticServiceToken API --- .../diagnosticServicesToken_API.json | 144 ++++ .../examples/DiagnosticServicesTokenPost.json | 13 + .../examples/Operations_List.json | 23 - .../examples/WebTestCreate.json | 64 -- .../examples/WebTestDelete.json | 12 - .../examples/WebTestGet.json | 45 -- .../examples/WebTestList.json | 68 -- .../examples/WebTestListByComponent.json | 47 -- .../examples/WebTestListByResourceGroup.json | 76 -- .../examples/WebTestUpdate.json | 67 -- .../examples/WebTestUpdateTagsOnly.json | 57 -- .../2021-03-03-preview/webTests_API.json | 678 ------------------ .../resource-manager/readme.md | 14 +- 13 files changed, 166 insertions(+), 1142 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json new file mode 100644 index 000000000000..f93391a39a58 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json @@ -0,0 +1,144 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights client for application insights diagnostic services token.", + "version": "2021-03-03-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "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" + } + } + }, + "paths": { + "/{resourceUri}/providers/Microsoft.Insights/generateDiagnosticServiceReadOnlyToken": { + "post": { + "tags": [ + "generateDiagnosticServiceReadOnlyToken" + ], + "operationId": "GenerateDiagnosticServiceReadOnlyToken", + "description": "**Gets an read-only access token for application insights diagnostic service data.**", + "parameters": [ + { + "$ref": "#/parameters/ResourceUriParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed .", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful response containing the application insights diagnostic services token.", + "schema": { + "$ref": "#/definitions/DiagnosticServicesTokenResponse" + }, + "examples": { + "application/json": { + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + } + } + } + }, + "x-ms-examples": { + "Get diagnostic services token for resource": { + "$ref": "./examples/DiagnosticServicesTokenPost.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.Insights/generateDiagnosticServiceReadWriteToken": { + "post": { + "tags": [ + "generateDiagnosticServiceReadWriteToken" + ], + "operationId": "GenerateDiagnosticServiceReadWriteToken", + "description": "**Gets an read-write access token for application insights diagnostic service data.**", + "parameters": [ + { + "$ref": "#/parameters/ResourceUriParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed .", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Successful response containing the application insights diagnostic services token.", + "schema": { + "$ref": "#/definitions/DiagnosticServicesTokenResponse" + }, + "examples": { + "application/json": { + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + } + } + } + }, + "x-ms-examples": { + "Get diagnostic services token for resource": { + "$ref": "./examples/DiagnosticServicesTokenPost.json" + } + } + } + } + }, + "definitions": { + "DiagnosticServicesTokenResponse": { + "type": "object", + "properties": { + "token": { + "x-ms-secret": true, + "type": "string", + "description": "JWT token for accessing application insights diagnostic service data." + } + }, + "description": "The response to a diagnostic services token query." + } + }, + "parameters": { + "ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The identifier of the resource.", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json new file mode 100644 index 000000000000..337d14652ce7 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/diagnosticServicesToken", + "api-version": "2021-03-03-preview" + }, + "responses": { + "200": { + "body": { + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json deleted file mode 100644 index 187b6aa4e3a7..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/Operations_List.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.insights/webtests", - "display": { - "provider": "Microsoft Container Instance", - "resource": "webtests", - "operation": "CRUD operations on webtest", - "description": "CRUD operations on webtest" - }, - "origin": "User" - } - ] - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json deleted file mode 100644 index e35ed8f1bd99..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestCreate.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "webTestName": "my-webtest-my-component", - "WebTestDefinition": { - "location": "South Central US", - "kind": "ping", - "properties": { - "Name": "my-webtest-my-component", - "SyntheticMonitorId": "my-webtest-my-component", - "Configuration": { - "WebTest": "" - }, - "Description": "Ping web test alert for mytestwebapp", - "Enabled": true, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "us-fl-mia-edge" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" - }, - "kind": "ping", - "properties": { - "Name": "my-webtest-my-component", - "SyntheticMonitorId": "my-webtest-my-component", - "Description": "Ping web test alert for mytestwebapp", - "Enabled": true, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "us-fl-mia-edge" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json deleted file mode 100644 index 91f7c5527638..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "webTestName": "my-webtest-01-mywebservice" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json deleted file mode 100644 index d2df88edc505..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestGet.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "webTestName": "my-webtest-01-mywebservice" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice", - "name": "my-webtest-01-mywebservice", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/components/mytester": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Web/sites/mytester": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-01-mywebservice", - "Name": "mytest-webtest-01", - "Description": "", - "Enabled": false, - "Frequency": 900, - "Timeout": 30, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "us-fl-mia-edge" - }, - { - "Id": "apac-hk-hkn-azr" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json deleted file mode 100644 index b072b8747908..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestList.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-my-component", - "Name": "my-webtest", - "Description": "", - "Enabled": false, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component", - "name": "my-webtest-my-other-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "Test": "You can delete this synthetic monitor anytime", - "hidden-link:/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-my-other-component", - "Name": "342bccf4-722f-496d-b064-123456789abc", - "Description": "", - "Enabled": false, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": false, - "Locations": [], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json deleted file mode 100644 index b80a3207dcbe..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByComponent.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "componentName": "my-component" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-my-component", - "Name": "my-webtest", - "Description": "", - "Enabled": false, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "apac-hk-hkn-azr" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json deleted file mode 100644 index e14a956d70b9..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestListByResourceGroup.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-my-component", - "Name": "my-webtest", - "Description": "", - "Enabled": false, - "Frequency": 900, - "Timeout": 120, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "apac-hk-hkn-azr" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component", - "name": "my-webtest-my-other-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "Test": "You can delete this synthetic monitor anytime", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource" - }, - "kind": "ping", - "properties": { - "SyntheticMonitorId": "my-webtest-my-other-component", - "Name": "342bccf4-722f-496d-b064-123456789abc", - "Description": "", - "Enabled": false, - "Frequency": 300, - "Timeout": 90, - "Kind": "ping", - "RetryEnabled": false, - "Locations": [ - { - "Id": "us-fl-mia-edge" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json deleted file mode 100644 index d31e947b8b33..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdate.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "webTestName": "my-webtest-my-component", - "WebTestDefinition": { - "location": "South Central US", - "kind": "ping", - "properties": { - "Configuration": { - "WebTest": "" - }, - "Frequency": 600, - "Timeout": 30, - "Locations": [ - { - "Id": "us-fl-mia-edge" - }, - { - "Id": "apac-hk-hkn-azr" - } - ], - "Kind": "ping", - "Name": "my-webtest-my-component", - "SyntheticMonitorId": "my-webtest-my-component" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource" - }, - "kind": "ping", - "properties": { - "Name": "my-webtest-my-component", - "SyntheticMonitorId": "my-webtest-my-component", - "Description": "Ping web test alert for mytestwebapp", - "Enabled": true, - "Frequency": 600, - "Timeout": 30, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "us-fl-mia-edge" - }, - { - "Id": "apac-hk-hkn-azr" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json deleted file mode 100644 index 3a76b92f3f74..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/WebTestUpdateTagsOnly.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "api-version": "2021-03-03-preview", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "webTestName": "my-webtest-my-component", - "WebTestTags": { - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource", - "CustomField-01": "This is a random value", - "SystemType": "A08", - "Color": "AzureBlue" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component", - "name": "my-webtest-my-component", - "type": "Microsoft.Insights/webtests", - "location": "southcentralus", - "tags": { - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp": "Resource", - "CustomField-01": "This is a random value", - "SystemType": "A08", - "Color": "AzureBlue" - }, - "kind": "ping", - "properties": { - "Name": "my-webtest-my-component", - "SyntheticMonitorId": "my-webtest-my-component", - "Description": "Ping web test alert for mytestwebapp", - "Enabled": true, - "Frequency": 600, - "Timeout": 30, - "Kind": "ping", - "RetryEnabled": true, - "Locations": [ - { - "Id": "us-fl-mia-edge" - }, - { - "Id": "apac-hk-hkn-azr" - } - ], - "Configuration": { - "WebTest": "" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json deleted file mode 100644 index d234bb51b80a..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json +++ /dev/null @@ -1,678 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ApplicationInsightsManagementClient", - "description": "Azure Application Insights client for web test based alerting.", - "version": "2021-03-03-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "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" - } - } - }, - "paths": { - "/providers/Microsoft.Insights/operations": { - "get": { - "tags": [ - "Operations" - ], - "summary": "List available operations.", - "description": "List the available operations supported by the Microsoft.EventGrid resource provider.", - "operationId": "Operations_List", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests": { - "get": { - "description": "Get all Application Insights web tests defined within a specified resource group.", - "operationId": "WebTests_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more web test definitions.", - "schema": { - "$ref": "#/definitions/webTestListResult" - } - } - }, - "x-ms-examples": { - "webTestListByResourceGroup": { - "$ref": "./examples/WebTestListByResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}": { - "get": { - "description": "Get a specific Application Insights web test definition.", - "operationId": "WebTests_Get", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WebTestNameParameter" - } - ], - "responses": { - "200": { - "description": "Ann Application Insights web test definition.", - "schema": { - "$ref": "#/definitions/WebTest" - } - } - }, - "x-ms-examples": { - "webTestGet": { - "$ref": "./examples/WebTestGet.json" - } - } - }, - "put": { - "description": "Creates or updates an Application Insights web test definition.", - "operationId": "WebTests_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WebTestNameParameter" - }, - { - "name": "WebTestDefinition", - "description": "Properties that need to be specified to create or update an Application Insights web test definition.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WebTest" - } - } - ], - "responses": { - "200": { - "description": "Adding the Application Insights web test was successful. Web test properties are updated and returned.", - "schema": { - "$ref": "#/definitions/WebTest" - } - } - }, - "x-ms-examples": { - "webTestCreate": { - "$ref": "./examples/WebTestCreate.json" - }, - "webTestUpdate": { - "$ref": "./examples/WebTestUpdate.json" - } - } - }, - "patch": { - "description": "Creates or updates an Application Insights web test definition.", - "operationId": "WebTests_UpdateTags", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WebTestNameParameter" - }, - { - "name": "WebTestTags", - "description": "Updated tag information to set into the web test instance.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TagsResource" - } - } - ], - "responses": { - "200": { - "description": "Updating the Application Insights web test tags was successful. Web test tags are updated and returned with the rest of the WebTest object properties.", - "schema": { - "$ref": "#/definitions/WebTest" - } - } - }, - "x-ms-examples": { - "webTestUpdateTags": { - "$ref": "./examples/WebTestUpdateTagsOnly.json" - } - } - }, - "delete": { - "description": "Deletes an Application Insights web test.", - "operationId": "WebTests_Delete", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WebTestNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "204": { - "description": "No content: the request was successful, but the response is empty (the request to delete failed because the specified web test does not exist)." - }, - "200": { - "description": "Successful request to delete a web test definition." - } - }, - "x-ms-examples": { - "webTestDelete": { - "$ref": "./examples/WebTestDelete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests": { - "get": { - "description": "Get all Application Insights web test alerts definitions within a subscription.", - "operationId": "WebTests_List", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "A list of 0 or more Application Insights web test definitions.", - "schema": { - "$ref": "#/definitions/webTestListResult" - } - } - }, - "x-ms-examples": { - "webTestList": { - "$ref": "./examples/WebTestList.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests": { - "get": { - "description": "Get all Application Insights web tests defined for the specified component.", - "operationId": "WebTests_ListByComponent", - "parameters": [ - { - "$ref": "#/parameters/ComponentNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more web test definitions.", - "schema": { - "$ref": "#/definitions/webTestListResult" - } - } - }, - "x-ms-examples": { - "webTestListByComponent": { - "$ref": "./examples/WebTestListByComponent.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "WebtestsResource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "TagsResource": { - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "description": "A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance." - }, - "webTestListResult": { - "description": "A list of 0 or more Application Insights WebTest definitions.", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "array", - "description": "Set of Application Insights WebTest definitions.", - "items": { - "$ref": "#/definitions/WebTest" - } - }, - "nextLink": { - "type": "string", - "description": "The link to get the next part of the returned list of WebTest, should the return set be too large for a single request. May be null." - } - } - }, - "WebTest": { - "description": "An Application Insights WebTest definition.", - "allOf": [ - { - "$ref": "#/definitions/WebtestsResource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "The kind of WebTest that this web test watches. Choices are ping and multistep.", - "default": "ping", - "enum": [ - "ping", - "multistep" - ], - "x-ms-enum": { - "name": "WebTestKind", - "modelAsString": false - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/WebTestProperties" - } - } - }, - "WebTestProperties": { - "description": "Metadata describing a web test for an Azure resource.", - "required": [ - "Name", - "Kind", - "Locations", - "SyntheticMonitorId" - ], - "properties": { - "SyntheticMonitorId": { - "type": "string", - "description": "Unique ID of this WebTest. This is typically the same value as the Name field." - }, - "Name": { - "x-ms-client-name": "WebTestName", - "type": "string", - "description": "User defined name if this WebTest." - }, - "Description": { - "type": "string", - "description": "User defined description for this WebTest." - }, - "Enabled": { - "type": "boolean", - "description": "Is the test actively being monitored." - }, - "Frequency": { - "type": "integer", - "format": "int32", - "description": "Interval in seconds between test runs for this WebTest. Default value is 300.", - "default": 300 - }, - "Timeout": { - "type": "integer", - "format": "int32", - "description": "Seconds until this WebTest will timeout and fail. Default value is 30.", - "default": 30 - }, - "Kind": { - "x-ms-client-name": "WebTestKind", - "type": "string", - "description": "The kind of web test this is, valid choices are ping, multistep, basic, and standard.", - "default": "ping", - "enum": [ - "ping", - "multistep", - "basic", - "standard" - ], - "x-ms-enum": { - "name": "WebTestKindEnum", - "modelAsString": false - } - }, - "RetryEnabled": { - "type": "boolean", - "description": "Allow for retries should this WebTest fail." - }, - "Locations": { - "type": "array", - "description": "A list of where to physically run the tests from to give global coverage for accessibility of your application.", - "items": { - "$ref": "#/definitions/WebTestGeolocation" - } - }, - "Configuration": { - "type": "object", - "description": "An XML configuration specification for a WebTest.", - "properties": { - "WebTest": { - "type": "string", - "description": "The XML specification of a WebTest to run against an application." - } - } - }, - "provisioningState": { - "type": "string", - "description": "Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.", - "readOnly": true - }, - "Request": { - "type": "object", - "description": "The collection of request properties", - "properties": { - "RequestUrl": { - "type": "string", - "description": "Url location to test." - }, - "Headers": { - "type": "array", - "description": "List of headers and their values to add to the WebTest call.", - "items": { - "$ref": "#/definitions/HeaderField" - } - }, - "HttpVerb": { - "type": "string", - "description": "Http verb to use for this web test." - }, - "RequestBody": { - "type": "string", - "description": "Base64 encoded string body to send with this web test." - }, - "ParseDependentRequests": { - "type": "boolean", - "description": "Parse Dependent request for this WebTest." - }, - "FollowRedirects": { - "type": "boolean", - "description": "Follow redirects for this web test." - } - } - }, - "ContentValidation": { - "type": "object", - "description": "The collection of content validation properties", - "properties": { - "ContentMatch": { - "type": "string", - "description": "Content to look for in the return of the WebTest." - }, - "IgnoreCase": { - "type": "boolean", - "description": "When set, this value makes the ContentMatch validation case insensitive." - }, - "PassIfTextFound": { - "type": "boolean", - "description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match" - } - } - }, - "SSLCheck": { - "type": "boolean", - "description": "Checks to see if the SSL cert is still valid." - }, - "SSLCertRemainingLifetimeCheck": { - "type": "integer", - "format": "int32", - "description": "A number of days to check still remain before the the existing SSL cert expires." - }, - "ExpectedHttpStatusCode": { - "type": "integer", - "format": "int32", - "description": "Validate that the WebTest returns the http status code provided." - }, - "IgnoreHttpsStatusCode": { - "type": "boolean", - "description": "When set, validation will ignore the status code." - } - } - }, - "WebTestGeolocation": { - "description": "Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.", - "type": "object", - "properties": { - "Id": { - "x-ms-client-name": "location", - "type": "string", - "description": "Location ID for the WebTest to run from." - } - } - }, - "HeaderField": { - "description": "A header to add to the WebTest.", - "type": "object", - "properties": { - "key": { - "x-ms-client-name": "headerFieldName", - "type": "string", - "description": "The name of the header." - }, - "value": { - "x-ms-client-name": "headerFieldValue", - "type": "string", - "description": "The value of the header." - } - } - }, - "OperationsListResult": { - "description": "Result of the List Operations operation", - "type": "object", - "properties": { - "value": { - "description": "A collection of operations", - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any." - } - } - }, - "Operation": { - "description": "Represents an operation returned by the GetOperations request", - "type": "object", - "properties": { - "name": { - "description": "Name of the operation", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationInfo", - "description": "Display name of the operation" - }, - "origin": { - "description": "Origin of the operation", - "type": "string" - }, - "properties": { - "description": "Properties of the operation", - "type": "object", - "x-ms-client-flatten": true - } - } - }, - "OperationInfo": { - "description": "Information about an operation", - "type": "object", - "properties": { - "provider": { - "description": "Name of the provider", - "type": "string" - }, - "resource": { - "description": "Name of the resource type", - "type": "string" - }, - "operation": { - "description": "Name of the operation", - "type": "string" - }, - "description": { - "description": "Description of the operation", - "type": "string" - } - } - } - }, - "parameters": { - "ComponentNameParameter": { - "name": "componentName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Application Insights component resource.", - "x-ms-parameter-location": "method" - }, - "WebTestNameParameter": { - "name": "webTestName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Application Insights WebTest resource.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 31cdbd214739..31e2ea5f7d7a 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -201,16 +201,20 @@ directive: reason: 'get workbook list by subscription is not supported' - suppress: OperationsAPIImplementation reason: 'Previously implemented operation apis are using an incorrect RP case format which I cannot change.' + - suppress: SECRET_PROPERTY + from: diagnosticServicesToken_API.json + where: + - $.definitions.DiagnosticServicesTokenResponse.properties.token + reason: 'Secrets are OK to return in a POST response.' ``` +### Tag: package-preview-2021-03-only -### Tag: package-preview-2021-03 - -These settings apply only when `--tag=package-preview-2021-03` is specified on the command line. +These settings apply only when `--tag=package-preview-2021-03-only` is specified on the command line. -```yaml $(tag) == 'package-preview-2021-03' +```yaml $(tag) == 'package-preview-2021-03-only' input-file: - - Microsoft.Insights/preview/2021-03-03-preview/webTests_API.json + - Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json ``` ### Tag: package-2020-02-12 From ddbc3d9c34ead306af776771153d0f367b49be69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saar=20Shen=20=F0=9F=9A=BE?= Date: Wed, 3 Mar 2021 15:41:23 -0800 Subject: [PATCH 5/7] Update examples to split tokens for readonly vs readwrite --- .../diagnosticServicesToken_API.json | 8 ++++---- ...son => DiagnosticServicesReadOnlyTokenPost.json} | 2 +- .../DiagnosticServicesReadWriteTokenPost.json | 13 +++++++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/{DiagnosticServicesTokenPost.json => DiagnosticServicesReadOnlyTokenPost.json} (91%) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json index f93391a39a58..415e302def93 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json @@ -69,8 +69,8 @@ } }, "x-ms-examples": { - "Get diagnostic services token for resource": { - "$ref": "./examples/DiagnosticServicesTokenPost.json" + "Get diagnostic services read-only token for resource": { + "$ref": "./examples/DiagnosticServicesReadOnlyTokenPost.json" } } } @@ -110,8 +110,8 @@ } }, "x-ms-examples": { - "Get diagnostic services token for resource": { - "$ref": "./examples/DiagnosticServicesTokenPost.json" + "Get diagnostic services read-write token for resource": { + "$ref": "./examples/DiagnosticServicesReadWriteTokenPost.json" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json similarity index 91% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json index 337d14652ce7..1df55ccf5276 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesTokenPost.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/diagnosticServicesToken", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/generateDiagnosticServiceReadOnlyToken", "api-version": "2021-03-03-preview" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json new file mode 100644 index 000000000000..917e6858e1d8 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/generateDiagnosticServiceReadWriteToken", + "api-version": "2021-03-03-preview" + }, + "responses": { + "200": { + "body": { + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" + } + } + } +} From 5d1c8fe20377990deafbc9bbe4e80821a7ac79e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saar=20Shen=20=F0=9F=9A=BE?= Date: Tue, 16 Mar 2021 22:55:33 -0700 Subject: [PATCH 6/7] Fix accoding to code review feedback --- .../2021-03-03-preview/diagnosticServicesToken_API.json | 8 ++++---- .../applicationinsights/resource-manager/readme.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json index 415e302def93..17af68b253cf 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json @@ -39,8 +39,8 @@ "tags": [ "generateDiagnosticServiceReadOnlyToken" ], - "operationId": "GenerateDiagnosticServiceReadOnlyToken", - "description": "**Gets an read-only access token for application insights diagnostic service data.**", + "operationId": "DiagnosticServiceToken_GetReadOnly", + "description": "Gets an read-only access token for application insights diagnostic service data.", "parameters": [ { "$ref": "#/parameters/ResourceUriParameter" @@ -80,8 +80,8 @@ "tags": [ "generateDiagnosticServiceReadWriteToken" ], - "operationId": "GenerateDiagnosticServiceReadWriteToken", - "description": "**Gets an read-write access token for application insights diagnostic service data.**", + "operationId": "DiagnosticServiceToken_GetReadWrite", + "description": "Gets an read-write access token for application insights diagnostic service data.", "parameters": [ { "$ref": "#/parameters/ResourceUriParameter" diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 31e2ea5f7d7a..0f95a970a1a7 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -28,7 +28,7 @@ These are the global settings for the ApplicationInsights API. title: ApplicationInsightsManagementClient description: Composite Swagger for Application Insights Management Client openapi-type: arm -tag: package-preview-2021-03 +tag: package-preview-2020-10 ``` ### Suppression @@ -264,7 +264,7 @@ input-file: These settings apply only when `--tag=package-preview-2020-10` is specified on the command line. -``` yaml $(tag) == 'package-preview-2020-10' +```yaml $(tag) == 'package-preview-2020-10' input-file: - Microsoft.Insights/preview/2020-10-05-preview/webTests_API.json ``` From 66c63683ee74c5fb3fcf42b0b489bb8a1b54fad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saar=20Shen=20=F0=9F=9A=BE?= Date: Tue, 6 Apr 2021 16:29:33 -0700 Subject: [PATCH 7/7] Update examples due to review feedback from ARM --- .../diagnosticServicesToken_API.json | 10 ---------- .../examples/DiagnosticServicesReadOnlyTokenPost.json | 2 +- .../examples/DiagnosticServicesReadWriteTokenPost.json | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json index 17af68b253cf..fb6feeac1045 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/diagnosticServicesToken_API.json @@ -60,11 +60,6 @@ "description": "Successful response containing the application insights diagnostic services token.", "schema": { "$ref": "#/definitions/DiagnosticServicesTokenResponse" - }, - "examples": { - "application/json": { - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - } } } }, @@ -101,11 +96,6 @@ "description": "Successful response containing the application insights diagnostic services token.", "schema": { "$ref": "#/definitions/DiagnosticServicesTokenResponse" - }, - "examples": { - "application/json": { - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - } } } }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json index 1df55ccf5276..128e9d9f65bd 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadOnlyTokenPost.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/generateDiagnosticServiceReadOnlyToken", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/", "api-version": "2021-03-03-preview" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json index 917e6858e1d8..128e9d9f65bd 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2021-03-03-preview/examples/DiagnosticServicesReadWriteTokenPost.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/Microsoft.Insights/generateDiagnosticServiceReadWriteToken", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/", "api-version": "2021-03-03-preview" }, "responses": {