1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. MonitorConfig
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.dns.MonitorConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a DNS Monitor Config resource.

    For information about DNS Monitor Config and how to use it, see What is Monitor Config.

    NOTE: Available since v1.153.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") || "tf_example";
    const domainName = config.get("domainName") || "alicloud-provider.com";
    const default = alicloud.resourcemanager.getResourceGroups({});
    const defaultAlarmContactGroup = new alicloud.cms.AlarmContactGroup("default", {alarmContactGroupName: name});
    const defaultGtmInstance = new alicloud.dns.GtmInstance("default", {
        instanceName: name,
        paymentType: "Subscription",
        period: 1,
        renewalStatus: "ManualRenewal",
        packageEdition: "standard",
        healthCheckTaskCount: 100,
        smsNotificationCount: 1000,
        publicCnameMode: "SYSTEM_ASSIGN",
        ttl: 60,
        cnameType: "PUBLIC",
        resourceGroupId: _default.then(_default => _default.groups?.[0]?.id),
        alertGroups: [defaultAlarmContactGroup.alarmContactGroupName],
        publicUserDomainName: domainName,
        alertConfigs: [{
            smsNotice: true,
            noticeType: "ADDR_ALERT",
            emailNotice: true,
            dingtalkNotice: true,
        }],
    });
    const defaultAddressPool = new alicloud.dns.AddressPool("default", {
        addressPoolName: name,
        instanceId: defaultGtmInstance.id,
        lbaStrategy: "RATIO",
        type: "IPV4",
        addresses: [{
            attributeInfo: "{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
            remark: "address_remark",
            address: "1.1.1.1",
            mode: "SMART",
            lbaWeight: 1,
        }],
    });
    const defaultMonitorConfig = new alicloud.dns.MonitorConfig("default", {
        addrPoolId: defaultAddressPool.id,
        evaluationCount: 1,
        interval: 60,
        timeout: 5000,
        protocolType: "TCP",
        monitorExtendInfo: "{\"failureRate\":50,\"port\":80}",
        ispCityNodes: [{
            cityCode: "503",
            ispCode: "465",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    domain_name = config.get("domainName")
    if domain_name is None:
        domain_name = "alicloud-provider.com"
    default = alicloud.resourcemanager.get_resource_groups()
    default_alarm_contact_group = alicloud.cms.AlarmContactGroup("default", alarm_contact_group_name=name)
    default_gtm_instance = alicloud.dns.GtmInstance("default",
        instance_name=name,
        payment_type="Subscription",
        period=1,
        renewal_status="ManualRenewal",
        package_edition="standard",
        health_check_task_count=100,
        sms_notification_count=1000,
        public_cname_mode="SYSTEM_ASSIGN",
        ttl=60,
        cname_type="PUBLIC",
        resource_group_id=default.groups[0].id,
        alert_groups=[default_alarm_contact_group.alarm_contact_group_name],
        public_user_domain_name=domain_name,
        alert_configs=[alicloud.dns.GtmInstanceAlertConfigArgs(
            sms_notice=True,
            notice_type="ADDR_ALERT",
            email_notice=True,
            dingtalk_notice=True,
        )])
    default_address_pool = alicloud.dns.AddressPool("default",
        address_pool_name=name,
        instance_id=default_gtm_instance.id,
        lba_strategy="RATIO",
        type="IPV4",
        addresses=[alicloud.dns.AddressPoolAddressArgs(
            attribute_info="{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
            remark="address_remark",
            address="1.1.1.1",
            mode="SMART",
            lba_weight=1,
        )])
    default_monitor_config = alicloud.dns.MonitorConfig("default",
        addr_pool_id=default_address_pool.id,
        evaluation_count=1,
        interval=60,
        timeout=5000,
        protocol_type="TCP",
        monitor_extend_info="{\"failureRate\":50,\"port\":80}",
        isp_city_nodes=[alicloud.dns.MonitorConfigIspCityNodeArgs(
            city_code="503",
            isp_code="465",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		domainName := "alicloud-provider.com"
    		if param := cfg.Get("domainName"); param != "" {
    			domainName = param
    		}
    		_default, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultAlarmContactGroup, err := cms.NewAlarmContactGroup(ctx, "default", &cms.AlarmContactGroupArgs{
    			AlarmContactGroupName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultGtmInstance, err := dns.NewGtmInstance(ctx, "default", &dns.GtmInstanceArgs{
    			InstanceName:         pulumi.String(name),
    			PaymentType:          pulumi.String("Subscription"),
    			Period:               pulumi.Int(1),
    			RenewalStatus:        pulumi.String("ManualRenewal"),
    			PackageEdition:       pulumi.String("standard"),
    			HealthCheckTaskCount: pulumi.Int(100),
    			SmsNotificationCount: pulumi.Int(1000),
    			PublicCnameMode:      pulumi.String("SYSTEM_ASSIGN"),
    			Ttl:                  pulumi.Int(60),
    			CnameType:            pulumi.String("PUBLIC"),
    			ResourceGroupId:      pulumi.String(_default.Groups[0].Id),
    			AlertGroups: pulumi.StringArray{
    				defaultAlarmContactGroup.AlarmContactGroupName,
    			},
    			PublicUserDomainName: pulumi.String(domainName),
    			AlertConfigs: dns.GtmInstanceAlertConfigArray{
    				&dns.GtmInstanceAlertConfigArgs{
    					SmsNotice:      pulumi.Bool(true),
    					NoticeType:     pulumi.String("ADDR_ALERT"),
    					EmailNotice:    pulumi.Bool(true),
    					DingtalkNotice: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultAddressPool, err := dns.NewAddressPool(ctx, "default", &dns.AddressPoolArgs{
    			AddressPoolName: pulumi.String(name),
    			InstanceId:      defaultGtmInstance.ID(),
    			LbaStrategy:     pulumi.String("RATIO"),
    			Type:            pulumi.String("IPV4"),
    			Addresses: dns.AddressPoolAddressArray{
    				&dns.AddressPoolAddressArgs{
    					AttributeInfo: pulumi.String("{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}"),
    					Remark:        pulumi.String("address_remark"),
    					Address:       pulumi.String("1.1.1.1"),
    					Mode:          pulumi.String("SMART"),
    					LbaWeight:     pulumi.Int(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dns.NewMonitorConfig(ctx, "default", &dns.MonitorConfigArgs{
    			AddrPoolId:        defaultAddressPool.ID(),
    			EvaluationCount:   pulumi.Int(1),
    			Interval:          pulumi.Int(60),
    			Timeout:           pulumi.Int(5000),
    			ProtocolType:      pulumi.String("TCP"),
    			MonitorExtendInfo: pulumi.String("{\"failureRate\":50,\"port\":80}"),
    			IspCityNodes: dns.MonitorConfigIspCityNodeArray{
    				&dns.MonitorConfigIspCityNodeArgs{
    					CityCode: pulumi.String("503"),
    					IspCode:  pulumi.String("465"),
    				},
    			},
    		})
    		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") ?? "tf_example";
        var domainName = config.Get("domainName") ?? "alicloud-provider.com";
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultAlarmContactGroup = new AliCloud.Cms.AlarmContactGroup("default", new()
        {
            AlarmContactGroupName = name,
        });
    
        var defaultGtmInstance = new AliCloud.Dns.GtmInstance("default", new()
        {
            InstanceName = name,
            PaymentType = "Subscription",
            Period = 1,
            RenewalStatus = "ManualRenewal",
            PackageEdition = "standard",
            HealthCheckTaskCount = 100,
            SmsNotificationCount = 1000,
            PublicCnameMode = "SYSTEM_ASSIGN",
            Ttl = 60,
            CnameType = "PUBLIC",
            ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id)),
            AlertGroups = new[]
            {
                defaultAlarmContactGroup.AlarmContactGroupName,
            },
            PublicUserDomainName = domainName,
            AlertConfigs = new[]
            {
                new AliCloud.Dns.Inputs.GtmInstanceAlertConfigArgs
                {
                    SmsNotice = true,
                    NoticeType = "ADDR_ALERT",
                    EmailNotice = true,
                    DingtalkNotice = true,
                },
            },
        });
    
        var defaultAddressPool = new AliCloud.Dns.AddressPool("default", new()
        {
            AddressPoolName = name,
            InstanceId = defaultGtmInstance.Id,
            LbaStrategy = "RATIO",
            Type = "IPV4",
            Addresses = new[]
            {
                new AliCloud.Dns.Inputs.AddressPoolAddressArgs
                {
                    AttributeInfo = "{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
                    Remark = "address_remark",
                    Address = "1.1.1.1",
                    Mode = "SMART",
                    LbaWeight = 1,
                },
            },
        });
    
        var defaultMonitorConfig = new AliCloud.Dns.MonitorConfig("default", new()
        {
            AddrPoolId = defaultAddressPool.Id,
            EvaluationCount = 1,
            Interval = 60,
            Timeout = 5000,
            ProtocolType = "TCP",
            MonitorExtendInfo = "{\"failureRate\":50,\"port\":80}",
            IspCityNodes = new[]
            {
                new AliCloud.Dns.Inputs.MonitorConfigIspCityNodeArgs
                {
                    CityCode = "503",
                    IspCode = "465",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.cms.AlarmContactGroup;
    import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
    import com.pulumi.alicloud.dns.GtmInstance;
    import com.pulumi.alicloud.dns.GtmInstanceArgs;
    import com.pulumi.alicloud.dns.inputs.GtmInstanceAlertConfigArgs;
    import com.pulumi.alicloud.dns.AddressPool;
    import com.pulumi.alicloud.dns.AddressPoolArgs;
    import com.pulumi.alicloud.dns.inputs.AddressPoolAddressArgs;
    import com.pulumi.alicloud.dns.MonitorConfig;
    import com.pulumi.alicloud.dns.MonitorConfigArgs;
    import com.pulumi.alicloud.dns.inputs.MonitorConfigIspCityNodeArgs;
    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("tf_example");
            final var domainName = config.get("domainName").orElse("alicloud-provider.com");
            final var default = ResourcemanagerFunctions.getResourceGroups();
    
            var defaultAlarmContactGroup = new AlarmContactGroup("defaultAlarmContactGroup", AlarmContactGroupArgs.builder()
                .alarmContactGroupName(name)
                .build());
    
            var defaultGtmInstance = new GtmInstance("defaultGtmInstance", GtmInstanceArgs.builder()
                .instanceName(name)
                .paymentType("Subscription")
                .period(1)
                .renewalStatus("ManualRenewal")
                .packageEdition("standard")
                .healthCheckTaskCount(100)
                .smsNotificationCount(1000)
                .publicCnameMode("SYSTEM_ASSIGN")
                .ttl(60)
                .cnameType("PUBLIC")
                .resourceGroupId(default_.groups()[0].id())
                .alertGroups(defaultAlarmContactGroup.alarmContactGroupName())
                .publicUserDomainName(domainName)
                .alertConfigs(GtmInstanceAlertConfigArgs.builder()
                    .smsNotice(true)
                    .noticeType("ADDR_ALERT")
                    .emailNotice(true)
                    .dingtalkNotice(true)
                    .build())
                .build());
    
            var defaultAddressPool = new AddressPool("defaultAddressPool", AddressPoolArgs.builder()
                .addressPoolName(name)
                .instanceId(defaultGtmInstance.id())
                .lbaStrategy("RATIO")
                .type("IPV4")
                .addresses(AddressPoolAddressArgs.builder()
                    .attributeInfo("{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}")
                    .remark("address_remark")
                    .address("1.1.1.1")
                    .mode("SMART")
                    .lbaWeight(1)
                    .build())
                .build());
    
            var defaultMonitorConfig = new MonitorConfig("defaultMonitorConfig", MonitorConfigArgs.builder()
                .addrPoolId(defaultAddressPool.id())
                .evaluationCount("1")
                .interval("60")
                .timeout("5000")
                .protocolType("TCP")
                .monitorExtendInfo("{\"failureRate\":50,\"port\":80}")
                .ispCityNodes(MonitorConfigIspCityNodeArgs.builder()
                    .cityCode("503")
                    .ispCode("465")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
      domainName:
        type: string
        default: alicloud-provider.com
    resources:
      defaultAlarmContactGroup:
        type: alicloud:cms:AlarmContactGroup
        name: default
        properties:
          alarmContactGroupName: ${name}
      defaultGtmInstance:
        type: alicloud:dns:GtmInstance
        name: default
        properties:
          instanceName: ${name}
          paymentType: Subscription
          period: 1
          renewalStatus: ManualRenewal
          packageEdition: standard
          healthCheckTaskCount: 100
          smsNotificationCount: 1000
          publicCnameMode: SYSTEM_ASSIGN
          ttl: 60
          cnameType: PUBLIC
          resourceGroupId: ${default.groups[0].id}
          alertGroups:
            - ${defaultAlarmContactGroup.alarmContactGroupName}
          publicUserDomainName: ${domainName}
          alertConfigs:
            - smsNotice: true
              noticeType: ADDR_ALERT
              emailNotice: true
              dingtalkNotice: true
      defaultAddressPool:
        type: alicloud:dns:AddressPool
        name: default
        properties:
          addressPoolName: ${name}
          instanceId: ${defaultGtmInstance.id}
          lbaStrategy: RATIO
          type: IPV4
          addresses:
            - attributeInfo: '{"lineCodeRectifyType":"RECTIFIED","lineCodes":["os_namerica_us"]}'
              remark: address_remark
              address: 1.1.1.1
              mode: SMART
              lbaWeight: 1
      defaultMonitorConfig:
        type: alicloud:dns:MonitorConfig
        name: default
        properties:
          addrPoolId: ${defaultAddressPool.id}
          evaluationCount: '1'
          interval: '60'
          timeout: '5000'
          protocolType: TCP
          monitorExtendInfo: '{"failureRate":50,"port":80}'
          ispCityNodes:
            - cityCode: '503'
              ispCode: '465'
    variables:
      default:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments: {}
    

    Create MonitorConfig Resource

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

    Constructor syntax

    new MonitorConfig(name: string, args: MonitorConfigArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorConfig(resource_name: str,
                      args: MonitorConfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      addr_pool_id: Optional[str] = None,
                      evaluation_count: Optional[int] = None,
                      interval: Optional[int] = None,
                      isp_city_nodes: Optional[Sequence[MonitorConfigIspCityNodeArgs]] = None,
                      monitor_extend_info: Optional[str] = None,
                      protocol_type: Optional[str] = None,
                      timeout: Optional[int] = None,
                      lang: Optional[str] = None)
    func NewMonitorConfig(ctx *Context, name string, args MonitorConfigArgs, opts ...ResourceOption) (*MonitorConfig, error)
    public MonitorConfig(string name, MonitorConfigArgs args, CustomResourceOptions? opts = null)
    public MonitorConfig(String name, MonitorConfigArgs args)
    public MonitorConfig(String name, MonitorConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:dns:MonitorConfig
    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 MonitorConfigArgs
    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 MonitorConfigArgs
    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 MonitorConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorConfigArgs
    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 monitorConfigResource = new AliCloud.Dns.MonitorConfig("monitorConfigResource", new()
    {
        AddrPoolId = "string",
        EvaluationCount = 0,
        Interval = 0,
        IspCityNodes = new[]
        {
            new AliCloud.Dns.Inputs.MonitorConfigIspCityNodeArgs
            {
                CityCode = "string",
                IspCode = "string",
            },
        },
        MonitorExtendInfo = "string",
        ProtocolType = "string",
        Timeout = 0,
        Lang = "string",
    });
    
    example, err := dns.NewMonitorConfig(ctx, "monitorConfigResource", &dns.MonitorConfigArgs{
    	AddrPoolId:      pulumi.String("string"),
    	EvaluationCount: pulumi.Int(0),
    	Interval:        pulumi.Int(0),
    	IspCityNodes: dns.MonitorConfigIspCityNodeArray{
    		&dns.MonitorConfigIspCityNodeArgs{
    			CityCode: pulumi.String("string"),
    			IspCode:  pulumi.String("string"),
    		},
    	},
    	MonitorExtendInfo: pulumi.String("string"),
    	ProtocolType:      pulumi.String("string"),
    	Timeout:           pulumi.Int(0),
    	Lang:              pulumi.String("string"),
    })
    
    var monitorConfigResource = new MonitorConfig("monitorConfigResource", MonitorConfigArgs.builder()
        .addrPoolId("string")
        .evaluationCount(0)
        .interval(0)
        .ispCityNodes(MonitorConfigIspCityNodeArgs.builder()
            .cityCode("string")
            .ispCode("string")
            .build())
        .monitorExtendInfo("string")
        .protocolType("string")
        .timeout(0)
        .lang("string")
        .build());
    
    monitor_config_resource = alicloud.dns.MonitorConfig("monitorConfigResource",
        addr_pool_id="string",
        evaluation_count=0,
        interval=0,
        isp_city_nodes=[alicloud.dns.MonitorConfigIspCityNodeArgs(
            city_code="string",
            isp_code="string",
        )],
        monitor_extend_info="string",
        protocol_type="string",
        timeout=0,
        lang="string")
    
    const monitorConfigResource = new alicloud.dns.MonitorConfig("monitorConfigResource", {
        addrPoolId: "string",
        evaluationCount: 0,
        interval: 0,
        ispCityNodes: [{
            cityCode: "string",
            ispCode: "string",
        }],
        monitorExtendInfo: "string",
        protocolType: "string",
        timeout: 0,
        lang: "string",
    });
    
    type: alicloud:dns:MonitorConfig
    properties:
        addrPoolId: string
        evaluationCount: 0
        interval: 0
        ispCityNodes:
            - cityCode: string
              ispCode: string
        lang: string
        monitorExtendInfo: string
        protocolType: string
        timeout: 0
    

    MonitorConfig Resource Properties

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

    Inputs

    The MonitorConfig resource accepts the following input properties:

    AddrPoolId string
    The ID of the address pool.
    EvaluationCount int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    Interval int
    The health check interval. Unit: seconds. Valid values: 60.
    IspCityNodes List<Pulumi.AliCloud.Dns.Inputs.MonitorConfigIspCityNode>
    The Monitoring node. See isp_city_node below for details.
    MonitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    ProtocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    Timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    Lang string
    The lang.
    AddrPoolId string
    The ID of the address pool.
    EvaluationCount int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    Interval int
    The health check interval. Unit: seconds. Valid values: 60.
    IspCityNodes []MonitorConfigIspCityNodeArgs
    The Monitoring node. See isp_city_node below for details.
    MonitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    ProtocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    Timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    Lang string
    The lang.
    addrPoolId String
    The ID of the address pool.
    evaluationCount Integer
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval Integer
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes List<MonitorConfigIspCityNode>
    The Monitoring node. See isp_city_node below for details.
    monitorExtendInfo String
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType String
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout Integer
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    lang String
    The lang.
    addrPoolId string
    The ID of the address pool.
    evaluationCount number
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval number
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes MonitorConfigIspCityNode[]
    The Monitoring node. See isp_city_node below for details.
    monitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout number
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    lang string
    The lang.
    addr_pool_id str
    The ID of the address pool.
    evaluation_count int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval int
    The health check interval. Unit: seconds. Valid values: 60.
    isp_city_nodes Sequence[MonitorConfigIspCityNodeArgs]
    The Monitoring node. See isp_city_node below for details.
    monitor_extend_info str
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocol_type str
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    lang str
    The lang.
    addrPoolId String
    The ID of the address pool.
    evaluationCount Number
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval Number
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes List<Property Map>
    The Monitoring node. See isp_city_node below for details.
    monitorExtendInfo String
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType String
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout Number
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    lang String
    The lang.

    Outputs

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

    Get an existing MonitorConfig 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?: MonitorConfigState, opts?: CustomResourceOptions): MonitorConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addr_pool_id: Optional[str] = None,
            evaluation_count: Optional[int] = None,
            interval: Optional[int] = None,
            isp_city_nodes: Optional[Sequence[MonitorConfigIspCityNodeArgs]] = None,
            lang: Optional[str] = None,
            monitor_extend_info: Optional[str] = None,
            protocol_type: Optional[str] = None,
            timeout: Optional[int] = None) -> MonitorConfig
    func GetMonitorConfig(ctx *Context, name string, id IDInput, state *MonitorConfigState, opts ...ResourceOption) (*MonitorConfig, error)
    public static MonitorConfig Get(string name, Input<string> id, MonitorConfigState? state, CustomResourceOptions? opts = null)
    public static MonitorConfig get(String name, Output<String> id, MonitorConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AddrPoolId string
    The ID of the address pool.
    EvaluationCount int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    Interval int
    The health check interval. Unit: seconds. Valid values: 60.
    IspCityNodes List<Pulumi.AliCloud.Dns.Inputs.MonitorConfigIspCityNode>
    The Monitoring node. See isp_city_node below for details.
    Lang string
    The lang.
    MonitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    ProtocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    Timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    AddrPoolId string
    The ID of the address pool.
    EvaluationCount int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    Interval int
    The health check interval. Unit: seconds. Valid values: 60.
    IspCityNodes []MonitorConfigIspCityNodeArgs
    The Monitoring node. See isp_city_node below for details.
    Lang string
    The lang.
    MonitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    ProtocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    Timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    addrPoolId String
    The ID of the address pool.
    evaluationCount Integer
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval Integer
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes List<MonitorConfigIspCityNode>
    The Monitoring node. See isp_city_node below for details.
    lang String
    The lang.
    monitorExtendInfo String
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType String
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout Integer
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    addrPoolId string
    The ID of the address pool.
    evaluationCount number
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval number
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes MonitorConfigIspCityNode[]
    The Monitoring node. See isp_city_node below for details.
    lang string
    The lang.
    monitorExtendInfo string
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType string
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout number
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    addr_pool_id str
    The ID of the address pool.
    evaluation_count int
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval int
    The health check interval. Unit: seconds. Valid values: 60.
    isp_city_nodes Sequence[MonitorConfigIspCityNodeArgs]
    The Monitoring node. See isp_city_node below for details.
    lang str
    The lang.
    monitor_extend_info str
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocol_type str
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout int
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.
    addrPoolId String
    The ID of the address pool.
    evaluationCount Number
    The number of consecutive times of failed health check attempts. Valid values: 1, 2, 3.
    interval Number
    The health check interval. Unit: seconds. Valid values: 60.
    ispCityNodes List<Property Map>
    The Monitoring node. See isp_city_node below for details.
    lang String
    The lang.
    monitorExtendInfo String
    The extended information. This value follows the json format. For more details, see the description of MonitorExtendInfo in the Request parameters table for details.
    protocolType String
    The health check protocol. Valid values: HTTP, HTTPS, PING, TCP.
    timeout Number
    The timeout period. Unit: milliseconds. Valid values: 2000, 3000, 5000, 10000.

    Supporting Types

    MonitorConfigIspCityNode, MonitorConfigIspCityNodeArgs

    CityCode string
    The code of the city node to monitor.
    IspCode string
    The code of the Internet provider service (ISP) node to monitor.
    CityCode string
    The code of the city node to monitor.
    IspCode string
    The code of the Internet provider service (ISP) node to monitor.
    cityCode String
    The code of the city node to monitor.
    ispCode String
    The code of the Internet provider service (ISP) node to monitor.
    cityCode string
    The code of the city node to monitor.
    ispCode string
    The code of the Internet provider service (ISP) node to monitor.
    city_code str
    The code of the city node to monitor.
    isp_code str
    The code of the Internet provider service (ISP) node to monitor.
    cityCode String
    The code of the city node to monitor.
    ispCode String
    The code of the Internet provider service (ISP) node to monitor.

    Import

    DNS Monitor Config can be imported using the id, e.g.

    $ pulumi import alicloud:dns/monitorConfig:MonitorConfig 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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi