diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json new file mode 100644 index 000000000000..a78a1b37bd5e --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestCreateStandard.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json new file mode 100644 index 000000000000..686eea20aadf --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-my-component", + "WebTestDefinition": { + "location": "South Central US", + "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": "standard", + "RetryEnabled": true, + "Request": { + "RequestUrl": "https://bing.com", + "Headers": [ + { + "key": "Content-Language", + "value": "de-DE" + }, + { + "key": "Accept-Language", + "value": "de-DE" + } + ], + "HttpVerb": "POST", + "RequestBody": "SGVsbG8gd29ybGQ=" + }, + "ValidationRules": { + "SSLCheck": true, + "SSLCertRemainingLifetimeCheck": 100 + }, + "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" + }, + "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": "standard", + "RetryEnabled": true, + "Locations": [ + { + "Id": "us-fl-mia-edge" + } + ], + "Request": { + "RequestUrl": "https://bing.com", + "Headers": [ + { + "key": "Content-Language", + "value": "de-DE" + }, + { + "key": "Accept-Language", + "value": "de-DE" + } + ], + "HttpVerb": "POST", + "RequestBody": "SGVsbG8gd29ybGQ=" + }, + "ValidationRules": { + "SSLCheck": true, + "SSLCertRemainingLifetimeCheck": 100 + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json new file mode 100644 index 000000000000..515dde452562 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "webTestName": "my-webtest-01-mywebservice" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json new file mode 100644 index 000000000000..56cb2af7e152 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json new file mode 100644 index 000000000000..31b61b030c38 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestListByComponent.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json new file mode 100644 index 000000000000..d18d979acfdc --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByResourceGroup.json new file mode 100644 index 000000000000..3a71f1f1ca7d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdate.json new file mode 100644 index 000000000000..39121d132cb8 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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" + }, + "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/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json new file mode 100644 index 000000000000..1e3e49952e72 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-06-15", + "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", + "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", + "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/stable/2022-06-15/webTests_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/webTests_API.json new file mode 100644 index 000000000000..8dea92734228 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/webTests_API.json @@ -0,0 +1,593 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights client for web tests.", + "version": "2022-06-15" + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests": { + "get": { + "description": "Get all Application Insights web tests defined for the 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": "Successfully created or updated an Application Insights web test.", + "schema": { + "$ref": "#/definitions/WebTest" + } + } + }, + "x-ms-examples": { + "webTestCreate": { + "$ref": "./examples/WebTestCreate.json" + }, + "webTestCreateStandard": { + "$ref": "./examples/WebTestCreateStandard.json" + }, + "webTestUpdate": { + "$ref": "./examples/WebTestUpdate.json" + } + } + }, + "patch": { + "description": "Updates the tags associated with an Application Insights web test.", + "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 associate with the web test resource.", + "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 definitions for the specified 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, multistep and standard.", + "default": "ping", + "enum": [ + "ping", + "multistep", + "standard" + ], + "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 and standard.", + "default": "ping", + "enum": [ + "ping", + "multistep", + "standard" + ], + "x-ms-enum": { + "name": "WebTestKind", + "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" + }, + "x-ms-identifiers": [ + "Id" + ] + }, + "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" + }, + "x-ms-identifiers": [ + "key" + ] + }, + "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." + } + } + }, + "ValidationRules": { + "type": "object", + "description": "The collection of validation rule properties", + "properties": { + "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. Must not be null or empty." + }, + "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. Value must be positive and the SSLCheck must be set to true." + }, + "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." + } + } + } + }, + "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 140ed8a7a71c..af43cbef33b0 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -22,9 +22,11 @@ To see additional help and options, run: Please familiarize yourself with the following before adding a new tag: -- Discussion on negative impact of multiple _api-version_'s within a tag: [Azure/azure-sdk-for-rust#563](https://github.com/Azure/azure-sdk-for-rust/issues/563) -- [API Spec & SDK Package Versioning Considerations](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/481/API-Spec-SDK-Package-Versioning-Considerations) -- [Manual Process: Adding new API version](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/83/Manual-Process-Adding-new-API-version) +* Discussion on negative impact of multiple *api-version*'s within a tag: [Azure/azure-sdk-for-rust#563](https://github.com/Azure/azure-sdk-for-rust/issues/563) + +* [API Spec & SDK Package Versioning Considerations](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/481/API-Spec-SDK-Package-Versioning-Considerations) + +* [Manual Process: Adding new API version](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/83/Manual-Process-Adding-new-API-version) --- @@ -38,7 +40,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-2022-04-01 +tag: package-2022-06-15 ``` ### Suppression @@ -115,34 +117,34 @@ directive: reason: 'delete API returns empty response and is already part of the previous api, cannot change it' - suppress: DeleteOperationResponses from: analyticsItems_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: componentAnnotations_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: componentApiKeys_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: componentContinuousExport_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: componentWorkItemConfigs_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: favorites_API.json - reason: 'consistent with existing delete response | owned by another team' + reason: consistent with existing delete response | owned by another team - suppress: DeleteOperationResponses from: workbooks_API.json - reason: 'consistent with existing delete response' + reason: consistent with existing delete response - suppress: DefaultErrorResponseSchema from: componentAnnotations_API.json - reason: 'consistent with existing default error response | owned by another team' + reason: consistent with existing default error response | owned by another team - suppress: DefaultErrorResponseSchema from: componentWorkItemConfigs_API.json - reason: 'consistent with existing default error response | owned by another team' + reason: consistent with existing default error response | owned by another team - suppress: DefaultErrorResponseSchema from: workbooks_API.json - reason: 'consistent with existing default error response' + reason: consistent with existing default error response - suppress: R4009 from: workbookTemplates_API.json reason: Existing APIs don't have systemData attribute. Suppressing so don't have to make breaking change @@ -151,85 +153,125 @@ directive: reason: Does not support list by subscription - suppress: DefaultErrorResponseSchema from: workbookOperations_API.json - reason: 'consistent with existing default error response' + reason: consistent with existing default error response - suppress: RequiredDefaultResponse from: analyticsItems_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentAnnotations_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentApiKeys_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentContinuousExport_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentFeaturesAndPricing_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentProactiveDetection_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: components_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: componentWorkItemConfigs_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: favorites_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: webTestLocations_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: webTestLocations_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: RequiredDefaultResponse from: webTests_API.json - reason: 'consistent with existing default response | owned by another team' + reason: consistent with existing default response | owned by another team - suppress: PathResourceTypeNameCamelCase from: componentAnnotations_API.json - reason: 'consistent with existing path | owned by another team' + reason: consistent with existing path | owned by another team - suppress: PathResourceTypeNameCamelCase from: componentApiKeys_API.json - reason: 'consistent with existing path | owned by another team' + reason: consistent with existing path | owned by another team - suppress: PathResourceTypeNameCamelCase from: componentProactiveDetection_API.json - reason: 'consistent with existing path | owned by another team' + reason: consistent with existing path | owned by another team - suppress: PathResourceTypeNameCamelCase from: componentWorkItemConfigs_API.json - reason: 'consistent with existing path | owned by another team' + reason: consistent with existing path | owned by another team - suppress: PathResourceProviderNamePascalCase from: analyticsItems_API.json - reason: 'consistent with existing path | owned by another team' + reason: consistent with existing path | owned by another team - suppress: GetCollectionResponseSchema from: componentProactiveDetection_API.json - reason: 'consistent with existing response schema | owned by another team' + reason: consistent with existing response schema | owned by another team - suppress: IntegerTypeMustHaveFormat from: componentFeaturesAndPricing_API.json - reason: 'consistent with existing format | owned by another team' + reason: consistent with existing format | owned by another team - suppress: IntegerTypeMustHaveFormat from: components_API.json - reason: 'consistent with existing format | owned by another team' + reason: consistent with existing format | owned by another team - suppress: TopLevelResourcesListBySubscription from: workbooks_API.json - reason: 'get workbook list by subscription is not supported' + 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.' + 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.' + reason: Secrets are OK to return in a POST response. - suppress: DefaultErrorResponseSchema from: aiOperations_API - reason: 'consistent with existing default error response | owned by another team' + reason: consistent with existing default error response | owned by another team - suppress: OperationsApiResponseSchema from: aiOperations_API - reason: 'consistent with existing response schema | owned by another team' + reason: consistent with existing response schema | owned by another team - suppress: RequiredReadOnlySystemData - + - suppress: NestedResourcesMustHaveListOperation + where: $.definitions.ComponentLinkedStorageAccounts + from: componentLinkedStorageAccounts_API.json + reason: Pre-existing error in another API (i.e. this PR did not introduce this issue). + - suppress: OperationsApiResponseSchema + where: '$.paths["/providers/Microsoft.Insights/operations"]' + from: workbookOperations_API.json + reason: Pre-existing error in another API (i.e. this PR did not introduce this issue). + - suppress: TrackedResourcePatchOperation + where: $.definitions.Workbook + from: workbooks_API.json + reason: Pre-existing error in another API (i.e. this PR did not introduce this issue). + - suppress: PathResourceProviderNamePascalCase + where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}"]' + from: componentLinkedStorageAccounts_API.json + reason: Pre-existing error in another API (i.e. this PR did not introduce this issue). +``` + +### Tag: package-2022-06-15 + +These settings apply only when `--tag=package-2022-06-15` is specified on the command line. + +``` yaml $(tag) == 'package-2022-06-15' +input-file: + - Microsoft.Insights/stable/2020-02-02/components_API.json + - Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json + - Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json + - Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json + - Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json + - Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json + - Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json + - Microsoft.Insights/stable/2015-05-01/favorites_API.json + - Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json + - Microsoft.Insights/stable/2022-06-15/webTests_API.json + - Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json + - Microsoft.Insights/stable/2021-03-08/workbookOperations_API.json + - Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json + - Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json + - Microsoft.Insights/stable/2022-04-01/workbooks_API.json + - Microsoft.Insights/stable/2021-10-14/livetoken_API.json + - Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json ``` ### Tag: package-2022-04-01 @@ -336,7 +378,7 @@ input-file: These settings apply only when `--tag=package-2021-10` is specified on the command line. -```yaml $(tag) == 'package-2021-10' +``` yaml $(tag) == 'package-2021-10' input-file: - Microsoft.Insights/stable/2021-10-14/livetoken_API.json ```