alicloud.arms.SyntheticTask
Explore with Pulumi AI
Provides a ARMS Synthetic Task resource. Cloud Synthetic task resources.
For information about ARMS Synthetic Task and how to use it, see What is Synthetic Task.
NOTE: Available since v1.215.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const default = alicloud.resourcemanager.getResourceGroups({});
const defaultSyntheticTask = new alicloud.arms.SyntheticTask("default", {
monitors: [{
cityCode: "1200101",
operatorCode: "246",
clientType: 4,
}],
syntheticTaskName: name,
customPeriod: {
endHour: 12,
startHour: 11,
},
availableAssertions: [
{
type: "IcmpPackLoss",
operator: "neq",
expect: "200",
target: "example",
},
{
type: "IcmpPackAvgLatency",
operator: "lte",
expect: "1000",
},
{
type: "IcmpPackMaxLatency",
operator: "lte",
expect: "10000",
},
],
tags: {
Created: "TF",
For: "example",
},
status: "RUNNING",
monitorConf: {
netTcp: {
tracertTimeout: 1050,
targetUrl: "www.aliyun.com",
connectTimes: 6,
interval: 300,
timeout: 3000,
tracertNumMax: 2,
},
netDns: {
queryMethod: 1,
timeout: 5050,
targetUrl: "www.aliyun.com",
dnsServerIpType: 1,
nsServer: "61.128.114.167",
},
apiHttp: {
timeout: 10050,
targetUrl: "https://www.aliyun.com",
method: "POST",
requestHeaders: {
key1: "value1",
},
requestBody: {
content: "example2",
type: "text/html",
},
connectTimeout: 6000,
},
website: {
slowElementThreshold: 5005,
verifyStringBlacklist: "Failed",
elementBlacklist: "a.jpg",
disableCompression: 1,
ignoreCertificateError: 0,
monitorTimeout: 20000,
redirection: 0,
dnsHijackWhitelist: "www.aliyun.com:203.0.3.55",
pageTamper: "www.aliyun.com:|/cc/bb/a.gif",
flowHijackJumpTimes: 10,
customHeader: 1,
disableCache: 1,
verifyStringWhitelist: "Senyuan",
targetUrl: "http://www.aliyun.com",
automaticScrolling: 1,
waitCompletionTime: 5005,
flowHijackLogo: "senyuan1",
customHeaderContent: {
key1: "value1",
},
filterInvalidIp: 0,
},
fileDownload: {
whiteList: "www.aliyun.com:203.0.3.55",
monitorTimeout: 1050,
ignoreCertificateUntrustworthyError: 0,
redirection: 0,
ignoreCertificateCanceledError: 0,
ignoreCertificateAuthError: 0,
ignoreCertificateOutOfDateError: 0,
ignoreCertificateUsingError: 0,
connectionTimeout: 6090,
ignoreInvalidHostError: 0,
verifyWay: 0,
customHeaderContent: {
key1: "value1",
},
targetUrl: "https://www.aliyun.com",
downloadKernel: 0,
quickProtocol: 2,
ignoreCertificateStatusError: 1,
transmissionSize: 128,
validateKeywords: "senyuan1",
},
stream: {
streamMonitorTimeout: 10,
streamAddressType: 0,
playerType: 2,
customHeaderContent: {
key1: "value1",
},
whiteList: "www.aliyun.com:203.0.3.55",
targetUrl: "https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
streamType: 1,
},
netIcmp: {
targetUrl: "www.aliyun.com",
interval: 200,
packageNum: 36,
packageSize: 512,
timeout: 1000,
tracertEnable: true,
tracertNumMax: 1,
tracertTimeout: 1200,
},
},
taskType: 1,
frequency: "1h",
monitorCategory: 1,
commonSetting: {
xtraceRegion: "cn-beijing",
customHost: {
hosts: [
{
domain: "www.a.aliyun.com",
ips: ["153.3.238.102"],
ipType: 0,
},
{
domain: "www.shifen.com",
ips: [
"153.3.238.110",
"114.114.114.114",
"127.0.0.1",
],
ipType: 1,
},
{
domain: "www.aliyun.com",
ips: [
"153.3.238.110",
"180.101.50.242",
"180.101.50.188",
],
ipType: 0,
},
],
selectType: 1,
},
monitorSamples: 1,
ipType: 1,
isOpenTrace: true,
traceClientType: 1,
},
resourceGroupId: _default.then(_default => _default.ids?.[0]),
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
default_synthetic_task = alicloud.arms.SyntheticTask("default",
monitors=[alicloud.arms.SyntheticTaskMonitorArgs(
city_code="1200101",
operator_code="246",
client_type=4,
)],
synthetic_task_name=name,
custom_period=alicloud.arms.SyntheticTaskCustomPeriodArgs(
end_hour=12,
start_hour=11,
),
available_assertions=[
alicloud.arms.SyntheticTaskAvailableAssertionArgs(
type="IcmpPackLoss",
operator="neq",
expect="200",
target="example",
),
alicloud.arms.SyntheticTaskAvailableAssertionArgs(
type="IcmpPackAvgLatency",
operator="lte",
expect="1000",
),
alicloud.arms.SyntheticTaskAvailableAssertionArgs(
type="IcmpPackMaxLatency",
operator="lte",
expect="10000",
),
],
tags={
"Created": "TF",
"For": "example",
},
status="RUNNING",
monitor_conf=alicloud.arms.SyntheticTaskMonitorConfArgs(
net_tcp=alicloud.arms.SyntheticTaskMonitorConfNetTcpArgs(
tracert_timeout=1050,
target_url="www.aliyun.com",
connect_times=6,
interval=300,
timeout=3000,
tracert_num_max=2,
),
net_dns=alicloud.arms.SyntheticTaskMonitorConfNetDnsArgs(
query_method=1,
timeout=5050,
target_url="www.aliyun.com",
dns_server_ip_type=1,
ns_server="61.128.114.167",
),
api_http=alicloud.arms.SyntheticTaskMonitorConfApiHttpArgs(
timeout=10050,
target_url="https://www.aliyun.com",
method="POST",
request_headers={
"key1": "value1",
},
request_body=alicloud.arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs(
content="example2",
type="text/html",
),
connect_timeout=6000,
),
website=alicloud.arms.SyntheticTaskMonitorConfWebsiteArgs(
slow_element_threshold=5005,
verify_string_blacklist="Failed",
element_blacklist="a.jpg",
disable_compression=1,
ignore_certificate_error=0,
monitor_timeout=20000,
redirection=0,
dns_hijack_whitelist="www.aliyun.com:203.0.3.55",
page_tamper="www.aliyun.com:|/cc/bb/a.gif",
flow_hijack_jump_times=10,
custom_header=1,
disable_cache=1,
verify_string_whitelist="Senyuan",
target_url="http://www.aliyun.com",
automatic_scrolling=1,
wait_completion_time=5005,
flow_hijack_logo="senyuan1",
custom_header_content={
"key1": "value1",
},
filter_invalid_ip=0,
),
file_download=alicloud.arms.SyntheticTaskMonitorConfFileDownloadArgs(
white_list="www.aliyun.com:203.0.3.55",
monitor_timeout=1050,
ignore_certificate_untrustworthy_error=0,
redirection=0,
ignore_certificate_canceled_error=0,
ignore_certificate_auth_error=0,
ignore_certificate_out_of_date_error=0,
ignore_certificate_using_error=0,
connection_timeout=6090,
ignore_invalid_host_error=0,
verify_way=0,
custom_header_content={
"key1": "value1",
},
target_url="https://www.aliyun.com",
download_kernel=0,
quick_protocol=2,
ignore_certificate_status_error=1,
transmission_size=128,
validate_keywords="senyuan1",
),
stream=alicloud.arms.SyntheticTaskMonitorConfStreamArgs(
stream_monitor_timeout=10,
stream_address_type=0,
player_type=2,
custom_header_content={
"key1": "value1",
},
white_list="www.aliyun.com:203.0.3.55",
target_url="https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
stream_type=1,
),
net_icmp=alicloud.arms.SyntheticTaskMonitorConfNetIcmpArgs(
target_url="www.aliyun.com",
interval=200,
package_num=36,
package_size=512,
timeout=1000,
tracert_enable=True,
tracert_num_max=1,
tracert_timeout=1200,
),
),
task_type=1,
frequency="1h",
monitor_category=1,
common_setting=alicloud.arms.SyntheticTaskCommonSettingArgs(
xtrace_region="cn-beijing",
custom_host=alicloud.arms.SyntheticTaskCommonSettingCustomHostArgs(
hosts=[
alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
domain="www.a.aliyun.com",
ips=["153.3.238.102"],
ip_type=0,
),
alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
domain="www.shifen.com",
ips=[
"153.3.238.110",
"114.114.114.114",
"127.0.0.1",
],
ip_type=1,
),
alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
domain="www.aliyun.com",
ips=[
"153.3.238.110",
"180.101.50.242",
"180.101.50.188",
],
ip_type=0,
),
],
select_type=1,
),
monitor_samples=1,
ip_type=1,
is_open_trace=True,
trace_client_type=1,
),
resource_group_id=default.ids[0])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
if err != nil {
return err
}
_, err = arms.NewSyntheticTask(ctx, "default", &arms.SyntheticTaskArgs{
Monitors: arms.SyntheticTaskMonitorArray{
&arms.SyntheticTaskMonitorArgs{
CityCode: pulumi.String("1200101"),
OperatorCode: pulumi.String("246"),
ClientType: pulumi.Int(4),
},
},
SyntheticTaskName: pulumi.String(name),
CustomPeriod: &arms.SyntheticTaskCustomPeriodArgs{
EndHour: pulumi.Int(12),
StartHour: pulumi.Int(11),
},
AvailableAssertions: arms.SyntheticTaskAvailableAssertionArray{
&arms.SyntheticTaskAvailableAssertionArgs{
Type: pulumi.String("IcmpPackLoss"),
Operator: pulumi.String("neq"),
Expect: pulumi.String("200"),
Target: pulumi.String("example"),
},
&arms.SyntheticTaskAvailableAssertionArgs{
Type: pulumi.String("IcmpPackAvgLatency"),
Operator: pulumi.String("lte"),
Expect: pulumi.String("1000"),
},
&arms.SyntheticTaskAvailableAssertionArgs{
Type: pulumi.String("IcmpPackMaxLatency"),
Operator: pulumi.String("lte"),
Expect: pulumi.String("10000"),
},
},
Tags: pulumi.Map{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("example"),
},
Status: pulumi.String("RUNNING"),
MonitorConf: &arms.SyntheticTaskMonitorConfArgs{
NetTcp: &arms.SyntheticTaskMonitorConfNetTcpArgs{
TracertTimeout: pulumi.Int(1050),
TargetUrl: pulumi.String("www.aliyun.com"),
ConnectTimes: pulumi.Int(6),
Interval: pulumi.Int(300),
Timeout: pulumi.Int(3000),
TracertNumMax: pulumi.Int(2),
},
NetDns: &arms.SyntheticTaskMonitorConfNetDnsArgs{
QueryMethod: pulumi.Int(1),
Timeout: pulumi.Int(5050),
TargetUrl: pulumi.String("www.aliyun.com"),
DnsServerIpType: pulumi.Int(1),
NsServer: pulumi.String("61.128.114.167"),
},
ApiHttp: &arms.SyntheticTaskMonitorConfApiHttpArgs{
Timeout: pulumi.Int(10050),
TargetUrl: pulumi.String("https://www.aliyun.com"),
Method: pulumi.String("POST"),
RequestHeaders: pulumi.Map{
"key1": pulumi.Any("value1"),
},
RequestBody: &arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs{
Content: pulumi.String("example2"),
Type: pulumi.String("text/html"),
},
ConnectTimeout: pulumi.Int(6000),
},
Website: &arms.SyntheticTaskMonitorConfWebsiteArgs{
SlowElementThreshold: pulumi.Int(5005),
VerifyStringBlacklist: pulumi.String("Failed"),
ElementBlacklist: pulumi.String("a.jpg"),
DisableCompression: pulumi.Int(1),
IgnoreCertificateError: pulumi.Int(0),
MonitorTimeout: pulumi.Int(20000),
Redirection: pulumi.Int(0),
DnsHijackWhitelist: pulumi.String("www.aliyun.com:203.0.3.55"),
PageTamper: pulumi.String("www.aliyun.com:|/cc/bb/a.gif"),
FlowHijackJumpTimes: pulumi.Int(10),
CustomHeader: pulumi.Int(1),
DisableCache: pulumi.Int(1),
VerifyStringWhitelist: pulumi.String("Senyuan"),
TargetUrl: pulumi.String("http://www.aliyun.com"),
AutomaticScrolling: pulumi.Int(1),
WaitCompletionTime: pulumi.Int(5005),
FlowHijackLogo: pulumi.String("senyuan1"),
CustomHeaderContent: pulumi.Map{
"key1": pulumi.Any("value1"),
},
FilterInvalidIp: pulumi.Int(0),
},
FileDownload: &arms.SyntheticTaskMonitorConfFileDownloadArgs{
WhiteList: pulumi.String("www.aliyun.com:203.0.3.55"),
MonitorTimeout: pulumi.Int(1050),
IgnoreCertificateUntrustworthyError: pulumi.Int(0),
Redirection: pulumi.Int(0),
IgnoreCertificateCanceledError: pulumi.Int(0),
IgnoreCertificateAuthError: pulumi.Int(0),
IgnoreCertificateOutOfDateError: pulumi.Int(0),
IgnoreCertificateUsingError: pulumi.Int(0),
ConnectionTimeout: pulumi.Int(6090),
IgnoreInvalidHostError: pulumi.Int(0),
VerifyWay: pulumi.Int(0),
CustomHeaderContent: pulumi.Map{
"key1": pulumi.Any("value1"),
},
TargetUrl: pulumi.String("https://www.aliyun.com"),
DownloadKernel: pulumi.Int(0),
QuickProtocol: pulumi.Int(2),
IgnoreCertificateStatusError: pulumi.Int(1),
TransmissionSize: pulumi.Int(128),
ValidateKeywords: pulumi.String("senyuan1"),
},
Stream: &arms.SyntheticTaskMonitorConfStreamArgs{
StreamMonitorTimeout: pulumi.Int(10),
StreamAddressType: pulumi.Int(0),
PlayerType: pulumi.Int(2),
CustomHeaderContent: pulumi.Map{
"key1": pulumi.Any("value1"),
},
WhiteList: pulumi.String("www.aliyun.com:203.0.3.55"),
TargetUrl: pulumi.String("https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4"),
StreamType: pulumi.Int(1),
},
NetIcmp: &arms.SyntheticTaskMonitorConfNetIcmpArgs{
TargetUrl: pulumi.String("www.aliyun.com"),
Interval: pulumi.Int(200),
PackageNum: pulumi.Int(36),
PackageSize: pulumi.Int(512),
Timeout: pulumi.Int(1000),
TracertEnable: pulumi.Bool(true),
TracertNumMax: pulumi.Int(1),
TracertTimeout: pulumi.Int(1200),
},
},
TaskType: pulumi.Int(1),
Frequency: pulumi.String("1h"),
MonitorCategory: pulumi.Int(1),
CommonSetting: &arms.SyntheticTaskCommonSettingArgs{
XtraceRegion: pulumi.String("cn-beijing"),
CustomHost: &arms.SyntheticTaskCommonSettingCustomHostArgs{
Hosts: arms.SyntheticTaskCommonSettingCustomHostHostArray{
&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
Domain: pulumi.String("www.a.aliyun.com"),
Ips: pulumi.StringArray{
pulumi.String("153.3.238.102"),
},
IpType: pulumi.Int(0),
},
&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
Domain: pulumi.String("www.shifen.com"),
Ips: pulumi.StringArray{
pulumi.String("153.3.238.110"),
pulumi.String("114.114.114.114"),
pulumi.String("127.0.0.1"),
},
IpType: pulumi.Int(1),
},
&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
Domain: pulumi.String("www.aliyun.com"),
Ips: pulumi.StringArray{
pulumi.String("153.3.238.110"),
pulumi.String("180.101.50.242"),
pulumi.String("180.101.50.188"),
},
IpType: pulumi.Int(0),
},
},
SelectType: pulumi.Int(1),
},
MonitorSamples: pulumi.Int(1),
IpType: pulumi.Int(1),
IsOpenTrace: pulumi.Bool(true),
TraceClientType: pulumi.Int(1),
},
ResourceGroupId: pulumi.String(_default.Ids[0]),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultSyntheticTask = new AliCloud.Arms.SyntheticTask("default", new()
{
Monitors = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskMonitorArgs
{
CityCode = "1200101",
OperatorCode = "246",
ClientType = 4,
},
},
SyntheticTaskName = name,
CustomPeriod = new AliCloud.Arms.Inputs.SyntheticTaskCustomPeriodArgs
{
EndHour = 12,
StartHour = 11,
},
AvailableAssertions = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
{
Type = "IcmpPackLoss",
Operator = "neq",
Expect = "200",
Target = "example",
},
new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
{
Type = "IcmpPackAvgLatency",
Operator = "lte",
Expect = "1000",
},
new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
{
Type = "IcmpPackMaxLatency",
Operator = "lte",
Expect = "10000",
},
},
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
Status = "RUNNING",
MonitorConf = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfArgs
{
NetTcp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetTcpArgs
{
TracertTimeout = 1050,
TargetUrl = "www.aliyun.com",
ConnectTimes = 6,
Interval = 300,
Timeout = 3000,
TracertNumMax = 2,
},
NetDns = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetDnsArgs
{
QueryMethod = 1,
Timeout = 5050,
TargetUrl = "www.aliyun.com",
DnsServerIpType = 1,
NsServer = "61.128.114.167",
},
ApiHttp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpArgs
{
Timeout = 10050,
TargetUrl = "https://www.aliyun.com",
Method = "POST",
RequestHeaders =
{
{ "key1", "value1" },
},
RequestBody = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs
{
Content = "example2",
Type = "text/html",
},
ConnectTimeout = 6000,
},
Website = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfWebsiteArgs
{
SlowElementThreshold = 5005,
VerifyStringBlacklist = "Failed",
ElementBlacklist = "a.jpg",
DisableCompression = 1,
IgnoreCertificateError = 0,
MonitorTimeout = 20000,
Redirection = 0,
DnsHijackWhitelist = "www.aliyun.com:203.0.3.55",
PageTamper = "www.aliyun.com:|/cc/bb/a.gif",
FlowHijackJumpTimes = 10,
CustomHeader = 1,
DisableCache = 1,
VerifyStringWhitelist = "Senyuan",
TargetUrl = "http://www.aliyun.com",
AutomaticScrolling = 1,
WaitCompletionTime = 5005,
FlowHijackLogo = "senyuan1",
CustomHeaderContent =
{
{ "key1", "value1" },
},
FilterInvalidIp = 0,
},
FileDownload = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfFileDownloadArgs
{
WhiteList = "www.aliyun.com:203.0.3.55",
MonitorTimeout = 1050,
IgnoreCertificateUntrustworthyError = 0,
Redirection = 0,
IgnoreCertificateCanceledError = 0,
IgnoreCertificateAuthError = 0,
IgnoreCertificateOutOfDateError = 0,
IgnoreCertificateUsingError = 0,
ConnectionTimeout = 6090,
IgnoreInvalidHostError = 0,
VerifyWay = 0,
CustomHeaderContent =
{
{ "key1", "value1" },
},
TargetUrl = "https://www.aliyun.com",
DownloadKernel = 0,
QuickProtocol = 2,
IgnoreCertificateStatusError = 1,
TransmissionSize = 128,
ValidateKeywords = "senyuan1",
},
Stream = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfStreamArgs
{
StreamMonitorTimeout = 10,
StreamAddressType = 0,
PlayerType = 2,
CustomHeaderContent =
{
{ "key1", "value1" },
},
WhiteList = "www.aliyun.com:203.0.3.55",
TargetUrl = "https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4",
StreamType = 1,
},
NetIcmp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetIcmpArgs
{
TargetUrl = "www.aliyun.com",
Interval = 200,
PackageNum = 36,
PackageSize = 512,
Timeout = 1000,
TracertEnable = true,
TracertNumMax = 1,
TracertTimeout = 1200,
},
},
TaskType = 1,
Frequency = "1h",
MonitorCategory = 1,
CommonSetting = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingArgs
{
XtraceRegion = "cn-beijing",
CustomHost = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostArgs
{
Hosts = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
{
Domain = "www.a.aliyun.com",
Ips = new[]
{
"153.3.238.102",
},
IpType = 0,
},
new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
{
Domain = "www.shifen.com",
Ips = new[]
{
"153.3.238.110",
"114.114.114.114",
"127.0.0.1",
},
IpType = 1,
},
new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
{
Domain = "www.aliyun.com",
Ips = new[]
{
"153.3.238.110",
"180.101.50.242",
"180.101.50.188",
},
IpType = 0,
},
},
SelectType = 1,
},
MonitorSamples = 1,
IpType = 1,
IsOpenTrace = true,
TraceClientType = 1,
},
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.arms.SyntheticTask;
import com.pulumi.alicloud.arms.SyntheticTaskArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskCustomPeriodArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskAvailableAssertionArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetTcpArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetDnsArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfApiHttpArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfWebsiteArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfFileDownloadArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfStreamArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfNetIcmpArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskCommonSettingArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskCommonSettingCustomHostArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = ResourcemanagerFunctions.getResourceGroups();
var defaultSyntheticTask = new SyntheticTask("defaultSyntheticTask", SyntheticTaskArgs.builder()
.monitors(SyntheticTaskMonitorArgs.builder()
.cityCode("1200101")
.operatorCode("246")
.clientType("4")
.build())
.syntheticTaskName(name)
.customPeriod(SyntheticTaskCustomPeriodArgs.builder()
.endHour("12")
.startHour("11")
.build())
.availableAssertions(
SyntheticTaskAvailableAssertionArgs.builder()
.type("IcmpPackLoss")
.operator("neq")
.expect("200")
.target("example")
.build(),
SyntheticTaskAvailableAssertionArgs.builder()
.type("IcmpPackAvgLatency")
.operator("lte")
.expect("1000")
.build(),
SyntheticTaskAvailableAssertionArgs.builder()
.type("IcmpPackMaxLatency")
.operator("lte")
.expect("10000")
.build())
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.status("RUNNING")
.monitorConf(SyntheticTaskMonitorConfArgs.builder()
.netTcp(SyntheticTaskMonitorConfNetTcpArgs.builder()
.tracertTimeout("1050")
.targetUrl("www.aliyun.com")
.connectTimes("6")
.interval("300")
.timeout("3000")
.tracertNumMax("2")
.build())
.netDns(SyntheticTaskMonitorConfNetDnsArgs.builder()
.queryMethod("1")
.timeout("5050")
.targetUrl("www.aliyun.com")
.dnsServerIpType("1")
.nsServer("61.128.114.167")
.build())
.apiHttp(SyntheticTaskMonitorConfApiHttpArgs.builder()
.timeout("10050")
.targetUrl("https://www.aliyun.com")
.method("POST")
.requestHeaders(Map.of("key1", "value1"))
.requestBody(SyntheticTaskMonitorConfApiHttpRequestBodyArgs.builder()
.content("example2")
.type("text/html")
.build())
.connectTimeout("6000")
.build())
.website(SyntheticTaskMonitorConfWebsiteArgs.builder()
.slowElementThreshold("5005")
.verifyStringBlacklist("Failed")
.elementBlacklist("a.jpg")
.disableCompression("1")
.ignoreCertificateError("0")
.monitorTimeout("20000")
.redirection("0")
.dnsHijackWhitelist("www.aliyun.com:203.0.3.55")
.pageTamper("www.aliyun.com:|/cc/bb/a.gif")
.flowHijackJumpTimes("10")
.customHeader("1")
.disableCache("1")
.verifyStringWhitelist("Senyuan")
.targetUrl("http://www.aliyun.com")
.automaticScrolling("1")
.waitCompletionTime("5005")
.flowHijackLogo("senyuan1")
.customHeaderContent(Map.of("key1", "value1"))
.filterInvalidIp("0")
.build())
.fileDownload(SyntheticTaskMonitorConfFileDownloadArgs.builder()
.whiteList("www.aliyun.com:203.0.3.55")
.monitorTimeout("1050")
.ignoreCertificateUntrustworthyError("0")
.redirection("0")
.ignoreCertificateCanceledError("0")
.ignoreCertificateAuthError("0")
.ignoreCertificateOutOfDateError("0")
.ignoreCertificateUsingError("0")
.connectionTimeout("6090")
.ignoreInvalidHostError("0")
.verifyWay("0")
.customHeaderContent(Map.of("key1", "value1"))
.targetUrl("https://www.aliyun.com")
.downloadKernel("0")
.quickProtocol("2")
.ignoreCertificateStatusError("1")
.transmissionSize("128")
.validateKeywords("senyuan1")
.build())
.stream(SyntheticTaskMonitorConfStreamArgs.builder()
.streamMonitorTimeout("10")
.streamAddressType("0")
.playerType("2")
.customHeaderContent(Map.of("key1", "value1"))
.whiteList("www.aliyun.com:203.0.3.55")
.targetUrl("https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4")
.streamType("1")
.build())
.netIcmp(SyntheticTaskMonitorConfNetIcmpArgs.builder()
.targetUrl("www.aliyun.com")
.interval("200")
.packageNum("36")
.packageSize("512")
.timeout("1000")
.tracertEnable("true")
.tracertNumMax("1")
.tracertTimeout("1200")
.build())
.build())
.taskType("1")
.frequency("1h")
.monitorCategory("1")
.commonSetting(SyntheticTaskCommonSettingArgs.builder()
.xtraceRegion("cn-beijing")
.customHost(SyntheticTaskCommonSettingCustomHostArgs.builder()
.hosts(
SyntheticTaskCommonSettingCustomHostHostArgs.builder()
.domain("www.a.aliyun.com")
.ips("153.3.238.102")
.ipType("0")
.build(),
SyntheticTaskCommonSettingCustomHostHostArgs.builder()
.domain("www.shifen.com")
.ips(
"153.3.238.110",
"114.114.114.114",
"127.0.0.1")
.ipType("1")
.build(),
SyntheticTaskCommonSettingCustomHostHostArgs.builder()
.domain("www.aliyun.com")
.ips(
"153.3.238.110",
"180.101.50.242",
"180.101.50.188")
.ipType("0")
.build())
.selectType("1")
.build())
.monitorSamples("1")
.ipType("1")
.isOpenTrace("true")
.traceClientType("1")
.build())
.resourceGroupId(default_.ids()[0])
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultSyntheticTask:
type: alicloud:arms:SyntheticTask
name: default
properties:
monitors:
- cityCode: '1200101'
operatorCode: '246'
clientType: '4'
syntheticTaskName: ${name}
customPeriod:
endHour: '12'
startHour: '11'
availableAssertions:
- type: IcmpPackLoss
operator: neq
expect: '200'
target: example
- type: IcmpPackAvgLatency
operator: lte
expect: '1000'
- type: IcmpPackMaxLatency
operator: lte
expect: '10000'
tags:
Created: TF
For: example
status: RUNNING
monitorConf:
netTcp:
tracertTimeout: '1050'
targetUrl: www.aliyun.com
connectTimes: '6'
interval: '300'
timeout: '3000'
tracertNumMax: '2'
netDns:
queryMethod: '1'
timeout: '5050'
targetUrl: www.aliyun.com
dnsServerIpType: '1'
nsServer: 61.128.114.167
apiHttp:
timeout: '10050'
targetUrl: https://www.aliyun.com
method: POST
requestHeaders:
key1: value1
requestBody:
content: example2
type: text/html
connectTimeout: '6000'
website:
slowElementThreshold: '5005'
verifyStringBlacklist: Failed
elementBlacklist: a.jpg
disableCompression: '1'
ignoreCertificateError: '0'
monitorTimeout: '20000'
redirection: '0'
dnsHijackWhitelist: www.aliyun.com:203.0.3.55
pageTamper: www.aliyun.com:|/cc/bb/a.gif
flowHijackJumpTimes: '10'
customHeader: '1'
disableCache: '1'
verifyStringWhitelist: Senyuan
targetUrl: http://www.aliyun.com
automaticScrolling: '1'
waitCompletionTime: '5005'
flowHijackLogo: senyuan1
customHeaderContent:
key1: value1
filterInvalidIp: '0'
fileDownload:
whiteList: www.aliyun.com:203.0.3.55
monitorTimeout: '1050'
ignoreCertificateUntrustworthyError: '0'
redirection: '0'
ignoreCertificateCanceledError: '0'
ignoreCertificateAuthError: '0'
ignoreCertificateOutOfDateError: '0'
ignoreCertificateUsingError: '0'
connectionTimeout: '6090'
ignoreInvalidHostError: '0'
verifyWay: '0'
customHeaderContent:
key1: value1
targetUrl: https://www.aliyun.com
downloadKernel: '0'
quickProtocol: '2'
ignoreCertificateStatusError: '1'
transmissionSize: '128'
validateKeywords: senyuan1
stream:
streamMonitorTimeout: '10'
streamAddressType: '0'
playerType: '2'
customHeaderContent:
key1: value1
whiteList: www.aliyun.com:203.0.3.55
targetUrl: https://acd-assets.alicdn.com:443/2021productweek/week1_s.mp4
streamType: '1'
netIcmp:
targetUrl: www.aliyun.com
interval: '200'
packageNum: '36'
packageSize: '512'
timeout: '1000'
tracertEnable: 'true'
tracertNumMax: '1'
tracertTimeout: '1200'
taskType: '1'
frequency: 1h
monitorCategory: '1'
commonSetting:
xtraceRegion: cn-beijing
customHost:
hosts:
- domain: www.a.aliyun.com
ips:
- 153.3.238.102
ipType: '0'
- domain: www.shifen.com
ips:
- 153.3.238.110
- 114.114.114.114
- 127.0.0.1
ipType: '1'
- domain: www.aliyun.com
ips:
- 153.3.238.110
- 180.101.50.242
- 180.101.50.188
ipType: '0'
selectType: '1'
monitorSamples: '1'
ipType: '1'
isOpenTrace: 'true'
traceClientType: '1'
resourceGroupId: ${default.ids[0]}
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
Create SyntheticTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SyntheticTask(name: string, args: SyntheticTaskArgs, opts?: CustomResourceOptions);
@overload
def SyntheticTask(resource_name: str,
args: SyntheticTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SyntheticTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
frequency: Optional[str] = None,
monitor_category: Optional[int] = None,
monitor_conf: Optional[SyntheticTaskMonitorConfArgs] = None,
monitors: Optional[Sequence[SyntheticTaskMonitorArgs]] = None,
synthetic_task_name: Optional[str] = None,
task_type: Optional[int] = None,
available_assertions: Optional[Sequence[SyntheticTaskAvailableAssertionArgs]] = None,
common_setting: Optional[SyntheticTaskCommonSettingArgs] = None,
custom_period: Optional[SyntheticTaskCustomPeriodArgs] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None)
func NewSyntheticTask(ctx *Context, name string, args SyntheticTaskArgs, opts ...ResourceOption) (*SyntheticTask, error)
public SyntheticTask(string name, SyntheticTaskArgs args, CustomResourceOptions? opts = null)
public SyntheticTask(String name, SyntheticTaskArgs args)
public SyntheticTask(String name, SyntheticTaskArgs args, CustomResourceOptions options)
type: alicloud:arms:SyntheticTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SyntheticTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SyntheticTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SyntheticTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SyntheticTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SyntheticTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var syntheticTaskResource = new AliCloud.Arms.SyntheticTask("syntheticTaskResource", new()
{
Frequency = "string",
MonitorCategory = 0,
MonitorConf = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfArgs
{
ApiHttp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpArgs
{
TargetUrl = "string",
ConnectTimeout = 0,
Method = "string",
RequestBody = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfApiHttpRequestBodyArgs
{
Content = "string",
Type = "string",
},
RequestHeaders =
{
{ "string", "any" },
},
Timeout = 0,
},
FileDownload = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfFileDownloadArgs
{
TargetUrl = "string",
IgnoreCertificateUsingError = 0,
IgnoreCertificateOutOfDateError = 0,
IgnoreInvalidHostError = 0,
IgnoreCertificateCanceledError = 0,
MonitorTimeout = 0,
IgnoreCertificateStatusError = 0,
IgnoreCertificateUntrustworthyError = 0,
QuickProtocol = 0,
IgnoreCertificateAuthError = 0,
DownloadKernel = 0,
ConnectionTimeout = 0,
Redirection = 0,
CustomHeaderContent =
{
{ "string", "any" },
},
TransmissionSize = 0,
ValidateKeywords = "string",
VerifyWay = 0,
WhiteList = "string",
},
NetDns = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetDnsArgs
{
TargetUrl = "string",
DnsServerIpType = 0,
NsServer = "string",
QueryMethod = 0,
Timeout = 0,
},
NetIcmp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetIcmpArgs
{
TargetUrl = "string",
Interval = 0,
PackageNum = 0,
PackageSize = 0,
SplitPackage = false,
Timeout = 0,
TracertEnable = false,
TracertNumMax = 0,
TracertTimeout = 0,
},
NetTcp = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfNetTcpArgs
{
TargetUrl = "string",
ConnectTimes = 0,
Interval = 0,
Timeout = 0,
TracertEnable = false,
TracertNumMax = 0,
TracertTimeout = 0,
},
Stream = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfStreamArgs
{
CustomHeaderContent =
{
{ "string", "any" },
},
PlayerType = 0,
StreamAddressType = 0,
StreamMonitorTimeout = 0,
StreamType = 0,
TargetUrl = "string",
WhiteList = "string",
},
Website = new AliCloud.Arms.Inputs.SyntheticTaskMonitorConfWebsiteArgs
{
TargetUrl = "string",
FlowHijackJumpTimes = 0,
DisableCache = 0,
IgnoreCertificateError = 0,
MonitorTimeout = 0,
DnsHijackWhitelist = "string",
ElementBlacklist = "string",
FilterInvalidIp = 0,
AutomaticScrolling = 0,
WaitCompletionTime = 0,
CustomHeaderContent =
{
{ "string", "any" },
},
DisableCompression = 0,
PageTamper = "string",
Redirection = 0,
SlowElementThreshold = 0,
CustomHeader = 0,
VerifyStringBlacklist = "string",
VerifyStringWhitelist = "string",
FlowHijackLogo = "string",
},
},
Monitors = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskMonitorArgs
{
CityCode = "string",
ClientType = 0,
OperatorCode = "string",
},
},
SyntheticTaskName = "string",
TaskType = 0,
AvailableAssertions = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskAvailableAssertionArgs
{
Expect = "string",
Operator = "string",
Type = "string",
Target = "string",
},
},
CommonSetting = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingArgs
{
CustomHost = new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostArgs
{
Hosts = new[]
{
new AliCloud.Arms.Inputs.SyntheticTaskCommonSettingCustomHostHostArgs
{
Domain = "string",
IpType = 0,
Ips = new[]
{
"string",
},
},
},
SelectType = 0,
},
IpType = 0,
IsOpenTrace = false,
MonitorSamples = 0,
TraceClientType = 0,
XtraceRegion = "string",
},
CustomPeriod = new AliCloud.Arms.Inputs.SyntheticTaskCustomPeriodArgs
{
EndHour = 0,
StartHour = 0,
},
ResourceGroupId = "string",
Status = "string",
Tags =
{
{ "string", "any" },
},
});
example, err := arms.NewSyntheticTask(ctx, "syntheticTaskResource", &arms.SyntheticTaskArgs{
Frequency: pulumi.String("string"),
MonitorCategory: pulumi.Int(0),
MonitorConf: &arms.SyntheticTaskMonitorConfArgs{
ApiHttp: &arms.SyntheticTaskMonitorConfApiHttpArgs{
TargetUrl: pulumi.String("string"),
ConnectTimeout: pulumi.Int(0),
Method: pulumi.String("string"),
RequestBody: &arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs{
Content: pulumi.String("string"),
Type: pulumi.String("string"),
},
RequestHeaders: pulumi.Map{
"string": pulumi.Any("any"),
},
Timeout: pulumi.Int(0),
},
FileDownload: &arms.SyntheticTaskMonitorConfFileDownloadArgs{
TargetUrl: pulumi.String("string"),
IgnoreCertificateUsingError: pulumi.Int(0),
IgnoreCertificateOutOfDateError: pulumi.Int(0),
IgnoreInvalidHostError: pulumi.Int(0),
IgnoreCertificateCanceledError: pulumi.Int(0),
MonitorTimeout: pulumi.Int(0),
IgnoreCertificateStatusError: pulumi.Int(0),
IgnoreCertificateUntrustworthyError: pulumi.Int(0),
QuickProtocol: pulumi.Int(0),
IgnoreCertificateAuthError: pulumi.Int(0),
DownloadKernel: pulumi.Int(0),
ConnectionTimeout: pulumi.Int(0),
Redirection: pulumi.Int(0),
CustomHeaderContent: pulumi.Map{
"string": pulumi.Any("any"),
},
TransmissionSize: pulumi.Int(0),
ValidateKeywords: pulumi.String("string"),
VerifyWay: pulumi.Int(0),
WhiteList: pulumi.String("string"),
},
NetDns: &arms.SyntheticTaskMonitorConfNetDnsArgs{
TargetUrl: pulumi.String("string"),
DnsServerIpType: pulumi.Int(0),
NsServer: pulumi.String("string"),
QueryMethod: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
NetIcmp: &arms.SyntheticTaskMonitorConfNetIcmpArgs{
TargetUrl: pulumi.String("string"),
Interval: pulumi.Int(0),
PackageNum: pulumi.Int(0),
PackageSize: pulumi.Int(0),
SplitPackage: pulumi.Bool(false),
Timeout: pulumi.Int(0),
TracertEnable: pulumi.Bool(false),
TracertNumMax: pulumi.Int(0),
TracertTimeout: pulumi.Int(0),
},
NetTcp: &arms.SyntheticTaskMonitorConfNetTcpArgs{
TargetUrl: pulumi.String("string"),
ConnectTimes: pulumi.Int(0),
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
TracertEnable: pulumi.Bool(false),
TracertNumMax: pulumi.Int(0),
TracertTimeout: pulumi.Int(0),
},
Stream: &arms.SyntheticTaskMonitorConfStreamArgs{
CustomHeaderContent: pulumi.Map{
"string": pulumi.Any("any"),
},
PlayerType: pulumi.Int(0),
StreamAddressType: pulumi.Int(0),
StreamMonitorTimeout: pulumi.Int(0),
StreamType: pulumi.Int(0),
TargetUrl: pulumi.String("string"),
WhiteList: pulumi.String("string"),
},
Website: &arms.SyntheticTaskMonitorConfWebsiteArgs{
TargetUrl: pulumi.String("string"),
FlowHijackJumpTimes: pulumi.Int(0),
DisableCache: pulumi.Int(0),
IgnoreCertificateError: pulumi.Int(0),
MonitorTimeout: pulumi.Int(0),
DnsHijackWhitelist: pulumi.String("string"),
ElementBlacklist: pulumi.String("string"),
FilterInvalidIp: pulumi.Int(0),
AutomaticScrolling: pulumi.Int(0),
WaitCompletionTime: pulumi.Int(0),
CustomHeaderContent: pulumi.Map{
"string": pulumi.Any("any"),
},
DisableCompression: pulumi.Int(0),
PageTamper: pulumi.String("string"),
Redirection: pulumi.Int(0),
SlowElementThreshold: pulumi.Int(0),
CustomHeader: pulumi.Int(0),
VerifyStringBlacklist: pulumi.String("string"),
VerifyStringWhitelist: pulumi.String("string"),
FlowHijackLogo: pulumi.String("string"),
},
},
Monitors: arms.SyntheticTaskMonitorArray{
&arms.SyntheticTaskMonitorArgs{
CityCode: pulumi.String("string"),
ClientType: pulumi.Int(0),
OperatorCode: pulumi.String("string"),
},
},
SyntheticTaskName: pulumi.String("string"),
TaskType: pulumi.Int(0),
AvailableAssertions: arms.SyntheticTaskAvailableAssertionArray{
&arms.SyntheticTaskAvailableAssertionArgs{
Expect: pulumi.String("string"),
Operator: pulumi.String("string"),
Type: pulumi.String("string"),
Target: pulumi.String("string"),
},
},
CommonSetting: &arms.SyntheticTaskCommonSettingArgs{
CustomHost: &arms.SyntheticTaskCommonSettingCustomHostArgs{
Hosts: arms.SyntheticTaskCommonSettingCustomHostHostArray{
&arms.SyntheticTaskCommonSettingCustomHostHostArgs{
Domain: pulumi.String("string"),
IpType: pulumi.Int(0),
Ips: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SelectType: pulumi.Int(0),
},
IpType: pulumi.Int(0),
IsOpenTrace: pulumi.Bool(false),
MonitorSamples: pulumi.Int(0),
TraceClientType: pulumi.Int(0),
XtraceRegion: pulumi.String("string"),
},
CustomPeriod: &arms.SyntheticTaskCustomPeriodArgs{
EndHour: pulumi.Int(0),
StartHour: pulumi.Int(0),
},
ResourceGroupId: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var syntheticTaskResource = new SyntheticTask("syntheticTaskResource", SyntheticTaskArgs.builder()
.frequency("string")
.monitorCategory(0)
.monitorConf(SyntheticTaskMonitorConfArgs.builder()
.apiHttp(SyntheticTaskMonitorConfApiHttpArgs.builder()
.targetUrl("string")
.connectTimeout(0)
.method("string")
.requestBody(SyntheticTaskMonitorConfApiHttpRequestBodyArgs.builder()
.content("string")
.type("string")
.build())
.requestHeaders(Map.of("string", "any"))
.timeout(0)
.build())
.fileDownload(SyntheticTaskMonitorConfFileDownloadArgs.builder()
.targetUrl("string")
.ignoreCertificateUsingError(0)
.ignoreCertificateOutOfDateError(0)
.ignoreInvalidHostError(0)
.ignoreCertificateCanceledError(0)
.monitorTimeout(0)
.ignoreCertificateStatusError(0)
.ignoreCertificateUntrustworthyError(0)
.quickProtocol(0)
.ignoreCertificateAuthError(0)
.downloadKernel(0)
.connectionTimeout(0)
.redirection(0)
.customHeaderContent(Map.of("string", "any"))
.transmissionSize(0)
.validateKeywords("string")
.verifyWay(0)
.whiteList("string")
.build())
.netDns(SyntheticTaskMonitorConfNetDnsArgs.builder()
.targetUrl("string")
.dnsServerIpType(0)
.nsServer("string")
.queryMethod(0)
.timeout(0)
.build())
.netIcmp(SyntheticTaskMonitorConfNetIcmpArgs.builder()
.targetUrl("string")
.interval(0)
.packageNum(0)
.packageSize(0)
.splitPackage(false)
.timeout(0)
.tracertEnable(false)
.tracertNumMax(0)
.tracertTimeout(0)
.build())
.netTcp(SyntheticTaskMonitorConfNetTcpArgs.builder()
.targetUrl("string")
.connectTimes(0)
.interval(0)
.timeout(0)
.tracertEnable(false)
.tracertNumMax(0)
.tracertTimeout(0)
.build())
.stream(SyntheticTaskMonitorConfStreamArgs.builder()
.customHeaderContent(Map.of("string", "any"))
.playerType(0)
.streamAddressType(0)
.streamMonitorTimeout(0)
.streamType(0)
.targetUrl("string")
.whiteList("string")
.build())
.website(SyntheticTaskMonitorConfWebsiteArgs.builder()
.targetUrl("string")
.flowHijackJumpTimes(0)
.disableCache(0)
.ignoreCertificateError(0)
.monitorTimeout(0)
.dnsHijackWhitelist("string")
.elementBlacklist("string")
.filterInvalidIp(0)
.automaticScrolling(0)
.waitCompletionTime(0)
.customHeaderContent(Map.of("string", "any"))
.disableCompression(0)
.pageTamper("string")
.redirection(0)
.slowElementThreshold(0)
.customHeader(0)
.verifyStringBlacklist("string")
.verifyStringWhitelist("string")
.flowHijackLogo("string")
.build())
.build())
.monitors(SyntheticTaskMonitorArgs.builder()
.cityCode("string")
.clientType(0)
.operatorCode("string")
.build())
.syntheticTaskName("string")
.taskType(0)
.availableAssertions(SyntheticTaskAvailableAssertionArgs.builder()
.expect("string")
.operator("string")
.type("string")
.target("string")
.build())
.commonSetting(SyntheticTaskCommonSettingArgs.builder()
.customHost(SyntheticTaskCommonSettingCustomHostArgs.builder()
.hosts(SyntheticTaskCommonSettingCustomHostHostArgs.builder()
.domain("string")
.ipType(0)
.ips("string")
.build())
.selectType(0)
.build())
.ipType(0)
.isOpenTrace(false)
.monitorSamples(0)
.traceClientType(0)
.xtraceRegion("string")
.build())
.customPeriod(SyntheticTaskCustomPeriodArgs.builder()
.endHour(0)
.startHour(0)
.build())
.resourceGroupId("string")
.status("string")
.tags(Map.of("string", "any"))
.build());
synthetic_task_resource = alicloud.arms.SyntheticTask("syntheticTaskResource",
frequency="string",
monitor_category=0,
monitor_conf=alicloud.arms.SyntheticTaskMonitorConfArgs(
api_http=alicloud.arms.SyntheticTaskMonitorConfApiHttpArgs(
target_url="string",
connect_timeout=0,
method="string",
request_body=alicloud.arms.SyntheticTaskMonitorConfApiHttpRequestBodyArgs(
content="string",
type="string",
),
request_headers={
"string": "any",
},
timeout=0,
),
file_download=alicloud.arms.SyntheticTaskMonitorConfFileDownloadArgs(
target_url="string",
ignore_certificate_using_error=0,
ignore_certificate_out_of_date_error=0,
ignore_invalid_host_error=0,
ignore_certificate_canceled_error=0,
monitor_timeout=0,
ignore_certificate_status_error=0,
ignore_certificate_untrustworthy_error=0,
quick_protocol=0,
ignore_certificate_auth_error=0,
download_kernel=0,
connection_timeout=0,
redirection=0,
custom_header_content={
"string": "any",
},
transmission_size=0,
validate_keywords="string",
verify_way=0,
white_list="string",
),
net_dns=alicloud.arms.SyntheticTaskMonitorConfNetDnsArgs(
target_url="string",
dns_server_ip_type=0,
ns_server="string",
query_method=0,
timeout=0,
),
net_icmp=alicloud.arms.SyntheticTaskMonitorConfNetIcmpArgs(
target_url="string",
interval=0,
package_num=0,
package_size=0,
split_package=False,
timeout=0,
tracert_enable=False,
tracert_num_max=0,
tracert_timeout=0,
),
net_tcp=alicloud.arms.SyntheticTaskMonitorConfNetTcpArgs(
target_url="string",
connect_times=0,
interval=0,
timeout=0,
tracert_enable=False,
tracert_num_max=0,
tracert_timeout=0,
),
stream=alicloud.arms.SyntheticTaskMonitorConfStreamArgs(
custom_header_content={
"string": "any",
},
player_type=0,
stream_address_type=0,
stream_monitor_timeout=0,
stream_type=0,
target_url="string",
white_list="string",
),
website=alicloud.arms.SyntheticTaskMonitorConfWebsiteArgs(
target_url="string",
flow_hijack_jump_times=0,
disable_cache=0,
ignore_certificate_error=0,
monitor_timeout=0,
dns_hijack_whitelist="string",
element_blacklist="string",
filter_invalid_ip=0,
automatic_scrolling=0,
wait_completion_time=0,
custom_header_content={
"string": "any",
},
disable_compression=0,
page_tamper="string",
redirection=0,
slow_element_threshold=0,
custom_header=0,
verify_string_blacklist="string",
verify_string_whitelist="string",
flow_hijack_logo="string",
),
),
monitors=[alicloud.arms.SyntheticTaskMonitorArgs(
city_code="string",
client_type=0,
operator_code="string",
)],
synthetic_task_name="string",
task_type=0,
available_assertions=[alicloud.arms.SyntheticTaskAvailableAssertionArgs(
expect="string",
operator="string",
type="string",
target="string",
)],
common_setting=alicloud.arms.SyntheticTaskCommonSettingArgs(
custom_host=alicloud.arms.SyntheticTaskCommonSettingCustomHostArgs(
hosts=[alicloud.arms.SyntheticTaskCommonSettingCustomHostHostArgs(
domain="string",
ip_type=0,
ips=["string"],
)],
select_type=0,
),
ip_type=0,
is_open_trace=False,
monitor_samples=0,
trace_client_type=0,
xtrace_region="string",
),
custom_period=alicloud.arms.SyntheticTaskCustomPeriodArgs(
end_hour=0,
start_hour=0,
),
resource_group_id="string",
status="string",
tags={
"string": "any",
})
const syntheticTaskResource = new alicloud.arms.SyntheticTask("syntheticTaskResource", {
frequency: "string",
monitorCategory: 0,
monitorConf: {
apiHttp: {
targetUrl: "string",
connectTimeout: 0,
method: "string",
requestBody: {
content: "string",
type: "string",
},
requestHeaders: {
string: "any",
},
timeout: 0,
},
fileDownload: {
targetUrl: "string",
ignoreCertificateUsingError: 0,
ignoreCertificateOutOfDateError: 0,
ignoreInvalidHostError: 0,
ignoreCertificateCanceledError: 0,
monitorTimeout: 0,
ignoreCertificateStatusError: 0,
ignoreCertificateUntrustworthyError: 0,
quickProtocol: 0,
ignoreCertificateAuthError: 0,
downloadKernel: 0,
connectionTimeout: 0,
redirection: 0,
customHeaderContent: {
string: "any",
},
transmissionSize: 0,
validateKeywords: "string",
verifyWay: 0,
whiteList: "string",
},
netDns: {
targetUrl: "string",
dnsServerIpType: 0,
nsServer: "string",
queryMethod: 0,
timeout: 0,
},
netIcmp: {
targetUrl: "string",
interval: 0,
packageNum: 0,
packageSize: 0,
splitPackage: false,
timeout: 0,
tracertEnable: false,
tracertNumMax: 0,
tracertTimeout: 0,
},
netTcp: {
targetUrl: "string",
connectTimes: 0,
interval: 0,
timeout: 0,
tracertEnable: false,
tracertNumMax: 0,
tracertTimeout: 0,
},
stream: {
customHeaderContent: {
string: "any",
},
playerType: 0,
streamAddressType: 0,
streamMonitorTimeout: 0,
streamType: 0,
targetUrl: "string",
whiteList: "string",
},
website: {
targetUrl: "string",
flowHijackJumpTimes: 0,
disableCache: 0,
ignoreCertificateError: 0,
monitorTimeout: 0,
dnsHijackWhitelist: "string",
elementBlacklist: "string",
filterInvalidIp: 0,
automaticScrolling: 0,
waitCompletionTime: 0,
customHeaderContent: {
string: "any",
},
disableCompression: 0,
pageTamper: "string",
redirection: 0,
slowElementThreshold: 0,
customHeader: 0,
verifyStringBlacklist: "string",
verifyStringWhitelist: "string",
flowHijackLogo: "string",
},
},
monitors: [{
cityCode: "string",
clientType: 0,
operatorCode: "string",
}],
syntheticTaskName: "string",
taskType: 0,
availableAssertions: [{
expect: "string",
operator: "string",
type: "string",
target: "string",
}],
commonSetting: {
customHost: {
hosts: [{
domain: "string",
ipType: 0,
ips: ["string"],
}],
selectType: 0,
},
ipType: 0,
isOpenTrace: false,
monitorSamples: 0,
traceClientType: 0,
xtraceRegion: "string",
},
customPeriod: {
endHour: 0,
startHour: 0,
},
resourceGroupId: "string",
status: "string",
tags: {
string: "any",
},
});
type: alicloud:arms:SyntheticTask
properties:
availableAssertions:
- expect: string
operator: string
target: string
type: string
commonSetting:
customHost:
hosts:
- domain: string
ipType: 0
ips:
- string
selectType: 0
ipType: 0
isOpenTrace: false
monitorSamples: 0
traceClientType: 0
xtraceRegion: string
customPeriod:
endHour: 0
startHour: 0
frequency: string
monitorCategory: 0
monitorConf:
apiHttp:
connectTimeout: 0
method: string
requestBody:
content: string
type: string
requestHeaders:
string: any
targetUrl: string
timeout: 0
fileDownload:
connectionTimeout: 0
customHeaderContent:
string: any
downloadKernel: 0
ignoreCertificateAuthError: 0
ignoreCertificateCanceledError: 0
ignoreCertificateOutOfDateError: 0
ignoreCertificateStatusError: 0
ignoreCertificateUntrustworthyError: 0
ignoreCertificateUsingError: 0
ignoreInvalidHostError: 0
monitorTimeout: 0
quickProtocol: 0
redirection: 0
targetUrl: string
transmissionSize: 0
validateKeywords: string
verifyWay: 0
whiteList: string
netDns:
dnsServerIpType: 0
nsServer: string
queryMethod: 0
targetUrl: string
timeout: 0
netIcmp:
interval: 0
packageNum: 0
packageSize: 0
splitPackage: false
targetUrl: string
timeout: 0
tracertEnable: false
tracertNumMax: 0
tracertTimeout: 0
netTcp:
connectTimes: 0
interval: 0
targetUrl: string
timeout: 0
tracertEnable: false
tracertNumMax: 0
tracertTimeout: 0
stream:
customHeaderContent:
string: any
playerType: 0
streamAddressType: 0
streamMonitorTimeout: 0
streamType: 0
targetUrl: string
whiteList: string
website:
automaticScrolling: 0
customHeader: 0
customHeaderContent:
string: any
disableCache: 0
disableCompression: 0
dnsHijackWhitelist: string
elementBlacklist: string
filterInvalidIp: 0
flowHijackJumpTimes: 0
flowHijackLogo: string
ignoreCertificateError: 0
monitorTimeout: 0
pageTamper: string
redirection: 0
slowElementThreshold: 0
targetUrl: string
verifyStringBlacklist: string
verifyStringWhitelist: string
waitCompletionTime: 0
monitors:
- cityCode: string
clientType: 0
operatorCode: string
resourceGroupId: string
status: string
syntheticTaskName: string
tags:
string: any
taskType: 0
SyntheticTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SyntheticTask resource accepts the following input properties:
- Frequency string
- Frequency.
- Monitor
Category int - Classification of selected monitors.
- Monitor
Conf Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf - Monitoring configuration. See
monitor_conf
below. - Monitors
List<Pulumi.
Ali Cloud. Arms. Inputs. Synthetic Task Monitor> - List of selected monitors. See
monitors
below. - Synthetic
Task stringName - The name of synthetic task.
- Task
Type int - The type of synthetic task.
- Available
Assertions List<Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Available Assertion> - Assertion List. See
available_assertions
below. - Common
Setting Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Common Setting - Common settings. See
common_setting
below. - Custom
Period Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Custom Period - Custom Cycle. See
custom_period
below. - Resource
Group stringId - Describes which resource group the resource belongs.
- Status string
- task status.
- Dictionary<string, object>
- The list of tags.
- Frequency string
- Frequency.
- Monitor
Category int - Classification of selected monitors.
- Monitor
Conf SyntheticTask Monitor Conf Args - Monitoring configuration. See
monitor_conf
below. - Monitors
[]Synthetic
Task Monitor Args - List of selected monitors. See
monitors
below. - Synthetic
Task stringName - The name of synthetic task.
- Task
Type int - The type of synthetic task.
- Available
Assertions []SyntheticTask Available Assertion Args - Assertion List. See
available_assertions
below. - Common
Setting SyntheticTask Common Setting Args - Common settings. See
common_setting
below. - Custom
Period SyntheticTask Custom Period Args - Custom Cycle. See
custom_period
below. - Resource
Group stringId - Describes which resource group the resource belongs.
- Status string
- task status.
- map[string]interface{}
- The list of tags.
- frequency String
- Frequency.
- monitor
Category Integer - Classification of selected monitors.
- monitor
Conf SyntheticTask Monitor Conf - Monitoring configuration. See
monitor_conf
below. - monitors
List<Synthetic
Task Monitor> - List of selected monitors. See
monitors
below. - synthetic
Task StringName - The name of synthetic task.
- task
Type Integer - The type of synthetic task.
- available
Assertions List<SyntheticTask Available Assertion> - Assertion List. See
available_assertions
below. - common
Setting SyntheticTask Common Setting - Common settings. See
common_setting
below. - custom
Period SyntheticTask Custom Period - Custom Cycle. See
custom_period
below. - resource
Group StringId - Describes which resource group the resource belongs.
- status String
- task status.
- Map<String,Object>
- The list of tags.
- frequency string
- Frequency.
- monitor
Category number - Classification of selected monitors.
- monitor
Conf SyntheticTask Monitor Conf - Monitoring configuration. See
monitor_conf
below. - monitors
Synthetic
Task Monitor[] - List of selected monitors. See
monitors
below. - synthetic
Task stringName - The name of synthetic task.
- task
Type number - The type of synthetic task.
- available
Assertions SyntheticTask Available Assertion[] - Assertion List. See
available_assertions
below. - common
Setting SyntheticTask Common Setting - Common settings. See
common_setting
below. - custom
Period SyntheticTask Custom Period - Custom Cycle. See
custom_period
below. - resource
Group stringId - Describes which resource group the resource belongs.
- status string
- task status.
- {[key: string]: any}
- The list of tags.
- frequency str
- Frequency.
- monitor_
category int - Classification of selected monitors.
- monitor_
conf SyntheticTask Monitor Conf Args - Monitoring configuration. See
monitor_conf
below. - monitors
Sequence[Synthetic
Task Monitor Args] - List of selected monitors. See
monitors
below. - synthetic_
task_ strname - The name of synthetic task.
- task_
type int - The type of synthetic task.
- available_
assertions Sequence[SyntheticTask Available Assertion Args] - Assertion List. See
available_assertions
below. - common_
setting SyntheticTask Common Setting Args - Common settings. See
common_setting
below. - custom_
period SyntheticTask Custom Period Args - Custom Cycle. See
custom_period
below. - resource_
group_ strid - Describes which resource group the resource belongs.
- status str
- task status.
- Mapping[str, Any]
- The list of tags.
- frequency String
- Frequency.
- monitor
Category Number - Classification of selected monitors.
- monitor
Conf Property Map - Monitoring configuration. See
monitor_conf
below. - monitors List<Property Map>
- List of selected monitors. See
monitors
below. - synthetic
Task StringName - The name of synthetic task.
- task
Type Number - The type of synthetic task.
- available
Assertions List<Property Map> - Assertion List. See
available_assertions
below. - common
Setting Property Map - Common settings. See
common_setting
below. - custom
Period Property Map - Custom Cycle. See
custom_period
below. - resource
Group StringId - Describes which resource group the resource belongs.
- status String
- task status.
- Map<Any>
- The list of tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SyntheticTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SyntheticTask Resource
Get an existing SyntheticTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SyntheticTaskState, opts?: CustomResourceOptions): SyntheticTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
available_assertions: Optional[Sequence[SyntheticTaskAvailableAssertionArgs]] = None,
common_setting: Optional[SyntheticTaskCommonSettingArgs] = None,
custom_period: Optional[SyntheticTaskCustomPeriodArgs] = None,
frequency: Optional[str] = None,
monitor_category: Optional[int] = None,
monitor_conf: Optional[SyntheticTaskMonitorConfArgs] = None,
monitors: Optional[Sequence[SyntheticTaskMonitorArgs]] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
synthetic_task_name: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
task_type: Optional[int] = None) -> SyntheticTask
func GetSyntheticTask(ctx *Context, name string, id IDInput, state *SyntheticTaskState, opts ...ResourceOption) (*SyntheticTask, error)
public static SyntheticTask Get(string name, Input<string> id, SyntheticTaskState? state, CustomResourceOptions? opts = null)
public static SyntheticTask get(String name, Output<String> id, SyntheticTaskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Available
Assertions List<Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Available Assertion> - Assertion List. See
available_assertions
below. - Common
Setting Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Common Setting - Common settings. See
common_setting
below. - Custom
Period Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Custom Period - Custom Cycle. See
custom_period
below. - Frequency string
- Frequency.
- Monitor
Category int - Classification of selected monitors.
- Monitor
Conf Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf - Monitoring configuration. See
monitor_conf
below. - Monitors
List<Pulumi.
Ali Cloud. Arms. Inputs. Synthetic Task Monitor> - List of selected monitors. See
monitors
below. - Resource
Group stringId - Describes which resource group the resource belongs.
- Status string
- task status.
- Synthetic
Task stringName - The name of synthetic task.
- Dictionary<string, object>
- The list of tags.
- Task
Type int - The type of synthetic task.
- Available
Assertions []SyntheticTask Available Assertion Args - Assertion List. See
available_assertions
below. - Common
Setting SyntheticTask Common Setting Args - Common settings. See
common_setting
below. - Custom
Period SyntheticTask Custom Period Args - Custom Cycle. See
custom_period
below. - Frequency string
- Frequency.
- Monitor
Category int - Classification of selected monitors.
- Monitor
Conf SyntheticTask Monitor Conf Args - Monitoring configuration. See
monitor_conf
below. - Monitors
[]Synthetic
Task Monitor Args - List of selected monitors. See
monitors
below. - Resource
Group stringId - Describes which resource group the resource belongs.
- Status string
- task status.
- Synthetic
Task stringName - The name of synthetic task.
- map[string]interface{}
- The list of tags.
- Task
Type int - The type of synthetic task.
- available
Assertions List<SyntheticTask Available Assertion> - Assertion List. See
available_assertions
below. - common
Setting SyntheticTask Common Setting - Common settings. See
common_setting
below. - custom
Period SyntheticTask Custom Period - Custom Cycle. See
custom_period
below. - frequency String
- Frequency.
- monitor
Category Integer - Classification of selected monitors.
- monitor
Conf SyntheticTask Monitor Conf - Monitoring configuration. See
monitor_conf
below. - monitors
List<Synthetic
Task Monitor> - List of selected monitors. See
monitors
below. - resource
Group StringId - Describes which resource group the resource belongs.
- status String
- task status.
- synthetic
Task StringName - The name of synthetic task.
- Map<String,Object>
- The list of tags.
- task
Type Integer - The type of synthetic task.
- available
Assertions SyntheticTask Available Assertion[] - Assertion List. See
available_assertions
below. - common
Setting SyntheticTask Common Setting - Common settings. See
common_setting
below. - custom
Period SyntheticTask Custom Period - Custom Cycle. See
custom_period
below. - frequency string
- Frequency.
- monitor
Category number - Classification of selected monitors.
- monitor
Conf SyntheticTask Monitor Conf - Monitoring configuration. See
monitor_conf
below. - monitors
Synthetic
Task Monitor[] - List of selected monitors. See
monitors
below. - resource
Group stringId - Describes which resource group the resource belongs.
- status string
- task status.
- synthetic
Task stringName - The name of synthetic task.
- {[key: string]: any}
- The list of tags.
- task
Type number - The type of synthetic task.
- available_
assertions Sequence[SyntheticTask Available Assertion Args] - Assertion List. See
available_assertions
below. - common_
setting SyntheticTask Common Setting Args - Common settings. See
common_setting
below. - custom_
period SyntheticTask Custom Period Args - Custom Cycle. See
custom_period
below. - frequency str
- Frequency.
- monitor_
category int - Classification of selected monitors.
- monitor_
conf SyntheticTask Monitor Conf Args - Monitoring configuration. See
monitor_conf
below. - monitors
Sequence[Synthetic
Task Monitor Args] - List of selected monitors. See
monitors
below. - resource_
group_ strid - Describes which resource group the resource belongs.
- status str
- task status.
- synthetic_
task_ strname - The name of synthetic task.
- Mapping[str, Any]
- The list of tags.
- task_
type int - The type of synthetic task.
- available
Assertions List<Property Map> - Assertion List. See
available_assertions
below. - common
Setting Property Map - Common settings. See
common_setting
below. - custom
Period Property Map - Custom Cycle. See
custom_period
below. - frequency String
- Frequency.
- monitor
Category Number - Classification of selected monitors.
- monitor
Conf Property Map - Monitoring configuration. See
monitor_conf
below. - monitors List<Property Map>
- List of selected monitors. See
monitors
below. - resource
Group StringId - Describes which resource group the resource belongs.
- status String
- task status.
- synthetic
Task StringName - The name of synthetic task.
- Map<Any>
- The list of tags.
- task
Type Number - The type of synthetic task.
Supporting Types
SyntheticTaskAvailableAssertion, SyntheticTaskAvailableAssertionArgs
- Expect string
- Expected value.
- Operator string
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- Type string
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- Target string
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
- Expect string
- Expected value.
- Operator string
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- Type string
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- Target string
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
- expect String
- Expected value.
- operator String
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- type String
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- target String
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
- expect string
- Expected value.
- operator string
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- type string
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- target string
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
- expect str
- Expected value.
- operator str
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- type str
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- target str
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
- expect String
- Expected value.
- operator String
- Condition: gt: greater than; gte: greater than or equal to; lt: less than; te: less than or equal to; eq: equal to; neq: not equal to; ctn: contains; nctn: does not contain; exist: exists; n_exist: does not exist; belong: belongs to; reg_match: regular matching.
- type String
- Assertion type, including: httpresead, httpresead, HttpResBody, HttpResBodyJson, httpressetime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet delay ms), icmppackwebscreen, fmppackavglatency (average delay rendering), TraceRouteHops (number of hops), dnsarecname, websiteOnload (full load time), see the supplement below for specific use.
- target String
- Check the target. If the target is HttpResCode, HttpResBody, or httpressetime, you do not need to specify the target. If the target is HttpResHead, you need to specify the key in the header. If the target is HttpResHead, you need to use jsonPath.
SyntheticTaskCommonSetting, SyntheticTaskCommonSettingArgs
- Custom
Host Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Common Setting Custom Host - Custom host. See
custom_host
below. - Ip
Type int - IpType.
- Is
Open boolTrace - Whether to enable link tracking.
- Monitor
Samples int - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- Trace
Client intType - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- Xtrace
Region string - The link data is reported to the region.
- Custom
Host SyntheticTask Common Setting Custom Host - Custom host. See
custom_host
below. - Ip
Type int - IpType.
- Is
Open boolTrace - Whether to enable link tracking.
- Monitor
Samples int - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- Trace
Client intType - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- Xtrace
Region string - The link data is reported to the region.
- custom
Host SyntheticTask Common Setting Custom Host - Custom host. See
custom_host
below. - ip
Type Integer - IpType.
- is
Open BooleanTrace - Whether to enable link tracking.
- monitor
Samples Integer - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- trace
Client IntegerType - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- xtrace
Region String - The link data is reported to the region.
- custom
Host SyntheticTask Common Setting Custom Host - Custom host. See
custom_host
below. - ip
Type number - IpType.
- is
Open booleanTrace - Whether to enable link tracking.
- monitor
Samples number - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- trace
Client numberType - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- xtrace
Region string - The link data is reported to the region.
- custom_
host SyntheticTask Common Setting Custom Host - Custom host. See
custom_host
below. - ip_
type int - IpType.
- is_
open_ booltrace - Whether to enable link tracking.
- monitor_
samples int - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- trace_
client_ inttype - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- xtrace_
region str - The link data is reported to the region.
- custom
Host Property Map - Custom host. See
custom_host
below. - ip
Type Number - IpType.
- is
Open BooleanTrace - Whether to enable link tracking.
- monitor
Samples Number - Whether the monitoring samples are evenly distributed:
- 0: No 1: Yes.
- trace
Client NumberType - Link trace client type:
- 0:ARMS Agent
- 1:OpenTelemetry
- 2:Jaeger.
- xtrace
Region String - The link data is reported to the region.
SyntheticTaskCommonSettingCustomHost, SyntheticTaskCommonSettingCustomHostArgs
SyntheticTaskCommonSettingCustomHostHost, SyntheticTaskCommonSettingCustomHostHostArgs
SyntheticTaskCustomPeriod, SyntheticTaskCustomPeriodArgs
- end_
hour int - End hours, 0-24.
- start_
hour int - Starting hours, 0-24.
SyntheticTaskMonitor, SyntheticTaskMonitorArgs
- City
Code string - The city code of monitor.
- Client
Type int - The type of monitor.
- Operator
Code string - The operator code of monitor.
- City
Code string - The city code of monitor.
- Client
Type int - The type of monitor.
- Operator
Code string - The operator code of monitor.
- city
Code String - The city code of monitor.
- client
Type Integer - The type of monitor.
- operator
Code String - The operator code of monitor.
- city
Code string - The city code of monitor.
- client
Type number - The type of monitor.
- operator
Code string - The operator code of monitor.
- city_
code str - The city code of monitor.
- client_
type int - The type of monitor.
- operator_
code str - The operator code of monitor.
- city
Code String - The city code of monitor.
- client
Type Number - The type of monitor.
- operator
Code String - The operator code of monitor.
SyntheticTaskMonitorConf, SyntheticTaskMonitorConfArgs
- Api
Http Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Api Http - HTTP(S) task configuration information. See
api_http
below. - File
Download Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf File Download - File download type task configuration. See
file_download
below. - Net
Dns Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Net Dns - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - Net
Icmp Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Net Icmp - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - Net
Tcp Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Net Tcp - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - Stream
Pulumi.
Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Stream - Streaming Media Dial Test Configuration. See
stream
below. - Website
Pulumi.
Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Website - Website speed measurement type task configuration. See
website
below.
- Api
Http SyntheticTask Monitor Conf Api Http - HTTP(S) task configuration information. See
api_http
below. - File
Download SyntheticTask Monitor Conf File Download - File download type task configuration. See
file_download
below. - Net
Dns SyntheticTask Monitor Conf Net Dns - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - Net
Icmp SyntheticTask Monitor Conf Net Icmp - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - Net
Tcp SyntheticTask Monitor Conf Net Tcp - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - Stream
Synthetic
Task Monitor Conf Stream - Streaming Media Dial Test Configuration. See
stream
below. - Website
Synthetic
Task Monitor Conf Website - Website speed measurement type task configuration. See
website
below.
- api
Http SyntheticTask Monitor Conf Api Http - HTTP(S) task configuration information. See
api_http
below. - file
Download SyntheticTask Monitor Conf File Download - File download type task configuration. See
file_download
below. - net
Dns SyntheticTask Monitor Conf Net Dns - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - net
Icmp SyntheticTask Monitor Conf Net Icmp - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - net
Tcp SyntheticTask Monitor Conf Net Tcp - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - stream
Synthetic
Task Monitor Conf Stream - Streaming Media Dial Test Configuration. See
stream
below. - website
Synthetic
Task Monitor Conf Website - Website speed measurement type task configuration. See
website
below.
- api
Http SyntheticTask Monitor Conf Api Http - HTTP(S) task configuration information. See
api_http
below. - file
Download SyntheticTask Monitor Conf File Download - File download type task configuration. See
file_download
below. - net
Dns SyntheticTask Monitor Conf Net Dns - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - net
Icmp SyntheticTask Monitor Conf Net Icmp - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - net
Tcp SyntheticTask Monitor Conf Net Tcp - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - stream
Synthetic
Task Monitor Conf Stream - Streaming Media Dial Test Configuration. See
stream
below. - website
Synthetic
Task Monitor Conf Website - Website speed measurement type task configuration. See
website
below.
- api_
http SyntheticTask Monitor Conf Api Http - HTTP(S) task configuration information. See
api_http
below. - file_
download SyntheticTask Monitor Conf File Download - File download type task configuration. See
file_download
below. - net_
dns SyntheticTask Monitor Conf Net Dns - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - net_
icmp SyntheticTask Monitor Conf Net Icmp - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - net_
tcp SyntheticTask Monitor Conf Net Tcp - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - stream
Synthetic
Task Monitor Conf Stream - Streaming Media Dial Test Configuration. See
stream
below. - website
Synthetic
Task Monitor Conf Website - Website speed measurement type task configuration. See
website
below.
- api
Http Property Map - HTTP(S) task configuration information. See
api_http
below. - file
Download Property Map - File download type task configuration. See
file_download
below. - net
Dns Property Map - The configuration parameters of the DNS dial test. Required when TaskType is 3. See
net_dns
below. - net
Icmp Property Map - ICMP dialing configuration parameters. Required when TaskType is 1. See
net_icmp
below. - net
Tcp Property Map - The configuration parameters of TCP dial test. Required when TaskType is 2. See
net_tcp
below. - stream Property Map
- Streaming Media Dial Test Configuration. See
stream
below. - website Property Map
- Website speed measurement type task configuration. See
website
below.
SyntheticTaskMonitorConfApiHttp, SyntheticTaskMonitorConfApiHttpArgs
- Target
Url string - Connect
Timeout int - Method string
- Request
Body Pulumi.Ali Cloud. Arms. Inputs. Synthetic Task Monitor Conf Api Http Request Body - Request
Headers Dictionary<string, object> - Timeout int
- Target
Url string - Connect
Timeout int - Method string
- Request
Body SyntheticTask Monitor Conf Api Http Request Body - Request
Headers map[string]interface{} - Timeout int
- target
Url String - connect
Timeout Integer - method String
- request
Body SyntheticTask Monitor Conf Api Http Request Body - request
Headers Map<String,Object> - timeout Integer
- target
Url string - connect
Timeout number - method string
- request
Body SyntheticTask Monitor Conf Api Http Request Body - request
Headers {[key: string]: any} - timeout number
- target_
url str - connect_
timeout int - method str
- request_
body SyntheticTask Monitor Conf Api Http Request Body - request_
headers Mapping[str, Any] - timeout int
- target
Url String - connect
Timeout Number - method String
- request
Body Property Map - request
Headers Map<Any> - timeout Number
SyntheticTaskMonitorConfApiHttpRequestBody, SyntheticTaskMonitorConfApiHttpRequestBodyArgs
SyntheticTaskMonitorConfFileDownload, SyntheticTaskMonitorConfFileDownloadArgs
- Target
Url string - Connection
Timeout int - Custom
Header Dictionary<string, object>Content - Download
Kernel int - Ignore
Certificate intAuth Error - Ignore
Certificate intCanceled Error - Ignore
Certificate intOut Of Date Error - Ignore
Certificate intStatus Error - Ignore
Certificate intUntrustworthy Error - Ignore
Certificate intUsing Error - Ignore
Invalid intHost Error - Monitor
Timeout int - Quick
Protocol int - Redirection int
- Transmission
Size int - Validate
Keywords string - Verify
Way int - White
List string
- Target
Url string - Connection
Timeout int - Custom
Header map[string]interface{}Content - Download
Kernel int - Ignore
Certificate intAuth Error - Ignore
Certificate intCanceled Error - Ignore
Certificate intOut Of Date Error - Ignore
Certificate intStatus Error - Ignore
Certificate intUntrustworthy Error - Ignore
Certificate intUsing Error - Ignore
Invalid intHost Error - Monitor
Timeout int - Quick
Protocol int - Redirection int
- Transmission
Size int - Validate
Keywords string - Verify
Way int - White
List string
- target
Url String - connection
Timeout Integer - custom
Header Map<String,Object>Content - download
Kernel Integer - ignore
Certificate IntegerAuth Error - ignore
Certificate IntegerCanceled Error - ignore
Certificate IntegerOut Of Date Error - ignore
Certificate IntegerStatus Error - ignore
Certificate IntegerUntrustworthy Error - ignore
Certificate IntegerUsing Error - ignore
Invalid IntegerHost Error - monitor
Timeout Integer - quick
Protocol Integer - redirection Integer
- transmission
Size Integer - validate
Keywords String - verify
Way Integer - white
List String
- target
Url string - connection
Timeout number - custom
Header {[key: string]: any}Content - download
Kernel number - ignore
Certificate numberAuth Error - ignore
Certificate numberCanceled Error - ignore
Certificate numberOut Of Date Error - ignore
Certificate numberStatus Error - ignore
Certificate numberUntrustworthy Error - ignore
Certificate numberUsing Error - ignore
Invalid numberHost Error - monitor
Timeout number - quick
Protocol number - redirection number
- transmission
Size number - validate
Keywords string - verify
Way number - white
List string
- target_
url str - connection_
timeout int - custom_
header_ Mapping[str, Any]content - download_
kernel int - ignore_
certificate_ intauth_ error - ignore_
certificate_ intcanceled_ error - ignore_
certificate_ intout_ of_ date_ error - ignore_
certificate_ intstatus_ error - ignore_
certificate_ intuntrustworthy_ error - ignore_
certificate_ intusing_ error - ignore_
invalid_ inthost_ error - monitor_
timeout int - quick_
protocol int - redirection int
- transmission_
size int - validate_
keywords str - verify_
way int - white_
list str
- target
Url String - connection
Timeout Number - custom
Header Map<Any>Content - download
Kernel Number - ignore
Certificate NumberAuth Error - ignore
Certificate NumberCanceled Error - ignore
Certificate NumberOut Of Date Error - ignore
Certificate NumberStatus Error - ignore
Certificate NumberUntrustworthy Error - ignore
Certificate NumberUsing Error - ignore
Invalid NumberHost Error - monitor
Timeout Number - quick
Protocol Number - redirection Number
- transmission
Size Number - validate
Keywords String - verify
Way Number - white
List String
SyntheticTaskMonitorConfNetDns, SyntheticTaskMonitorConfNetDnsArgs
- Target
Url string - Dns
Server intIp Type - Ns
Server string - Query
Method int - Timeout int
- Target
Url string - Dns
Server intIp Type - Ns
Server string - Query
Method int - Timeout int
- target
Url String - dns
Server IntegerIp Type - ns
Server String - query
Method Integer - timeout Integer
- target
Url string - dns
Server numberIp Type - ns
Server string - query
Method number - timeout number
- target_
url str - dns_
server_ intip_ type - ns_
server str - query_
method int - timeout int
- target
Url String - dns
Server NumberIp Type - ns
Server String - query
Method Number - timeout Number
SyntheticTaskMonitorConfNetIcmp, SyntheticTaskMonitorConfNetIcmpArgs
- Target
Url string - Interval int
- Package
Num int - Package
Size int - Split
Package bool - Timeout int
- Tracert
Enable bool - Tracert
Num intMax - Tracert
Timeout int
- Target
Url string - Interval int
- Package
Num int - Package
Size int - Split
Package bool - Timeout int
- Tracert
Enable bool - Tracert
Num intMax - Tracert
Timeout int
- target
Url String - interval Integer
- package
Num Integer - package
Size Integer - split
Package Boolean - timeout Integer
- tracert
Enable Boolean - tracert
Num IntegerMax - tracert
Timeout Integer
- target
Url string - interval number
- package
Num number - package
Size number - split
Package boolean - timeout number
- tracert
Enable boolean - tracert
Num numberMax - tracert
Timeout number
- target_
url str - interval int
- package_
num int - package_
size int - split_
package bool - timeout int
- tracert_
enable bool - tracert_
num_ intmax - tracert_
timeout int
- target
Url String - interval Number
- package
Num Number - package
Size Number - split
Package Boolean - timeout Number
- tracert
Enable Boolean - tracert
Num NumberMax - tracert
Timeout Number
SyntheticTaskMonitorConfNetTcp, SyntheticTaskMonitorConfNetTcpArgs
- Target
Url string - Connect
Times int - Interval int
- Timeout int
- Tracert
Enable bool - Tracert
Num intMax - Tracert
Timeout int
- Target
Url string - Connect
Times int - Interval int
- Timeout int
- Tracert
Enable bool - Tracert
Num intMax - Tracert
Timeout int
- target
Url String - connect
Times Integer - interval Integer
- timeout Integer
- tracert
Enable Boolean - tracert
Num IntegerMax - tracert
Timeout Integer
- target
Url string - connect
Times number - interval number
- timeout number
- tracert
Enable boolean - tracert
Num numberMax - tracert
Timeout number
- target_
url str - connect_
times int - interval int
- timeout int
- tracert_
enable bool - tracert_
num_ intmax - tracert_
timeout int
- target
Url String - connect
Times Number - interval Number
- timeout Number
- tracert
Enable Boolean - tracert
Num NumberMax - tracert
Timeout Number
SyntheticTaskMonitorConfStream, SyntheticTaskMonitorConfStreamArgs
- Custom
Header Dictionary<string, object>Content - Player
Type int - Stream
Address intType - Stream
Monitor intTimeout - Stream
Type int - Target
Url string - White
List string
- Custom
Header map[string]interface{}Content - Player
Type int - Stream
Address intType - Stream
Monitor intTimeout - Stream
Type int - Target
Url string - White
List string
- custom
Header Map<String,Object>Content - player
Type Integer - stream
Address IntegerType - stream
Monitor IntegerTimeout - stream
Type Integer - target
Url String - white
List String
- custom
Header {[key: string]: any}Content - player
Type number - stream
Address numberType - stream
Monitor numberTimeout - stream
Type number - target
Url string - white
List string
- custom_
header_ Mapping[str, Any]content - player_
type int - stream_
address_ inttype - stream_
monitor_ inttimeout - stream_
type int - target_
url str - white_
list str
- custom
Header Map<Any>Content - player
Type Number - stream
Address NumberType - stream
Monitor NumberTimeout - stream
Type Number - target
Url String - white
List String
SyntheticTaskMonitorConfWebsite, SyntheticTaskMonitorConfWebsiteArgs
- Target
Url string - Automatic
Scrolling int - Custom
Header int - Custom
Header Dictionary<string, object>Content - Disable
Cache int - Disable
Compression int - Dns
Hijack stringWhitelist - Element
Blacklist string - Filter
Invalid intIp - Flow
Hijack intJump Times - Flow
Hijack stringLogo - Ignore
Certificate intError - Monitor
Timeout int - Page
Tamper string - Redirection int
- Slow
Element intThreshold - Verify
String stringBlacklist - Verify
String stringWhitelist - Wait
Completion intTime
- Target
Url string - Automatic
Scrolling int - Custom
Header int - Custom
Header map[string]interface{}Content - Disable
Cache int - Disable
Compression int - Dns
Hijack stringWhitelist - Element
Blacklist string - Filter
Invalid intIp - Flow
Hijack intJump Times - Flow
Hijack stringLogo - Ignore
Certificate intError - Monitor
Timeout int - Page
Tamper string - Redirection int
- Slow
Element intThreshold - Verify
String stringBlacklist - Verify
String stringWhitelist - Wait
Completion intTime
- target
Url String - automatic
Scrolling Integer - custom
Header Integer - custom
Header Map<String,Object>Content - disable
Cache Integer - disable
Compression Integer - dns
Hijack StringWhitelist - element
Blacklist String - filter
Invalid IntegerIp - flow
Hijack IntegerJump Times - flow
Hijack StringLogo - ignore
Certificate IntegerError - monitor
Timeout Integer - page
Tamper String - redirection Integer
- slow
Element IntegerThreshold - verify
String StringBlacklist - verify
String StringWhitelist - wait
Completion IntegerTime
- target
Url string - automatic
Scrolling number - custom
Header number - custom
Header {[key: string]: any}Content - disable
Cache number - disable
Compression number - dns
Hijack stringWhitelist - element
Blacklist string - filter
Invalid numberIp - flow
Hijack numberJump Times - flow
Hijack stringLogo - ignore
Certificate numberError - monitor
Timeout number - page
Tamper string - redirection number
- slow
Element numberThreshold - verify
String stringBlacklist - verify
String stringWhitelist - wait
Completion numberTime
- target_
url str - automatic_
scrolling int - custom_
header int - custom_
header_ Mapping[str, Any]content - disable_
cache int - disable_
compression int - dns_
hijack_ strwhitelist - element_
blacklist str - filter_
invalid_ intip - flow_
hijack_ intjump_ times - flow_
hijack_ strlogo - ignore_
certificate_ interror - monitor_
timeout int - page_
tamper str - redirection int
- slow_
element_ intthreshold - verify_
string_ strblacklist - verify_
string_ strwhitelist - wait_
completion_ inttime
- target
Url String - automatic
Scrolling Number - custom
Header Number - custom
Header Map<Any>Content - disable
Cache Number - disable
Compression Number - dns
Hijack StringWhitelist - element
Blacklist String - filter
Invalid NumberIp - flow
Hijack NumberJump Times - flow
Hijack StringLogo - ignore
Certificate NumberError - monitor
Timeout Number - page
Tamper String - redirection Number
- slow
Element NumberThreshold - verify
String StringBlacklist - verify
String StringWhitelist - wait
Completion NumberTime
Import
ARMS Synthetic Task can be imported using the id, e.g.
$ pulumi import alicloud:arms/syntheticTask:SyntheticTask example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.