web_tests
Creates, updates, deletes, gets or lists a web_tests
resource.
Overview
Name | web_tests |
Type | Resource |
Id | azure.application_insights.web_tests |
Fields
- vw_web_tests
- web_tests
Name | Datatype | Description |
---|---|---|
id | text | Azure resource Id |
name | text | Azure resource name |
description | text | field from the properties object |
configuration | text | field from the properties object |
enabled | text | field from the properties object |
frequency | text | field from the properties object |
kind | text | The kind of WebTest that this web test watches. Choices are ping, multistep and standard. |
location | text | Resource location |
locations | text | field from the properties object |
provisioning_state | text | field from the properties object |
request | text | field from the properties object |
resourceGroupName | text | field from the properties object |
retry_enabled | text | field from the properties object |
subscriptionId | text | field from the properties object |
synthetic_monitor_id | text | field from the properties object |
tags | text | Resource tags |
timeout | text | field from the properties object |
type | text | Azure resource type |
validation_rules | text | field from the properties object |
webTestName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource Id |
name | string | Azure resource name |
kind | string | The kind of WebTest that this web test watches. Choices are ping, multistep and standard. |
location | string | Resource location |
properties | object | Metadata describing a web test for an Azure resource. |
tags | `` | Resource tags |
type | string | Azure resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, webTestName | Get a specific Application Insights web test definition. |
list | SELECT | subscriptionId | Get all Application Insights web test definitions for the specified subscription. |
list_by_component | SELECT | componentName, resourceGroupName, subscriptionId | Get all Application Insights web tests defined for the specified component. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get all Application Insights web tests defined for the specified resource group. |
create_or_update | INSERT | resourceGroupName, subscriptionId, webTestName | Creates or updates an Application Insights web test definition. |
delete | DELETE | resourceGroupName, subscriptionId, webTestName | Deletes an Application Insights web test. |
update_tags | EXEC | resourceGroupName, subscriptionId, webTestName | Updates the tags associated with an Application Insights web test. |
SELECT
examples
Get all Application Insights web test definitions for the specified subscription.
- vw_web_tests
- web_tests
SELECT
id,
name,
description,
configuration,
enabled,
frequency,
kind,
location,
locations,
provisioning_state,
request,
resourceGroupName,
retry_enabled,
subscriptionId,
synthetic_monitor_id,
tags,
timeout,
type,
validation_rules,
webTestName
FROM azure.application_insights.vw_web_tests
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
kind,
location,
properties,
tags,
type
FROM azure.application_insights.web_tests
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new web_tests
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.application_insights.web_tests (
resourceGroupName,
subscriptionId,
webTestName,
location,
tags,
kind,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ webTestName }}',
'{{ location }}',
'{{ tags }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: string
- name: kind
value: string
- name: properties
value:
- name: SyntheticMonitorId
value: string
- name: Name
value: string
- name: Description
value: string
- name: Enabled
value: boolean
- name: Frequency
value: integer
- name: Timeout
value: integer
- name: Kind
value: string
- name: RetryEnabled
value: boolean
- name: Locations
value:
- - name: Id
value: string
- name: Configuration
value:
- name: WebTest
value: string
- name: provisioningState
value: string
- name: Request
value:
- name: RequestUrl
value: string
- name: Headers
value:
- - name: key
value: string
- name: value
value: string
- name: HttpVerb
value: string
- name: RequestBody
value: string
- name: ParseDependentRequests
value: boolean
- name: FollowRedirects
value: boolean
- name: ValidationRules
value:
- name: ContentValidation
value:
- name: ContentMatch
value: string
- name: IgnoreCase
value: boolean
- name: PassIfTextFound
value: boolean
- name: SSLCheck
value: boolean
- name: SSLCertRemainingLifetimeCheck
value: integer
- name: ExpectedHttpStatusCode
value: integer
- name: IgnoreHttpStatusCode
value: boolean
DELETE
example
Deletes the specified web_tests
resource.
/*+ delete */
DELETE FROM azure.application_insights.web_tests
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webTestName = '{{ webTestName }}';