1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. alidnscloudgtm
  6. MonitorTemplate
Viewing docs for Alibaba Cloud v3.101.0
published on Tuesday, Apr 28, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.101.0
published on Tuesday, Apr 28, 2026 by Pulumi

    Provides a Alidns Cloud Gtm Monitor Template resource.

    A Cloud GTM monitor template defines reusable health-check probe configurations (protocol, interval, failure thresholds, probe nodes) that can be attached to Cloud GTM address pools.

    For information about Alidns Cloud Gtm Monitor Template and how to use it, see What is Cloud Gtm Monitor Template.

    NOTE: Available since v1.277.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 = new alicloud.alidnscloudgtm.MonitorTemplate("default", {
        name: name,
        protocol: "http",
        ipVersion: "IPv4",
        interval: "60",
        timeout: "2000",
        evaluationCount: 2,
        failureRate: 50,
        extendInfo: JSON.stringify({
            code: 500,
            followRedirect: true,
            path: "/",
        }),
        remark: "terraform-example-remark",
        ispCityNodes: [
            {
                cityCode: "357",
                ispCode: "465",
            },
            {
                cityCode: "738",
                ispCode: "465",
            },
        ],
    });
    
    import pulumi
    import json
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.alidnscloudgtm.MonitorTemplate("default",
        name=name,
        protocol="http",
        ip_version="IPv4",
        interval="60",
        timeout="2000",
        evaluation_count=2,
        failure_rate=50,
        extend_info=json.dumps({
            "code": 500,
            "followRedirect": True,
            "path": "/",
        }),
        remark="terraform-example-remark",
        isp_city_nodes=[
            {
                "city_code": "357",
                "isp_code": "465",
            },
            {
                "city_code": "738",
                "isp_code": "465",
            },
        ])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alidnscloudgtm"
    	"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
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"code":           500,
    			"followRedirect": true,
    			"path":           "/",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = alidnscloudgtm.NewMonitorTemplate(ctx, "default", &alidnscloudgtm.MonitorTemplateArgs{
    			Name:            pulumi.String(pulumi.String(name)),
    			Protocol:        pulumi.String("http"),
    			IpVersion:       pulumi.String("IPv4"),
    			Interval:        pulumi.String("60"),
    			Timeout:         pulumi.String("2000"),
    			EvaluationCount: pulumi.Int(2),
    			FailureRate:     pulumi.Int(50),
    			ExtendInfo:      pulumi.String(pulumi.String(json0)),
    			Remark:          pulumi.String("terraform-example-remark"),
    			IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
    				&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
    					CityCode: pulumi.String("357"),
    					IspCode:  pulumi.String("465"),
    				},
    				&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
    					CityCode: pulumi.String("738"),
    					IspCode:  pulumi.String("465"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.AlidnsCloudGtm.MonitorTemplate("default", new()
        {
            Name = name,
            Protocol = "http",
            IpVersion = "IPv4",
            Interval = "60",
            Timeout = "2000",
            EvaluationCount = 2,
            FailureRate = 50,
            ExtendInfo = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["code"] = 500,
                ["followRedirect"] = true,
                ["path"] = "/",
            }),
            Remark = "terraform-example-remark",
            IspCityNodes = new[]
            {
                new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
                {
                    CityCode = "357",
                    IspCode = "465",
                },
                new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
                {
                    CityCode = "738",
                    IspCode = "465",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplate;
    import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplateArgs;
    import com.pulumi.alicloud.alidnscloudgtm.inputs.MonitorTemplateIspCityNodeArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 default_ = new MonitorTemplate("default", MonitorTemplateArgs.builder()
                .name(name)
                .protocol("http")
                .ipVersion("IPv4")
                .interval("60")
                .timeout("2000")
                .evaluationCount(2)
                .failureRate(50)
                .extendInfo(serializeJson(
                    jsonObject(
                        jsonProperty("code", 500),
                        jsonProperty("followRedirect", true),
                        jsonProperty("path", "/")
                    )))
                .remark("terraform-example-remark")
                .ispCityNodes(            
                    MonitorTemplateIspCityNodeArgs.builder()
                        .cityCode("357")
                        .ispCode("465")
                        .build(),
                    MonitorTemplateIspCityNodeArgs.builder()
                        .cityCode("738")
                        .ispCode("465")
                        .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:alidnscloudgtm:MonitorTemplate
        properties:
          name: ${name}
          protocol: http
          ipVersion: IPv4
          interval: '60'
          timeout: '2000'
          evaluationCount: 2
          failureRate: 50
          extendInfo:
            fn::toJSON:
              code: 500
              followRedirect: true
              path: /
          remark: terraform-example-remark
          ispCityNodes:
            - cityCode: '357'
              ispCode: '465'
            - cityCode: '738'
              ispCode: '465'
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create MonitorTemplate Resource

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

    Constructor syntax

    new MonitorTemplate(name: string, args: MonitorTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorTemplate(resource_name: str,
                        args: MonitorTemplateArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorTemplate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        evaluation_count: Optional[int] = None,
                        failure_rate: Optional[int] = None,
                        interval: Optional[str] = None,
                        ip_version: Optional[str] = None,
                        isp_city_nodes: Optional[Sequence[MonitorTemplateIspCityNodeArgs]] = None,
                        protocol: Optional[str] = None,
                        timeout: Optional[str] = None,
                        extend_info: Optional[str] = None,
                        name: Optional[str] = None,
                        remark: Optional[str] = None)
    func NewMonitorTemplate(ctx *Context, name string, args MonitorTemplateArgs, opts ...ResourceOption) (*MonitorTemplate, error)
    public MonitorTemplate(string name, MonitorTemplateArgs args, CustomResourceOptions? opts = null)
    public MonitorTemplate(String name, MonitorTemplateArgs args)
    public MonitorTemplate(String name, MonitorTemplateArgs args, CustomResourceOptions options)
    
    type: alicloud:alidnscloudgtm:MonitorTemplate
    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 MonitorTemplateArgs
    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 MonitorTemplateArgs
    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 MonitorTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorTemplateArgs
    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 monitorTemplateResource = new AliCloud.AlidnsCloudGtm.MonitorTemplate("monitorTemplateResource", new()
    {
        EvaluationCount = 0,
        FailureRate = 0,
        Interval = "string",
        IpVersion = "string",
        IspCityNodes = new[]
        {
            new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
            {
                CityCode = "string",
                IspCode = "string",
            },
        },
        Protocol = "string",
        Timeout = "string",
        ExtendInfo = "string",
        Name = "string",
        Remark = "string",
    });
    
    example, err := alidnscloudgtm.NewMonitorTemplate(ctx, "monitorTemplateResource", &alidnscloudgtm.MonitorTemplateArgs{
    	EvaluationCount: pulumi.Int(0),
    	FailureRate:     pulumi.Int(0),
    	Interval:        pulumi.String("string"),
    	IpVersion:       pulumi.String("string"),
    	IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
    		&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
    			CityCode: pulumi.String("string"),
    			IspCode:  pulumi.String("string"),
    		},
    	},
    	Protocol:   pulumi.String("string"),
    	Timeout:    pulumi.String("string"),
    	ExtendInfo: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Remark:     pulumi.String("string"),
    })
    
    var monitorTemplateResource = new MonitorTemplate("monitorTemplateResource", MonitorTemplateArgs.builder()
        .evaluationCount(0)
        .failureRate(0)
        .interval("string")
        .ipVersion("string")
        .ispCityNodes(MonitorTemplateIspCityNodeArgs.builder()
            .cityCode("string")
            .ispCode("string")
            .build())
        .protocol("string")
        .timeout("string")
        .extendInfo("string")
        .name("string")
        .remark("string")
        .build());
    
    monitor_template_resource = alicloud.alidnscloudgtm.MonitorTemplate("monitorTemplateResource",
        evaluation_count=0,
        failure_rate=0,
        interval="string",
        ip_version="string",
        isp_city_nodes=[{
            "city_code": "string",
            "isp_code": "string",
        }],
        protocol="string",
        timeout="string",
        extend_info="string",
        name="string",
        remark="string")
    
    const monitorTemplateResource = new alicloud.alidnscloudgtm.MonitorTemplate("monitorTemplateResource", {
        evaluationCount: 0,
        failureRate: 0,
        interval: "string",
        ipVersion: "string",
        ispCityNodes: [{
            cityCode: "string",
            ispCode: "string",
        }],
        protocol: "string",
        timeout: "string",
        extendInfo: "string",
        name: "string",
        remark: "string",
    });
    
    type: alicloud:alidnscloudgtm:MonitorTemplate
    properties:
        evaluationCount: 0
        extendInfo: string
        failureRate: 0
        interval: string
        ipVersion: string
        ispCityNodes:
            - cityCode: string
              ispCode: string
        name: string
        protocol: string
        remark: string
        timeout: string
    

    MonitorTemplate 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 MonitorTemplate resource accepts the following input properties:

    EvaluationCount int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    FailureRate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    Interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    IpVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    IspCityNodes List<Pulumi.AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNode>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    Protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    Timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    ExtendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    Name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    Remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    EvaluationCount int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    FailureRate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    Interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    IpVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    IspCityNodes []MonitorTemplateIspCityNodeArgs
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    Protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    Timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    ExtendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    Name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    Remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    evaluationCount Integer
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    failureRate Integer
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval String
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion String
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes List<MonitorTemplateIspCityNode>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    protocol String
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    timeout String
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    extendInfo String
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    name String
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    remark String
    The remark of the monitor template. Passing an empty value clears the existing remark.
    evaluationCount number
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    failureRate number
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes MonitorTemplateIspCityNode[]
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    extendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    evaluation_count int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    failure_rate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval str
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ip_version str
    The IP version of the probing node. Valid values: IPv4, IPv6.
    isp_city_nodes Sequence[MonitorTemplateIspCityNodeArgs]
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    protocol str
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    timeout str
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    extend_info str
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    name str
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    remark str
    The remark of the monitor template. Passing an empty value clears the existing remark.
    evaluationCount Number
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    failureRate Number
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval String
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion String
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes List<Property Map>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    protocol String
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    timeout String
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    extendInfo String
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    name String
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    remark String
    The remark of the monitor template. Passing an empty value clears the existing remark.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitorTemplate 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 MonitorTemplate Resource

    Get an existing MonitorTemplate 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?: MonitorTemplateState, opts?: CustomResourceOptions): MonitorTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            evaluation_count: Optional[int] = None,
            extend_info: Optional[str] = None,
            failure_rate: Optional[int] = None,
            interval: Optional[str] = None,
            ip_version: Optional[str] = None,
            isp_city_nodes: Optional[Sequence[MonitorTemplateIspCityNodeArgs]] = None,
            name: Optional[str] = None,
            protocol: Optional[str] = None,
            remark: Optional[str] = None,
            timeout: Optional[str] = None) -> MonitorTemplate
    func GetMonitorTemplate(ctx *Context, name string, id IDInput, state *MonitorTemplateState, opts ...ResourceOption) (*MonitorTemplate, error)
    public static MonitorTemplate Get(string name, Input<string> id, MonitorTemplateState? state, CustomResourceOptions? opts = null)
    public static MonitorTemplate get(String name, Output<String> id, MonitorTemplateState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:alidnscloudgtm:MonitorTemplate    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:
    EvaluationCount int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    ExtendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    FailureRate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    Interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    IpVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    IspCityNodes List<Pulumi.AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNode>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    Name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    Protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    Remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    Timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    EvaluationCount int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    ExtendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    FailureRate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    Interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    IpVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    IspCityNodes []MonitorTemplateIspCityNodeArgs
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    Name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    Protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    Remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    Timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    evaluationCount Integer
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    extendInfo String
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    failureRate Integer
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval String
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion String
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes List<MonitorTemplateIspCityNode>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    name String
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    protocol String
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    remark String
    The remark of the monitor template. Passing an empty value clears the existing remark.
    timeout String
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    evaluationCount number
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    extendInfo string
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    failureRate number
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval string
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion string
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes MonitorTemplateIspCityNode[]
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    name string
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    protocol string
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    remark string
    The remark of the monitor template. Passing an empty value clears the existing remark.
    timeout string
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    evaluation_count int
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    extend_info str
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    failure_rate int
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval str
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ip_version str
    The IP version of the probing node. Valid values: IPv4, IPv6.
    isp_city_nodes Sequence[MonitorTemplateIspCityNodeArgs]
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    name str
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    protocol str
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    remark str
    The remark of the monitor template. Passing an empty value clears the existing remark.
    timeout str
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.
    evaluationCount Number
    The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values: 0, 1, 2, 3.
    extendInfo String
    A JSON string containing protocol-specific probe configuration. The supported keys depend on protocol. See extendInfo below.
    failureRate Number
    The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values: 0, 20, 50, 80, 100.
    interval String
    The interval between consecutive probes, in seconds. Valid values: 15, 60, 300, 900, 1800, 3600. The 15 seconds interval is only available for Flagship Edition instances.
    ipVersion String
    The IP version of the probing node. Valid values: IPv4, IPv6.
    ispCityNodes List<Property Map>
    The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available cityCode / ispCode combinations. See ispCityNodes below.
    name String
    The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
    protocol String
    The probing protocol of the template. Valid values: ping, tcp, http, https.
    remark String
    The remark of the monitor template. Passing an empty value clears the existing remark.
    timeout String
    Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values: 2000, 3000, 5000, 10000.

    Supporting Types

    MonitorTemplateIspCityNode, MonitorTemplateIspCityNodeArgs

    CityCode string
    The city code of the monitoring node.
    IspCode string
    The ISP (Internet Service Provider) code of the monitoring node.
    CityCode string
    The city code of the monitoring node.
    IspCode string
    The ISP (Internet Service Provider) code of the monitoring node.
    cityCode String
    The city code of the monitoring node.
    ispCode String
    The ISP (Internet Service Provider) code of the monitoring node.
    cityCode string
    The city code of the monitoring node.
    ispCode string
    The ISP (Internet Service Provider) code of the monitoring node.
    city_code str
    The city code of the monitoring node.
    isp_code str
    The ISP (Internet Service Provider) code of the monitoring node.
    cityCode String
    The city code of the monitoring node.
    ispCode String
    The ISP (Internet Service Provider) code of the monitoring node.

    Import

    Alidns Cloud Gtm Monitor Template can be imported using the id, e.g.

    $ pulumi import alicloud:alidnscloudgtm/monitorTemplate:MonitorTemplate example <template_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
    Viewing docs for Alibaba Cloud v3.101.0
    published on Tuesday, Apr 28, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.