openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 30.1 kB
JSON
{"openapi":"3.0.0","info":{"description":"Azure Application Insights client for web test based alerting.","title":"ApplicationInsightsManagementClient","version":"2015-05-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/webTests_API.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"applicationinsights-webTests_API","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests":{"get":{"description":"Get all Application Insights web test alerts definitions within a subscription.","operationId":"WebTests_List","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestList":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestList":{"value":"subid"}}}],"responses":{"200":{"description":"A list of 0 or more Application Insights web test definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webTestListResult"},"examples":{"webTestList":{"$ref":"#/components/examples/webTestList"}}}}}},"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":"#/components/parameters/ComponentNameParameter"},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestListByComponent":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestListByComponent":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestListByComponent":{"value":"subid"}}}],"responses":{"200":{"description":"A list containing 0 or more web test definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webTestListResult"},"examples":{"webTestListByComponent":{"$ref":"#/components/examples/webTestListByComponent"}}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/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":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestListByResourceGroup":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestListByResourceGroup":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestListByResourceGroup":{"value":"subid"}}}],"responses":{"200":{"description":"A list containing 0 or more web test definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webTestListResult"},"examples":{"webTestListByResourceGroup":{"$ref":"#/components/examples/webTestListByResourceGroup"}}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}":{"delete":{"description":"Deletes an Application Insights web test.","operationId":"WebTests_Delete","parameters":[{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestDelete":{"value":"subid"}}},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestDelete":{"value":"my-resource-group"}}},{"$ref":"#/components/parameters/WebTestNameParameter"},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestDelete":{"value":"2015-05-01"}}}],"responses":{"200":{"description":"Successful request to delete a web test definition."},"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)."}}},"get":{"description":"Get a specific Application Insights web test definition.","operationId":"WebTests_Get","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestGet":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestGet":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestGet":{"value":"subid"}}},{"$ref":"#/components/parameters/WebTestNameParameter"}],"responses":{"200":{"description":"Ann Application Insights web test definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebTest"},"examples":{"webTestGet":{"$ref":"#/components/examples/webTestGet"}}}}}}},"patch":{"description":"Creates or updates an Application Insights web test definition.","operationId":"WebTests_UpdateTags","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestUpdateTags":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestUpdateTags":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestUpdateTags":{"value":"subid"}}},{"$ref":"#/components/parameters/WebTestNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsResource"}}},"description":"Updated tag information to set into the web test instance.","required":true},"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.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebTest"},"examples":{"webTestUpdateTags":{"$ref":"#/components/examples/webTestUpdateTags"}}}}}}},"put":{"description":"Creates or updates an Application Insights web test definition.","operationId":"WebTests_CreateOrUpdate","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"webTestCreate":{"value":"my-resource-group"},"webTestUpdate":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestCreate":{"value":"2015-05-01"},"webTestUpdate":{"value":"2015-05-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"webTestCreate":{"value":"subid"},"webTestUpdate":{"value":"subid"}}},{"$ref":"#/components/parameters/WebTestNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebTest"}}},"description":"Properties that need to be specified to create or update an Application Insights web test definition.","required":true},"responses":{"200":{"description":"Adding the Application Insights web test was successful. Web test properties are updated and returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebTest"},"examples":{"webTestCreate":{"$ref":"#/components/examples/webTestCreate"},"webTestUpdate":{"$ref":"#/components/examples/webTestUpdate"}}}}}}}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"webTestList":{"value":{"value":[{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":900,"Kind":"ping","Locations":[],"Name":"my-webtest","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":120,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"},{"id":"/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-other-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"342bccf4-722f-496d-b064-123456789abc\" Id=\"00a15cc1-c903-4f97-9af4-123456789abc\" Enabled=\"False\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"347e1924-9899-4c6e-ad78-123456789abc\" Version=\"1.1\" Url=\"http://my-other-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":900,"Kind":"ping","Locations":[],"Name":"342bccf4-722f-496d-b064-123456789abc","RetryEnabled":false,"SyntheticMonitorId":"my-webtest-my-other-component","Timeout":120,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}]}},"webTestListByComponent":{"value":{"value":[{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":900,"Kind":"ping","Locations":[{"Id":"apac-hk-hkn-azr"}],"Name":"my-webtest","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":120,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}]}},"webTestListByResourceGroup":{"value":{"value":[{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":900,"Kind":"ping","Locations":[{"Id":"apac-hk-hkn-azr"}],"Name":"my-webtest","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":120,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"},{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-other-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"342bccf4-722f-496d-b064-123456789abc\" Id=\"00a15cc1-c903-4f97-9af4-123456789abc\" Enabled=\"False\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"347e1924-9899-4c6e-ad78-123456789abc\" Version=\"1.1\" Url=\"http://my-other-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":300,"Kind":"ping","Locations":[{"Id":"us-fl-mia-edge"}],"Name":"342bccf4-722f-496d-b064-123456789abc","RetryEnabled":false,"SyntheticMonitorId":"my-webtest-my-other-component","Timeout":90,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}]}},"webTestGet":{"value":{"id":"/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice","kind":"ping","location":"southcentralus","name":"my-webtest-01-mywebservice","properties":{"Configuration":{"WebTest":"<WebTest Name=\"mytest-webtest-01\" Id=\"0317d26b-8672-4370-bd6b-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a55ce143-4f1e-a7e6-b69e-123456789abc\" Version=\"1.1\" Url=\"http://mytester.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"False\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"","Enabled":false,"Frequency":900,"Kind":"ping","Locations":[{"Id":"us-fl-mia-edge"},{"Id":"apac-hk-hkn-azr"}],"Name":"mytest-webtest-01","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-01-mywebservice","Timeout":30,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}},"webTestUpdateTags":{"value":{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"Ping web test alert for mytestwebapp","Enabled":true,"Frequency":600,"Kind":"ping","Locations":[{"Id":"us-fl-mia-edge"},{"Id":"apac-hk-hkn-azr"}],"Name":"my-webtest-my-component","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":30,"provisioningState":"Succeeded"},"tags":{"Color":"AzureBlue","CustomField-01":"This is a random value","SystemType":"A08","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"},"type":"Microsoft.Insights/webtests"}},"webTestCreate":{"value":{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"Ping web test alert for mytestwebapp","Enabled":true,"Frequency":900,"Kind":"ping","Locations":[{"Id":"us-fl-mia-edge"}],"Name":"my-webtest-my-component","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":120,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}},"webTestUpdate":{"value":{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component","kind":"ping","location":"southcentralus","name":"my-webtest-my-component","properties":{"Configuration":{"WebTest":"<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"},"Description":"Ping web test alert for mytestwebapp","Enabled":true,"Frequency":600,"Kind":"ping","Locations":[{"Id":"us-fl-mia-edge"},{"Id":"apac-hk-hkn-azr"}],"Name":"my-webtest-my-component","RetryEnabled":true,"SyntheticMonitorId":"my-webtest-my-component","Timeout":30,"provisioningState":"Succeeded"},"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"},"type":"Microsoft.Insights/webtests"}}},"parameters":{"ComponentNameParameter":{"description":"The name of the Application Insights component resource.","in":"path","name":"componentName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"webTestListByComponent":{"value":"my-component"}}},"WebTestNameParameter":{"description":"The name of the Application Insights webtest resource.","in":"path","name":"webTestName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"webTestDelete":{"value":"my-webtest-01-mywebservice"},"webTestGet":{"value":"my-webtest-01-mywebservice"},"webTestUpdateTags":{"value":"my-webtest-my-component"},"webTestCreate":{"value":"my-webtest-my-component"},"webTestUpdate":{"value":"my-webtest-my-component"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow.","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"TagsResource":{"description":"A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance.","properties":{"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"}}},"WebTest":{"allOf":[{"$ref":"#/components/schemas/WebtestsResource"}],"description":"An Application Insights web test definition.","properties":{"kind":{"default":"ping","description":"The kind of web test that this web test watches. Choices are ping and multistep.","enum":["ping","multistep"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"WebTestKind"}},"properties":{"$ref":"#/components/schemas/WebTestProperties"}}},"WebTestGeolocation":{"description":"Geo-physical location to run a web test from. You must specify one or more locations for the test to run from.","properties":{"Id":{"description":"Location ID for the webtest to run from.","type":"string","x-ms-client-name":"location"}},"type":"object"},"WebTestProperties":{"description":"Metadata describing a web test for an Azure resource.","properties":{"Configuration":{"description":"An XML configuration specification for a WebTest.","properties":{"WebTest":{"description":"The XML specification of a WebTest to run against an application.","type":"string"}},"type":"object"},"Description":{"description":"Purpose/user defined descriptive test for this WebTest.","type":"string"},"Enabled":{"description":"Is the test actively being monitored.","type":"boolean"},"Frequency":{"default":300,"description":"Interval in seconds between test runs for this WebTest. Default value is 300.","format":"int32","type":"integer"},"Kind":{"default":"ping","description":"The kind of web test this is, valid choices are ping and multistep.","enum":["ping","multistep"],"type":"string","x-ms-client-name":"WebTestKind","x-ms-enum":{"modelAsString":false,"name":"WebTestKind"}},"Locations":{"description":"A list of where to physically run the tests from to give global coverage for accessibility of your application.","items":{"$ref":"#/components/schemas/WebTestGeolocation"},"type":"array"},"Name":{"description":"User defined name if this WebTest.","type":"string","x-ms-client-name":"WebTestName"},"RetryEnabled":{"description":"Allow for retries should this WebTest fail.","type":"boolean"},"SyntheticMonitorId":{"description":"Unique ID of this WebTest. This is typically the same value as the Name field.","type":"string"},"Timeout":{"default":30,"description":"Seconds until this WebTest will timeout and fail. Default value is 30.","format":"int32","type":"integer"},"provisioningState":{"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,"type":"string"}},"required":["Name","Kind","Locations","SyntheticMonitorId"]},"WebtestsResource":{"description":"An azure resource object","properties":{"id":{"description":"Azure resource Id","readOnly":true,"type":"string"},"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"name":{"description":"Azure resource name","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"},"type":{"description":"Azure resource type","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true},"webTestListResult":{"description":"A list of 0 or more Application Insights web test definitions.","properties":{"nextLink":{"description":"The link to get the next part of the returned list of web tests, should the return set be too large for a single request. May be null.","type":"string"},"value":{"description":"Set of Application Insights web test definitions.","items":{"$ref":"#/components/schemas/WebTest"},"type":"array"}},"required":["value"]}}}}