1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cms
  5. SiteMonitor
Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi

alicloud.cms.SiteMonitor

Start a Neo task
Explain and create an alicloud.cms.SiteMonitor resource
alicloud logo
Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi

    Provides a Cloud Monitor Service Site Monitor resource.

    Describes the SITE monitoring tasks created by the user.

    For information about Cloud Monitor Service Site Monitor and how to use it, see What is Site Monitor.

    NOTE: Available since v1.72.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 basic = new alicloud.cms.SiteMonitor("basic", {
        address: "https://www.alibabacloud.com",
        taskName: name,
        taskType: "HTTP",
        interval: "5",
        ispCities: [{
            isp: "232",
            city: "641",
            type: "IDC",
        }],
        optionJson: {
            responseContent: "example",
            expectValue: "example",
            port: 81,
            isBaseEncode: true,
            pingNum: 5,
            matchRule: 1,
            failureRate: "0.3",
            requestContent: "example",
            attempts: 4,
            requestFormat: "hex",
            password: "YourPassword123!",
            diagnosisPing: true,
            responseFormat: "hex",
            cookie: "key2=value2",
            pingPort: 443,
            userName: "example",
            dnsMatchRule: "DNS_IN",
            timeout: 3000,
            dnsServer: "223.6.6.6",
            diagnosisMtr: true,
            header: "key2:value2",
            minTlsVersion: "1.1",
            pingType: "udp",
            dnsType: "NS",
            dnsHijackWhitelist: "DnsHijackWhitelist",
            httpMethod: "post",
            assertions: [{
                operator: "lessThan",
                target: "300",
                type: "response_time",
            }],
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    basic = alicloud.cms.SiteMonitor("basic",
        address="https://www.alibabacloud.com",
        task_name=name,
        task_type="HTTP",
        interval="5",
        isp_cities=[{
            "isp": "232",
            "city": "641",
            "type": "IDC",
        }],
        option_json={
            "response_content": "example",
            "expect_value": "example",
            "port": 81,
            "is_base_encode": True,
            "ping_num": 5,
            "match_rule": 1,
            "failure_rate": "0.3",
            "request_content": "example",
            "attempts": 4,
            "request_format": "hex",
            "password": "YourPassword123!",
            "diagnosis_ping": True,
            "response_format": "hex",
            "cookie": "key2=value2",
            "ping_port": 443,
            "user_name": "example",
            "dns_match_rule": "DNS_IN",
            "timeout": 3000,
            "dns_server": "223.6.6.6",
            "diagnosis_mtr": True,
            "header": "key2:value2",
            "min_tls_version": "1.1",
            "ping_type": "udp",
            "dns_type": "NS",
            "dns_hijack_whitelist": "DnsHijackWhitelist",
            "http_method": "post",
            "assertions": [{
                "operator": "lessThan",
                "target": "300",
                "type": "response_time",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"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
    		}
    		_, err := cms.NewSiteMonitor(ctx, "basic", &cms.SiteMonitorArgs{
    			Address:  pulumi.String("https://www.alibabacloud.com"),
    			TaskName: pulumi.String(name),
    			TaskType: pulumi.String("HTTP"),
    			Interval: pulumi.String("5"),
    			IspCities: cms.SiteMonitorIspCityArray{
    				&cms.SiteMonitorIspCityArgs{
    					Isp:  pulumi.String("232"),
    					City: pulumi.String("641"),
    					Type: pulumi.String("IDC"),
    				},
    			},
    			OptionJson: &cms.SiteMonitorOptionJsonArgs{
    				ResponseContent:    pulumi.String("example"),
    				ExpectValue:        pulumi.String("example"),
    				Port:               pulumi.Int(81),
    				IsBaseEncode:       pulumi.Bool(true),
    				PingNum:            pulumi.Int(5),
    				MatchRule:          pulumi.Int(1),
    				FailureRate:        pulumi.String("0.3"),
    				RequestContent:     pulumi.String("example"),
    				Attempts:           pulumi.Int(4),
    				RequestFormat:      pulumi.String("hex"),
    				Password:           pulumi.String("YourPassword123!"),
    				DiagnosisPing:      pulumi.Bool(true),
    				ResponseFormat:     pulumi.String("hex"),
    				Cookie:             pulumi.String("key2=value2"),
    				PingPort:           pulumi.Int(443),
    				UserName:           pulumi.String("example"),
    				DnsMatchRule:       pulumi.String("DNS_IN"),
    				Timeout:            pulumi.Int(3000),
    				DnsServer:          pulumi.String("223.6.6.6"),
    				DiagnosisMtr:       pulumi.Bool(true),
    				Header:             pulumi.String("key2:value2"),
    				MinTlsVersion:      pulumi.String("1.1"),
    				PingType:           pulumi.String("udp"),
    				DnsType:            pulumi.String("NS"),
    				DnsHijackWhitelist: pulumi.String("DnsHijackWhitelist"),
    				HttpMethod:         pulumi.String("post"),
    				Assertions: cms.SiteMonitorOptionJsonAssertionArray{
    					&cms.SiteMonitorOptionJsonAssertionArgs{
    						Operator: pulumi.String("lessThan"),
    						Target:   pulumi.String("300"),
    						Type:     pulumi.String("response_time"),
    					},
    				},
    			},
    		})
    		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 basic = new AliCloud.Cms.SiteMonitor("basic", new()
        {
            Address = "https://www.alibabacloud.com",
            TaskName = name,
            TaskType = "HTTP",
            Interval = "5",
            IspCities = new[]
            {
                new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
                {
                    Isp = "232",
                    City = "641",
                    Type = "IDC",
                },
            },
            OptionJson = new AliCloud.Cms.Inputs.SiteMonitorOptionJsonArgs
            {
                ResponseContent = "example",
                ExpectValue = "example",
                Port = 81,
                IsBaseEncode = true,
                PingNum = 5,
                MatchRule = 1,
                FailureRate = "0.3",
                RequestContent = "example",
                Attempts = 4,
                RequestFormat = "hex",
                Password = "YourPassword123!",
                DiagnosisPing = true,
                ResponseFormat = "hex",
                Cookie = "key2=value2",
                PingPort = 443,
                UserName = "example",
                DnsMatchRule = "DNS_IN",
                Timeout = 3000,
                DnsServer = "223.6.6.6",
                DiagnosisMtr = true,
                Header = "key2:value2",
                MinTlsVersion = "1.1",
                PingType = "udp",
                DnsType = "NS",
                DnsHijackWhitelist = "DnsHijackWhitelist",
                HttpMethod = "post",
                Assertions = new[]
                {
                    new AliCloud.Cms.Inputs.SiteMonitorOptionJsonAssertionArgs
                    {
                        Operator = "lessThan",
                        Target = "300",
                        Type = "response_time",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cms.SiteMonitor;
    import com.pulumi.alicloud.cms.SiteMonitorArgs;
    import com.pulumi.alicloud.cms.inputs.SiteMonitorIspCityArgs;
    import com.pulumi.alicloud.cms.inputs.SiteMonitorOptionJsonArgs;
    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");
            var basic = new SiteMonitor("basic", SiteMonitorArgs.builder()
                .address("https://www.alibabacloud.com")
                .taskName(name)
                .taskType("HTTP")
                .interval("5")
                .ispCities(SiteMonitorIspCityArgs.builder()
                    .isp("232")
                    .city("641")
                    .type("IDC")
                    .build())
                .optionJson(SiteMonitorOptionJsonArgs.builder()
                    .responseContent("example")
                    .expectValue("example")
                    .port(81)
                    .isBaseEncode(true)
                    .pingNum(5)
                    .matchRule(1)
                    .failureRate("0.3")
                    .requestContent("example")
                    .attempts(4)
                    .requestFormat("hex")
                    .password("YourPassword123!")
                    .diagnosisPing(true)
                    .responseFormat("hex")
                    .cookie("key2=value2")
                    .pingPort(443)
                    .userName("example")
                    .dnsMatchRule("DNS_IN")
                    .timeout(3000)
                    .dnsServer("223.6.6.6")
                    .diagnosisMtr(true)
                    .header("key2:value2")
                    .minTlsVersion("1.1")
                    .pingType("udp")
                    .dnsType("NS")
                    .dnsHijackWhitelist("DnsHijackWhitelist")
                    .httpMethod("post")
                    .assertions(SiteMonitorOptionJsonAssertionArgs.builder()
                        .operator("lessThan")
                        .target("300")
                        .type("response_time")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      basic:
        type: alicloud:cms:SiteMonitor
        properties:
          address: https://www.alibabacloud.com
          taskName: ${name}
          taskType: HTTP
          interval: 5
          ispCities:
            - isp: '232'
              city: '641'
              type: IDC
          optionJson:
            responseContent: example
            expectValue: example
            port: 81
            isBaseEncode: true
            pingNum: 5
            matchRule: 1
            failureRate: '0.3'
            requestContent: example
            attempts: 4
            requestFormat: hex
            password: YourPassword123!
            diagnosisPing: true
            responseFormat: hex
            cookie: key2=value2
            pingPort: 443
            userName: example
            dnsMatchRule: DNS_IN
            timeout: 3000
            dnsServer: 223.6.6.6
            diagnosisMtr: true
            header: key2:value2
            minTlsVersion: '1.1'
            pingType: udp
            dnsType: NS
            dnsHijackWhitelist: DnsHijackWhitelist
            httpMethod: post
            assertions:
              - operator: lessThan
                target: 300
                type: response_time
    

    Create SiteMonitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SiteMonitor(name: string, args: SiteMonitorArgs, opts?: CustomResourceOptions);
    @overload
    def SiteMonitor(resource_name: str,
                    args: SiteMonitorArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SiteMonitor(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    address: Optional[str] = None,
                    task_name: Optional[str] = None,
                    task_type: Optional[str] = None,
                    agent_group: Optional[str] = None,
                    alert_ids: Optional[Sequence[str]] = None,
                    custom_schedule: Optional[SiteMonitorCustomScheduleArgs] = None,
                    interval: Optional[str] = None,
                    isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
                    option_json: Optional[SiteMonitorOptionJsonArgs] = None,
                    options_json: Optional[str] = None,
                    status: Optional[str] = None)
    func NewSiteMonitor(ctx *Context, name string, args SiteMonitorArgs, opts ...ResourceOption) (*SiteMonitor, error)
    public SiteMonitor(string name, SiteMonitorArgs args, CustomResourceOptions? opts = null)
    public SiteMonitor(String name, SiteMonitorArgs args)
    public SiteMonitor(String name, SiteMonitorArgs args, CustomResourceOptions options)
    
    type: alicloud:cms:SiteMonitor
    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 SiteMonitorArgs
    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 SiteMonitorArgs
    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 SiteMonitorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SiteMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SiteMonitorArgs
    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 siteMonitorResource = new AliCloud.Cms.SiteMonitor("siteMonitorResource", new()
    {
        Address = "string",
        TaskName = "string",
        TaskType = "string",
        AgentGroup = "string",
        CustomSchedule = new AliCloud.Cms.Inputs.SiteMonitorCustomScheduleArgs
        {
            Days = new[]
            {
                0,
            },
            EndHour = 0,
            StartHour = 0,
            TimeZone = "string",
        },
        Interval = "string",
        IspCities = new[]
        {
            new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
            {
                City = "string",
                Isp = "string",
                Type = "string",
            },
        },
        OptionJson = new AliCloud.Cms.Inputs.SiteMonitorOptionJsonArgs
        {
            Assertions = new[]
            {
                new AliCloud.Cms.Inputs.SiteMonitorOptionJsonAssertionArgs
                {
                    Operator = "string",
                    Target = "string",
                    Type = "string",
                },
            },
            Attempts = 0,
            Cookie = "string",
            DiagnosisMtr = false,
            DiagnosisPing = false,
            DnsHijackWhitelist = "string",
            DnsMatchRule = "string",
            DnsServer = "string",
            DnsType = "string",
            ExpectValue = "string",
            FailureRate = "string",
            Header = "string",
            HttpMethod = "string",
            IsBaseEncode = false,
            MatchRule = 0,
            MinTlsVersion = "string",
            Password = "string",
            PingNum = 0,
            PingPort = 0,
            PingType = "string",
            Port = 0,
            RequestContent = "string",
            RequestFormat = "string",
            ResponseContent = "string",
            ResponseFormat = "string",
            Timeout = 0,
            UserName = "string",
        },
        Status = "string",
    });
    
    example, err := cms.NewSiteMonitor(ctx, "siteMonitorResource", &cms.SiteMonitorArgs{
    	Address:    pulumi.String("string"),
    	TaskName:   pulumi.String("string"),
    	TaskType:   pulumi.String("string"),
    	AgentGroup: pulumi.String("string"),
    	CustomSchedule: &cms.SiteMonitorCustomScheduleArgs{
    		Days: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		EndHour:   pulumi.Int(0),
    		StartHour: pulumi.Int(0),
    		TimeZone:  pulumi.String("string"),
    	},
    	Interval: pulumi.String("string"),
    	IspCities: cms.SiteMonitorIspCityArray{
    		&cms.SiteMonitorIspCityArgs{
    			City: pulumi.String("string"),
    			Isp:  pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	OptionJson: &cms.SiteMonitorOptionJsonArgs{
    		Assertions: cms.SiteMonitorOptionJsonAssertionArray{
    			&cms.SiteMonitorOptionJsonAssertionArgs{
    				Operator: pulumi.String("string"),
    				Target:   pulumi.String("string"),
    				Type:     pulumi.String("string"),
    			},
    		},
    		Attempts:           pulumi.Int(0),
    		Cookie:             pulumi.String("string"),
    		DiagnosisMtr:       pulumi.Bool(false),
    		DiagnosisPing:      pulumi.Bool(false),
    		DnsHijackWhitelist: pulumi.String("string"),
    		DnsMatchRule:       pulumi.String("string"),
    		DnsServer:          pulumi.String("string"),
    		DnsType:            pulumi.String("string"),
    		ExpectValue:        pulumi.String("string"),
    		FailureRate:        pulumi.String("string"),
    		Header:             pulumi.String("string"),
    		HttpMethod:         pulumi.String("string"),
    		IsBaseEncode:       pulumi.Bool(false),
    		MatchRule:          pulumi.Int(0),
    		MinTlsVersion:      pulumi.String("string"),
    		Password:           pulumi.String("string"),
    		PingNum:            pulumi.Int(0),
    		PingPort:           pulumi.Int(0),
    		PingType:           pulumi.String("string"),
    		Port:               pulumi.Int(0),
    		RequestContent:     pulumi.String("string"),
    		RequestFormat:      pulumi.String("string"),
    		ResponseContent:    pulumi.String("string"),
    		ResponseFormat:     pulumi.String("string"),
    		Timeout:            pulumi.Int(0),
    		UserName:           pulumi.String("string"),
    	},
    	Status: pulumi.String("string"),
    })
    
    var siteMonitorResource = new SiteMonitor("siteMonitorResource", SiteMonitorArgs.builder()
        .address("string")
        .taskName("string")
        .taskType("string")
        .agentGroup("string")
        .customSchedule(SiteMonitorCustomScheduleArgs.builder()
            .days(0)
            .endHour(0)
            .startHour(0)
            .timeZone("string")
            .build())
        .interval("string")
        .ispCities(SiteMonitorIspCityArgs.builder()
            .city("string")
            .isp("string")
            .type("string")
            .build())
        .optionJson(SiteMonitorOptionJsonArgs.builder()
            .assertions(SiteMonitorOptionJsonAssertionArgs.builder()
                .operator("string")
                .target("string")
                .type("string")
                .build())
            .attempts(0)
            .cookie("string")
            .diagnosisMtr(false)
            .diagnosisPing(false)
            .dnsHijackWhitelist("string")
            .dnsMatchRule("string")
            .dnsServer("string")
            .dnsType("string")
            .expectValue("string")
            .failureRate("string")
            .header("string")
            .httpMethod("string")
            .isBaseEncode(false)
            .matchRule(0)
            .minTlsVersion("string")
            .password("string")
            .pingNum(0)
            .pingPort(0)
            .pingType("string")
            .port(0)
            .requestContent("string")
            .requestFormat("string")
            .responseContent("string")
            .responseFormat("string")
            .timeout(0)
            .userName("string")
            .build())
        .status("string")
        .build());
    
    site_monitor_resource = alicloud.cms.SiteMonitor("siteMonitorResource",
        address="string",
        task_name="string",
        task_type="string",
        agent_group="string",
        custom_schedule={
            "days": [0],
            "end_hour": 0,
            "start_hour": 0,
            "time_zone": "string",
        },
        interval="string",
        isp_cities=[{
            "city": "string",
            "isp": "string",
            "type": "string",
        }],
        option_json={
            "assertions": [{
                "operator": "string",
                "target": "string",
                "type": "string",
            }],
            "attempts": 0,
            "cookie": "string",
            "diagnosis_mtr": False,
            "diagnosis_ping": False,
            "dns_hijack_whitelist": "string",
            "dns_match_rule": "string",
            "dns_server": "string",
            "dns_type": "string",
            "expect_value": "string",
            "failure_rate": "string",
            "header": "string",
            "http_method": "string",
            "is_base_encode": False,
            "match_rule": 0,
            "min_tls_version": "string",
            "password": "string",
            "ping_num": 0,
            "ping_port": 0,
            "ping_type": "string",
            "port": 0,
            "request_content": "string",
            "request_format": "string",
            "response_content": "string",
            "response_format": "string",
            "timeout": 0,
            "user_name": "string",
        },
        status="string")
    
    const siteMonitorResource = new alicloud.cms.SiteMonitor("siteMonitorResource", {
        address: "string",
        taskName: "string",
        taskType: "string",
        agentGroup: "string",
        customSchedule: {
            days: [0],
            endHour: 0,
            startHour: 0,
            timeZone: "string",
        },
        interval: "string",
        ispCities: [{
            city: "string",
            isp: "string",
            type: "string",
        }],
        optionJson: {
            assertions: [{
                operator: "string",
                target: "string",
                type: "string",
            }],
            attempts: 0,
            cookie: "string",
            diagnosisMtr: false,
            diagnosisPing: false,
            dnsHijackWhitelist: "string",
            dnsMatchRule: "string",
            dnsServer: "string",
            dnsType: "string",
            expectValue: "string",
            failureRate: "string",
            header: "string",
            httpMethod: "string",
            isBaseEncode: false,
            matchRule: 0,
            minTlsVersion: "string",
            password: "string",
            pingNum: 0,
            pingPort: 0,
            pingType: "string",
            port: 0,
            requestContent: "string",
            requestFormat: "string",
            responseContent: "string",
            responseFormat: "string",
            timeout: 0,
            userName: "string",
        },
        status: "string",
    });
    
    type: alicloud:cms:SiteMonitor
    properties:
        address: string
        agentGroup: string
        customSchedule:
            days:
                - 0
            endHour: 0
            startHour: 0
            timeZone: string
        interval: string
        ispCities:
            - city: string
              isp: string
              type: string
        optionJson:
            assertions:
                - operator: string
                  target: string
                  type: string
            attempts: 0
            cookie: string
            diagnosisMtr: false
            diagnosisPing: false
            dnsHijackWhitelist: string
            dnsMatchRule: string
            dnsServer: string
            dnsType: string
            expectValue: string
            failureRate: string
            header: string
            httpMethod: string
            isBaseEncode: false
            matchRule: 0
            minTlsVersion: string
            password: string
            pingNum: 0
            pingPort: 0
            pingType: string
            port: 0
            requestContent: string
            requestFormat: string
            responseContent: string
            responseFormat: string
            timeout: 0
            userName: string
        status: string
        taskName: string
        taskType: string
    

    SiteMonitor Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SiteMonitor resource accepts the following input properties:

    Address string
    The URL or IP address monitored by the site monitoring task.
    TaskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    TaskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    AgentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    AlertIds List<string>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    CustomSchedule Pulumi.AliCloud.Cms.Inputs.SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    Interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    IspCities List<Pulumi.AliCloud.Cms.Inputs.SiteMonitorIspCity>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    OptionJson Pulumi.AliCloud.Cms.Inputs.SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    OptionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    Status string
    The status of the site monitoring task. Valid values:
    Address string
    The URL or IP address monitored by the site monitoring task.
    TaskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    TaskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    AgentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    AlertIds []string
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    CustomSchedule SiteMonitorCustomScheduleArgs
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    Interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    IspCities []SiteMonitorIspCityArgs
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    OptionJson SiteMonitorOptionJsonArgs
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    OptionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    Status string
    The status of the site monitoring task. Valid values:
    address String
    The URL or IP address monitored by the site monitoring task.
    taskName String
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskType String
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    agentGroup String
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds List<String>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    customSchedule SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval String
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities List<SiteMonitorIspCity>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson String
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status String
    The status of the site monitoring task. Valid values:
    address string
    The URL or IP address monitored by the site monitoring task.
    taskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    agentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds string[]
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    customSchedule SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities SiteMonitorIspCity[]
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status string
    The status of the site monitoring task. Valid values:
    address str
    The URL or IP address monitored by the site monitoring task.
    task_name str
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    task_type str
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    agent_group str
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alert_ids Sequence[str]
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    custom_schedule SiteMonitorCustomScheduleArgs
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval str
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    isp_cities Sequence[SiteMonitorIspCityArgs]
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    option_json SiteMonitorOptionJsonArgs
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    options_json str
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status str
    The status of the site monitoring task. Valid values:
    address String
    The URL or IP address monitored by the site monitoring task.
    taskName String
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskType String
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    agentGroup String
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds List<String>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    customSchedule Property Map
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval String
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities List<Property Map>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson Property Map
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson String
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status String
    The status of the site monitoring task. Valid values:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SiteMonitor resource produces the following output properties:

    CreateTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    Id string
    The provider-assigned unique ID for this managed resource.
    TaskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    UpdateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    CreateTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    Id string
    The provider-assigned unique ID for this managed resource.
    TaskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    UpdateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    createTime String
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    id String
    The provider-assigned unique ID for this managed resource.
    taskState String
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    updateTime String
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    createTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    id string
    The provider-assigned unique ID for this managed resource.
    taskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    updateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    create_time str
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    id str
    The provider-assigned unique ID for this managed resource.
    task_state str
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    update_time str
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    createTime String
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    id String
    The provider-assigned unique ID for this managed resource.
    taskState String
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    updateTime String
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    Look up Existing SiteMonitor Resource

    Get an existing SiteMonitor 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?: SiteMonitorState, opts?: CustomResourceOptions): SiteMonitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            agent_group: Optional[str] = None,
            alert_ids: Optional[Sequence[str]] = None,
            create_time: Optional[str] = None,
            custom_schedule: Optional[SiteMonitorCustomScheduleArgs] = None,
            interval: Optional[str] = None,
            isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
            option_json: Optional[SiteMonitorOptionJsonArgs] = None,
            options_json: Optional[str] = None,
            status: Optional[str] = None,
            task_name: Optional[str] = None,
            task_state: Optional[str] = None,
            task_type: Optional[str] = None,
            update_time: Optional[str] = None) -> SiteMonitor
    func GetSiteMonitor(ctx *Context, name string, id IDInput, state *SiteMonitorState, opts ...ResourceOption) (*SiteMonitor, error)
    public static SiteMonitor Get(string name, Input<string> id, SiteMonitorState? state, CustomResourceOptions? opts = null)
    public static SiteMonitor get(String name, Output<String> id, SiteMonitorState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cms:SiteMonitor    get:      id: ${id}
    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.
    The following state arguments are supported:
    Address string
    The URL or IP address monitored by the site monitoring task.
    AgentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    AlertIds List<string>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    CreateTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    CustomSchedule Pulumi.AliCloud.Cms.Inputs.SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    Interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    IspCities List<Pulumi.AliCloud.Cms.Inputs.SiteMonitorIspCity>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    OptionJson Pulumi.AliCloud.Cms.Inputs.SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    OptionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    Status string
    The status of the site monitoring task. Valid values:
    TaskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    TaskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    TaskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    UpdateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    Address string
    The URL or IP address monitored by the site monitoring task.
    AgentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    AlertIds []string
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    CreateTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    CustomSchedule SiteMonitorCustomScheduleArgs
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    Interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    IspCities []SiteMonitorIspCityArgs
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    OptionJson SiteMonitorOptionJsonArgs
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    OptionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    Status string
    The status of the site monitoring task. Valid values:
    TaskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    TaskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    TaskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    UpdateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    address String
    The URL or IP address monitored by the site monitoring task.
    agentGroup String
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds List<String>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    createTime String
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    customSchedule SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval String
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities List<SiteMonitorIspCity>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson String
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status String
    The status of the site monitoring task. Valid values:
    taskName String
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskState String
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    taskType String
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    updateTime String
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    address string
    The URL or IP address monitored by the site monitoring task.
    agentGroup string
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds string[]
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    createTime string
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    customSchedule SiteMonitorCustomSchedule
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval string
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities SiteMonitorIspCity[]
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson SiteMonitorOptionJson
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson string
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status string
    The status of the site monitoring task. Valid values:
    taskName string
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskState string
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    taskType string
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    updateTime string
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    address str
    The URL or IP address monitored by the site monitoring task.
    agent_group str
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alert_ids Sequence[str]
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    create_time str
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    custom_schedule SiteMonitorCustomScheduleArgs
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval str
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    isp_cities Sequence[SiteMonitorIspCityArgs]
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    option_json SiteMonitorOptionJsonArgs
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    options_json str
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status str
    The status of the site monitoring task. Valid values:
    task_name str
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    task_state str
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    task_type str
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    update_time str
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    address String
    The URL or IP address monitored by the site monitoring task.
    agentGroup String
    The type of the detection point. Default value: PC. Valid values: PC, MOBILE.
    alertIds List<String>
    Field alert_ids has been deprecated from provider version 1.262.0.

    Deprecated: Field alert_ids has been deprecated from provider version 1.262.0.

    createTime String
    (Deprecated since v1.262.0) Field create_time has been deprecated from provider version 1.262.0.

    Deprecated: Field create_time has been deprecated from provider version 1.262.0.

    customSchedule Property Map
    Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See custom_schedule below.
    interval String
    The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
    ispCities List<Property Map>
    The detection points in a JSON array. For example, [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}] indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring. See isp_cities below.
    optionJson Property Map
    The extended options of the protocol that is used by the site monitoring task. See option_json below.
    optionsJson String
    Field options_json has been deprecated from provider version 1.262.0. New field option_json instead.

    Deprecated: Field options_json has been deprecated from provider version 1.262.0. New field option_json instead

    status String
    The status of the site monitoring task. Valid values:
    taskName String
    The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
    taskState String
    (Deprecated since v1.262.0) Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    Deprecated: Field task_state has been deprecated from provider version 1.262.0. New field status instead.

    taskType String
    The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
    updateTime String
    (Deprecated since v1.262.0) Field update_time has been deprecated from provider version 1.262.0.

    Deprecated: Field update_time has been deprecated from provider version 1.262.0.

    Supporting Types

    SiteMonitorCustomSchedule, SiteMonitorCustomScheduleArgs

    Days List<int>
    The days in a week.
    EndHour int
    The end time of the detection. Unit: hours.
    StartHour int
    The start time of the detection. Unit: hours.
    TimeZone string
    The time zone of the detection.
    Days []int
    The days in a week.
    EndHour int
    The end time of the detection. Unit: hours.
    StartHour int
    The start time of the detection. Unit: hours.
    TimeZone string
    The time zone of the detection.
    days List<Integer>
    The days in a week.
    endHour Integer
    The end time of the detection. Unit: hours.
    startHour Integer
    The start time of the detection. Unit: hours.
    timeZone String
    The time zone of the detection.
    days number[]
    The days in a week.
    endHour number
    The end time of the detection. Unit: hours.
    startHour number
    The start time of the detection. Unit: hours.
    timeZone string
    The time zone of the detection.
    days Sequence[int]
    The days in a week.
    end_hour int
    The end time of the detection. Unit: hours.
    start_hour int
    The start time of the detection. Unit: hours.
    time_zone str
    The time zone of the detection.
    days List<Number>
    The days in a week.
    endHour Number
    The end time of the detection. Unit: hours.
    startHour Number
    The start time of the detection. Unit: hours.
    timeZone String
    The time zone of the detection.

    SiteMonitorIspCity, SiteMonitorIspCityArgs

    City string
    The ID of the city.
    Isp string
    The ID of the carrier.
    Type string
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.
    City string
    The ID of the city.
    Isp string
    The ID of the carrier.
    Type string
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.
    city String
    The ID of the city.
    isp String
    The ID of the carrier.
    type String
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.
    city string
    The ID of the city.
    isp string
    The ID of the carrier.
    type string
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.
    city str
    The ID of the city.
    isp str
    The ID of the carrier.
    type str
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.
    city String
    The ID of the city.
    isp String
    The ID of the carrier.
    type String
    The network type of the detection point. Valid values: IDC, LASTMILE, and MOBILE.

    SiteMonitorOptionJson, SiteMonitorOptionJsonArgs

    Assertions List<Pulumi.AliCloud.Cms.Inputs.SiteMonitorOptionJsonAssertion>
    Assertion configuration group. See assertions below.
    Attempts int
    Number of retries after DNS failed.
    Cookie string
    The Cookie that sends the HTTP request.
    DiagnosisMtr bool
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    DiagnosisPing bool
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    DnsHijackWhitelist string
    List of DNS hijacking configurations.
    DnsMatchRule string
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    DnsServer string

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    DnsType string
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    ExpectValue string

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    FailureRate string

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    Header string
    HTTP request header.
    HttpMethod string
    HTTP request method. Value:

    • get
    • post
    • head
    IsBaseEncode bool
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    MatchRule int
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    MinTlsVersion string
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    Password string
    The password of the SMTP, POP3, or FTP probe type.
    PingNum int
    The heartbeat of the PING probe type.
    PingPort int
    PING the port. Applies to TCP PING.
    PingType string
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    Port int
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    RequestContent string
    The request content of the HTTP probe type.
    RequestFormat string
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    ResponseContent string
    Match the response content.
    ResponseFormat string
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    Timeout int
    Timeout time. Unit: milliseconds.
    UserName string
    The username of FTP, SMTP, or pop3.
    Assertions []SiteMonitorOptionJsonAssertion
    Assertion configuration group. See assertions below.
    Attempts int
    Number of retries after DNS failed.
    Cookie string
    The Cookie that sends the HTTP request.
    DiagnosisMtr bool
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    DiagnosisPing bool
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    DnsHijackWhitelist string
    List of DNS hijacking configurations.
    DnsMatchRule string
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    DnsServer string

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    DnsType string
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    ExpectValue string

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    FailureRate string

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    Header string
    HTTP request header.
    HttpMethod string
    HTTP request method. Value:

    • get
    • post
    • head
    IsBaseEncode bool
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    MatchRule int
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    MinTlsVersion string
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    Password string
    The password of the SMTP, POP3, or FTP probe type.
    PingNum int
    The heartbeat of the PING probe type.
    PingPort int
    PING the port. Applies to TCP PING.
    PingType string
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    Port int
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    RequestContent string
    The request content of the HTTP probe type.
    RequestFormat string
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    ResponseContent string
    Match the response content.
    ResponseFormat string
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    Timeout int
    Timeout time. Unit: milliseconds.
    UserName string
    The username of FTP, SMTP, or pop3.
    assertions List<SiteMonitorOptionJsonAssertion>
    Assertion configuration group. See assertions below.
    attempts Integer
    Number of retries after DNS failed.
    cookie String
    The Cookie that sends the HTTP request.
    diagnosisMtr Boolean
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    diagnosisPing Boolean
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    dnsHijackWhitelist String
    List of DNS hijacking configurations.
    dnsMatchRule String
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    dnsServer String

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    dnsType String
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    expectValue String

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    failureRate String

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    header String
    HTTP request header.
    httpMethod String
    HTTP request method. Value:

    • get
    • post
    • head
    isBaseEncode Boolean
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    matchRule Integer
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    minTlsVersion String
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    password String
    The password of the SMTP, POP3, or FTP probe type.
    pingNum Integer
    The heartbeat of the PING probe type.
    pingPort Integer
    PING the port. Applies to TCP PING.
    pingType String
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    port Integer
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    requestContent String
    The request content of the HTTP probe type.
    requestFormat String
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    responseContent String
    Match the response content.
    responseFormat String
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    timeout Integer
    Timeout time. Unit: milliseconds.
    userName String
    The username of FTP, SMTP, or pop3.
    assertions SiteMonitorOptionJsonAssertion[]
    Assertion configuration group. See assertions below.
    attempts number
    Number of retries after DNS failed.
    cookie string
    The Cookie that sends the HTTP request.
    diagnosisMtr boolean
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    diagnosisPing boolean
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    dnsHijackWhitelist string
    List of DNS hijacking configurations.
    dnsMatchRule string
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    dnsServer string

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    dnsType string
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    expectValue string

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    failureRate string

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    header string
    HTTP request header.
    httpMethod string
    HTTP request method. Value:

    • get
    • post
    • head
    isBaseEncode boolean
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    matchRule number
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    minTlsVersion string
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    password string
    The password of the SMTP, POP3, or FTP probe type.
    pingNum number
    The heartbeat of the PING probe type.
    pingPort number
    PING the port. Applies to TCP PING.
    pingType string
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    port number
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    requestContent string
    The request content of the HTTP probe type.
    requestFormat string
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    responseContent string
    Match the response content.
    responseFormat string
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    timeout number
    Timeout time. Unit: milliseconds.
    userName string
    The username of FTP, SMTP, or pop3.
    assertions Sequence[SiteMonitorOptionJsonAssertion]
    Assertion configuration group. See assertions below.
    attempts int
    Number of retries after DNS failed.
    cookie str
    The Cookie that sends the HTTP request.
    diagnosis_mtr bool
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    diagnosis_ping bool
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    dns_hijack_whitelist str
    List of DNS hijacking configurations.
    dns_match_rule str
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    dns_server str

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    dns_type str
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    expect_value str

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    failure_rate str

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    header str
    HTTP request header.
    http_method str
    HTTP request method. Value:

    • get
    • post
    • head
    is_base_encode bool
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    match_rule int
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    min_tls_version str
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    password str
    The password of the SMTP, POP3, or FTP probe type.
    ping_num int
    The heartbeat of the PING probe type.
    ping_port int
    PING the port. Applies to TCP PING.
    ping_type str
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    port int
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    request_content str
    The request content of the HTTP probe type.
    request_format str
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    response_content str
    Match the response content.
    response_format str
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    timeout int
    Timeout time. Unit: milliseconds.
    user_name str
    The username of FTP, SMTP, or pop3.
    assertions List<Property Map>
    Assertion configuration group. See assertions below.
    attempts Number
    Number of retries after DNS failed.
    cookie String
    The Cookie that sends the HTTP request.
    diagnosisMtr Boolean
    Whether to enable automatic MTR network diagnosis after a task failure. Value:

    • false: does not enable automatic MTR network diagnosis.
    • true to turn on automatic MTR network diagnostics.
    diagnosisPing Boolean
    Whether to enable the automatic PING network delay detection after the task fails. Value:

    • false: does not enable automatic PING network delay detection.
    • true: Enable automatic PING network delay detection.
    dnsHijackWhitelist String
    List of DNS hijacking configurations.
    dnsMatchRule String
    Matching Rules for DNS. Value:

    • IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
    • DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
    • EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
    • ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
    dnsServer String

    The IP address of the DNS server.

    NOTE: only applicable to DNS probe types.

    dnsType String
    DNS resolution type. Only applicable to DNS probe types. Value:

    • A (default): specifies the IP address corresponding to the host name or domain name.
    • CNAME: maps multiple domain names to another domain name.
    • NS: specifies that the domain name is resolved by a DNS server.
    • MX: point domain name to a mail server address.
    • TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
    expectValue String

    The alias or address to be resolved.

    NOTE: This parameter applies only to DNS probe types.

    failureRate String

    Packet loss rate.

    NOTE: This parameter only applies to PING probe types.

    header String
    HTTP request header.
    httpMethod String
    HTTP request method. Value:

    • get
    • post
    • head
    isBaseEncode Boolean
    Whether the parameter' Password' is Base64 encoded.

    • true: Yes.
    • false: No.
    matchRule Number
    Whether alarm rules are included. Value:

    • 0: Yes.
    • 1: No.
    minTlsVersion String
    Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
    password String
    The password of the SMTP, POP3, or FTP probe type.
    pingNum Number
    The heartbeat of the PING probe type.
    pingPort Number
    PING the port. Applies to TCP PING.
    pingType String
    The PING protocol type. Value:

    • icmp
    • tcp
    • udp
    port Number
    Ports of TCP, UDP, SMTP, and POP3 probe types.
    requestContent String
    The request content of the HTTP probe type.
    requestFormat String
    HTTP request content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    responseContent String
    Match the response content.
    responseFormat String
    HTTP response content format. Value:

    • hex: hexadecimal format.
    • text: text format.
    timeout Number
    Timeout time. Unit: milliseconds.
    userName String
    The username of FTP, SMTP, or pop3.

    SiteMonitorOptionJsonAssertion, SiteMonitorOptionJsonAssertionArgs

    Operator string
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    Target string
    Assertion matches the target numeric value or character of the comparison.
    Type string
    Operator string
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    Target string
    Assertion matches the target numeric value or character of the comparison.
    Type string
    operator String
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    target String
    Assertion matches the target numeric value or character of the comparison.
    type String
    operator string
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    target string
    Assertion matches the target numeric value or character of the comparison.
    type string
    operator str
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    target str
    Assertion matches the target numeric value or character of the comparison.
    type str
    operator String
    Assertion comparison operator. Value:

    • contains: contains.
    • doesNotContain: does not contain.
    • matches: regular matching.
    • doesNotMatch: regular mismatch.
    • is: Numeric equals or character matches equals.
    • isNot: not equal.
    • Lesthan: less.
    • moreThan: Greater.
    target String
    Assertion matches the target numeric value or character of the comparison.
    type String

    Import

    Cloud Monitor Service Site Monitor can be imported using the id, e.g.

    $ pulumi import alicloud:cms/siteMonitor:SiteMonitor 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.
    alicloud logo
    Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate