This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.insights.getWebTest
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get a specific Application Insights web test definition. Azure REST API version: 2022-06-15.
Other available API versions: 2020-10-05-preview.
Using getWebTest
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWebTest(args: GetWebTestArgs, opts?: InvokeOptions): Promise<GetWebTestResult>
function getWebTestOutput(args: GetWebTestOutputArgs, opts?: InvokeOptions): Output<GetWebTestResult>def get_web_test(resource_group_name: Optional[str] = None,
                 web_test_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetWebTestResult
def get_web_test_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                 web_test_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetWebTestResult]func LookupWebTest(ctx *Context, args *LookupWebTestArgs, opts ...InvokeOption) (*LookupWebTestResult, error)
func LookupWebTestOutput(ctx *Context, args *LookupWebTestOutputArgs, opts ...InvokeOption) LookupWebTestResultOutput> Note: This function is named LookupWebTest in the Go SDK.
public static class GetWebTest 
{
    public static Task<GetWebTestResult> InvokeAsync(GetWebTestArgs args, InvokeOptions? opts = null)
    public static Output<GetWebTestResult> Invoke(GetWebTestInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWebTestResult> getWebTest(GetWebTestArgs args, InvokeOptions options)
public static Output<GetWebTestResult> getWebTest(GetWebTestArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:insights:getWebTest
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- WebTest stringName 
- The name of the Application Insights WebTest resource.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- WebTest stringName 
- The name of the Application Insights WebTest resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- webTest StringName 
- The name of the Application Insights WebTest resource.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- webTest stringName 
- The name of the Application Insights WebTest resource.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- web_test_ strname 
- The name of the Application Insights WebTest resource.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- webTest StringName 
- The name of the Application Insights WebTest resource.
getWebTest Result
The following output properties are available:
- Id string
- Azure resource Id
- Location string
- Resource location
- Locations
List<Pulumi.Azure Native. Insights. Outputs. Web Test Geolocation Response> 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- Name string
- Azure resource name
- ProvisioningState string
- 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.
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- Type string
- Azure resource type
- WebTest stringKind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- WebTest stringName 
- User defined name if this WebTest.
- Configuration
Pulumi.Azure Native. Insights. Outputs. Web Test Properties Response Configuration 
- An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind string
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Request
Pulumi.Azure Native. Insights. Outputs. Web Test Properties Response Request 
- The collection of request properties
- RetryEnabled bool
- Allow for retries should this WebTest fail.
- Dictionary<string, string>
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- ValidationRules Pulumi.Azure Native. Insights. Outputs. Web Test Properties Response Validation Rules 
- The collection of validation rule properties
- Id string
- Azure resource Id
- Location string
- Resource location
- Locations
[]WebTest Geolocation Response 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- Name string
- Azure resource name
- ProvisioningState string
- 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.
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- Type string
- Azure resource type
- WebTest stringKind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- WebTest stringName 
- User defined name if this WebTest.
- Configuration
WebTest Properties Response Configuration 
- An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind string
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Request
WebTest Properties Response Request 
- The collection of request properties
- RetryEnabled bool
- Allow for retries should this WebTest fail.
- map[string]string
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- ValidationRules WebTest Properties Response Validation Rules 
- The collection of validation rule properties
- id String
- Azure resource Id
- location String
- Resource location
- locations
List<WebTest Geolocation Response> 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- name String
- Azure resource name
- provisioningState String
- 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.
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- type String
- Azure resource type
- webTest StringKind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- webTest StringName 
- User defined name if this WebTest.
- configuration
WebTest Properties Response Configuration 
- An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Integer
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind String
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- request
WebTest Properties Response Request 
- The collection of request properties
- retryEnabled Boolean
- Allow for retries should this WebTest fail.
- Map<String,String>
- Resource tags
- timeout Integer
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules WebTest Properties Response Validation Rules 
- The collection of validation rule properties
- id string
- Azure resource Id
- location string
- Resource location
- locations
WebTest Geolocation Response[] 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- name string
- Azure resource name
- provisioningState string
- 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.
- syntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- type string
- Azure resource type
- webTest stringKind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- webTest stringName 
- User defined name if this WebTest.
- configuration
WebTest Properties Response Configuration 
- An XML configuration specification for a WebTest.
- description string
- User defined description for this WebTest.
- enabled boolean
- Is the test actively being monitored.
- frequency number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind string
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- request
WebTest Properties Response Request 
- The collection of request properties
- retryEnabled boolean
- Allow for retries should this WebTest fail.
- {[key: string]: string}
- Resource tags
- timeout number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules WebTest Properties Response Validation Rules 
- The collection of validation rule properties
- id str
- Azure resource Id
- location str
- Resource location
- locations
Sequence[WebTest Geolocation Response] 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- name str
- Azure resource name
- provisioning_state str
- 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.
- synthetic_monitor_ strid 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- type str
- Azure resource type
- web_test_ strkind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- web_test_ strname 
- User defined name if this WebTest.
- configuration
WebTest Properties Response Configuration 
- An XML configuration specification for a WebTest.
- description str
- User defined description for this WebTest.
- enabled bool
- Is the test actively being monitored.
- frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind str
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- request
WebTest Properties Response Request 
- The collection of request properties
- retry_enabled bool
- Allow for retries should this WebTest fail.
- Mapping[str, str]
- Resource tags
- timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation_rules WebTest Properties Response Validation Rules 
- The collection of validation rule properties
- id String
- Azure resource Id
- location String
- Resource location
- locations List<Property Map>
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- name String
- Azure resource name
- provisioningState String
- 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.
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- type String
- Azure resource type
- webTest StringKind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- webTest StringName 
- User defined name if this WebTest.
- configuration Property Map
- An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind String
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- request Property Map
- The collection of request properties
- retryEnabled Boolean
- Allow for retries should this WebTest fail.
- Map<String>
- Resource tags
- timeout Number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules Property Map
- The collection of validation rule properties
Supporting Types
HeaderFieldResponse  
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
- headerField stringName 
- The name of the header.
- headerField stringValue 
- The value of the header.
- header_field_ strname 
- The name of the header.
- header_field_ strvalue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
WebTestGeolocationResponse   
- Location string
- Location ID for the WebTest to run from.
- Location string
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
- location string
- Location ID for the WebTest to run from.
- location str
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
WebTestPropertiesResponseConfiguration    
- WebTest string
- The XML specification of a WebTest to run against an application.
- WebTest string
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
- webTest string
- The XML specification of a WebTest to run against an application.
- web_test str
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
WebTestPropertiesResponseContentValidation     
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf booleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content_match str
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignore_case bool
- When set, this value makes the ContentMatch validation case insensitive.
- pass_if_ booltext_ found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
WebTestPropertiesResponseRequest    
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
List<Pulumi.Azure Native. Insights. Inputs. Header Field Response> 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
[]HeaderField Response 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers
List<HeaderField Response> 
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
- followRedirects boolean
- Follow redirects for this web test.
- headers
HeaderField Response[] 
- List of headers and their values to add to the WebTest call.
- httpVerb string
- Http verb to use for this web test.
- parseDependent booleanRequests 
- Parse Dependent request for this WebTest.
- requestBody string
- Base64 encoded string body to send with this web test.
- requestUrl string
- Url location to test.
- follow_redirects bool
- Follow redirects for this web test.
- headers
Sequence[HeaderField Response] 
- List of headers and their values to add to the WebTest call.
- http_verb str
- Http verb to use for this web test.
- parse_dependent_ boolrequests 
- Parse Dependent request for this WebTest.
- request_body str
- Base64 encoded string body to send with this web test.
- request_url str
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers List<Property Map>
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
WebTestPropertiesResponseValidationRules     
- ContentValidation Pulumi.Azure Native. Insights. Inputs. Web Test Properties Response Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- 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.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- ContentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- 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.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expectedHttp IntegerStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert IntegerRemaining Lifetime Check 
- 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.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expectedHttp numberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp booleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert numberRemaining Lifetime Check 
- 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.
- sSLCheck boolean
- Checks to see if the SSL cert is still valid.
- content_validation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expected_http_ intstatus_ code 
- Validate that the WebTest returns the http status code provided.
- ignore_http_ boolstatus_ code 
- When set, validation will ignore the status code.
- s_sl_ intcert_ remaining_ lifetime_ check 
- 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.
- s_sl_ boolcheck 
- Checks to see if the SSL cert is still valid.
- contentValidation Property Map
- The collection of content validation properties
- expectedHttp NumberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert NumberRemaining Lifetime Check 
- 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.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi