1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. alidnscloudgtm
  6. InstanceConfig
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 Instance Config resource.

    CloudGtm Instance Configuration .

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

    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.dns.AlidnsDomain("default", {domainName: `${name}.abc`});
    const defaultInstanceConfig = new alicloud.alidnscloudgtm.InstanceConfig("default", {
        addressPoolLbStrategy: "sequence",
        scheduleRrType: "A",
        scheduleZoneName: _default.domainName,
        enableStatus: "disable",
        scheduleHostName: "example",
        scheduleZoneMode: "custom",
        ttl: 600,
        sequenceLbStrategyMode: "preemptive",
        remark: "remark",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.dns.AlidnsDomain("default", domain_name=f"{name}.abc")
    default_instance_config = alicloud.alidnscloudgtm.InstanceConfig("default",
        address_pool_lb_strategy="sequence",
        schedule_rr_type="A",
        schedule_zone_name=default.domain_name,
        enable_status="disable",
        schedule_host_name="example",
        schedule_zone_mode="custom",
        ttl=600,
        sequence_lb_strategy_mode="preemptive",
        remark="remark")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alidnscloudgtm"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := dns.NewAlidnsDomain(ctx, "default", &dns.AlidnsDomainArgs{
    			DomainName: pulumi.Sprintf("%v.abc", name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alidnscloudgtm.NewInstanceConfig(ctx, "default", &alidnscloudgtm.InstanceConfigArgs{
    			AddressPoolLbStrategy:  pulumi.String("sequence"),
    			ScheduleRrType:         pulumi.String("A"),
    			ScheduleZoneName:       _default.DomainName,
    			EnableStatus:           pulumi.String("disable"),
    			ScheduleHostName:       pulumi.String("example"),
    			ScheduleZoneMode:       pulumi.String("custom"),
    			Ttl:                    pulumi.Int(600),
    			SequenceLbStrategyMode: pulumi.String("preemptive"),
    			Remark:                 pulumi.String("remark"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Dns.AlidnsDomain("default", new()
        {
            DomainName = $"{name}.abc",
        });
    
        var defaultInstanceConfig = new AliCloud.AlidnsCloudGtm.InstanceConfig("default", new()
        {
            AddressPoolLbStrategy = "sequence",
            ScheduleRrType = "A",
            ScheduleZoneName = @default.DomainName,
            EnableStatus = "disable",
            ScheduleHostName = "example",
            ScheduleZoneMode = "custom",
            Ttl = 600,
            SequenceLbStrategyMode = "preemptive",
            Remark = "remark",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dns.AlidnsDomain;
    import com.pulumi.alicloud.dns.AlidnsDomainArgs;
    import com.pulumi.alicloud.alidnscloudgtm.InstanceConfig;
    import com.pulumi.alicloud.alidnscloudgtm.InstanceConfigArgs;
    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 AlidnsDomain("default", AlidnsDomainArgs.builder()
                .domainName(String.format("%s.abc", name))
                .build());
    
            var defaultInstanceConfig = new InstanceConfig("defaultInstanceConfig", InstanceConfigArgs.builder()
                .addressPoolLbStrategy("sequence")
                .scheduleRrType("A")
                .scheduleZoneName(default_.domainName())
                .enableStatus("disable")
                .scheduleHostName("example")
                .scheduleZoneMode("custom")
                .ttl(600)
                .sequenceLbStrategyMode("preemptive")
                .remark("remark")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:dns:AlidnsDomain
        properties:
          domainName: ${name}.abc
      defaultInstanceConfig:
        type: alicloud:alidnscloudgtm:InstanceConfig
        name: default
        properties:
          addressPoolLbStrategy: sequence
          scheduleRrType: A
          scheduleZoneName: ${default.domainName}
          enableStatus: disable
          scheduleHostName: example
          scheduleZoneMode: custom
          ttl: '600'
          sequenceLbStrategyMode: preemptive
          remark: remark
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create InstanceConfig Resource

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

    Constructor syntax

    new InstanceConfig(name: string, args: InstanceConfigArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceConfig(resource_name: str,
                       args: InstanceConfigArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceConfig(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       enable_status: Optional[str] = None,
                       schedule_rr_type: Optional[str] = None,
                       schedule_zone_mode: Optional[str] = None,
                       ttl: Optional[int] = None,
                       address_pool_lb_strategy: Optional[str] = None,
                       remark: Optional[str] = None,
                       schedule_host_name: Optional[str] = None,
                       schedule_zone_name: Optional[str] = None,
                       sequence_lb_strategy_mode: Optional[str] = None)
    func NewInstanceConfig(ctx *Context, name string, args InstanceConfigArgs, opts ...ResourceOption) (*InstanceConfig, error)
    public InstanceConfig(string name, InstanceConfigArgs args, CustomResourceOptions? opts = null)
    public InstanceConfig(String name, InstanceConfigArgs args)
    public InstanceConfig(String name, InstanceConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:alidnscloudgtm:InstanceConfig
    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 InstanceConfigArgs
    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 InstanceConfigArgs
    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 InstanceConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceConfigArgs
    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 instanceConfigResource = new AliCloud.AlidnsCloudGtm.InstanceConfig("instanceConfigResource", new()
    {
        EnableStatus = "string",
        ScheduleRrType = "string",
        ScheduleZoneMode = "string",
        Ttl = 0,
        AddressPoolLbStrategy = "string",
        Remark = "string",
        ScheduleHostName = "string",
        ScheduleZoneName = "string",
        SequenceLbStrategyMode = "string",
    });
    
    example, err := alidnscloudgtm.NewInstanceConfig(ctx, "instanceConfigResource", &alidnscloudgtm.InstanceConfigArgs{
    	EnableStatus:           pulumi.String("string"),
    	ScheduleRrType:         pulumi.String("string"),
    	ScheduleZoneMode:       pulumi.String("string"),
    	Ttl:                    pulumi.Int(0),
    	AddressPoolLbStrategy:  pulumi.String("string"),
    	Remark:                 pulumi.String("string"),
    	ScheduleHostName:       pulumi.String("string"),
    	ScheduleZoneName:       pulumi.String("string"),
    	SequenceLbStrategyMode: pulumi.String("string"),
    })
    
    var instanceConfigResource = new InstanceConfig("instanceConfigResource", InstanceConfigArgs.builder()
        .enableStatus("string")
        .scheduleRrType("string")
        .scheduleZoneMode("string")
        .ttl(0)
        .addressPoolLbStrategy("string")
        .remark("string")
        .scheduleHostName("string")
        .scheduleZoneName("string")
        .sequenceLbStrategyMode("string")
        .build());
    
    instance_config_resource = alicloud.alidnscloudgtm.InstanceConfig("instanceConfigResource",
        enable_status="string",
        schedule_rr_type="string",
        schedule_zone_mode="string",
        ttl=0,
        address_pool_lb_strategy="string",
        remark="string",
        schedule_host_name="string",
        schedule_zone_name="string",
        sequence_lb_strategy_mode="string")
    
    const instanceConfigResource = new alicloud.alidnscloudgtm.InstanceConfig("instanceConfigResource", {
        enableStatus: "string",
        scheduleRrType: "string",
        scheduleZoneMode: "string",
        ttl: 0,
        addressPoolLbStrategy: "string",
        remark: "string",
        scheduleHostName: "string",
        scheduleZoneName: "string",
        sequenceLbStrategyMode: "string",
    });
    
    type: alicloud:alidnscloudgtm:InstanceConfig
    properties:
        addressPoolLbStrategy: string
        enableStatus: string
        remark: string
        scheduleHostName: string
        scheduleRrType: string
        scheduleZoneMode: string
        scheduleZoneName: string
        sequenceLbStrategyMode: string
        ttl: 0
    

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

    EnableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    ScheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    ScheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    Ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    AddressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    Remark string
    Remarks. The provided parameter value becomes the updated remark content.
    ScheduleHostName string
    The host record of the GTM access domain.
    ScheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    SequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    EnableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    ScheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    ScheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    Ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    AddressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    Remark string
    Remarks. The provided parameter value becomes the updated remark content.
    ScheduleHostName string
    The host record of the GTM access domain.
    ScheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    SequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    enableStatus String
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    scheduleRrType String
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode String
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ttl Integer
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy String
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    remark String
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName String
    The host record of the GTM access domain.
    scheduleZoneName String
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode String
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    enableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    scheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ttl number
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    remark string
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName string
    The host record of the GTM access domain.
    scheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    enable_status str
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    schedule_rr_type str
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    schedule_zone_mode str
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    address_pool_lb_strategy str
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    remark str
    Remarks. The provided parameter value becomes the updated remark content.
    schedule_host_name str
    The host record of the GTM access domain.
    schedule_zone_name str
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequence_lb_strategy_mode str
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    enableStatus String
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    scheduleRrType String
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode String
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ttl Number
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy String
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    remark String
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName String
    The host record of the GTM access domain.
    scheduleZoneName String
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode String
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.

    Outputs

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

    ConfigId string
    The domain name instance configuration ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    The instance ID associated with the GTM 3.
    ConfigId string
    The domain name instance configuration ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    The instance ID associated with the GTM 3.
    configId String
    The domain name instance configuration ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    The instance ID associated with the GTM 3.
    configId string
    The domain name instance configuration ID.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    The instance ID associated with the GTM 3.
    config_id str
    The domain name instance configuration ID.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    The instance ID associated with the GTM 3.
    configId String
    The domain name instance configuration ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    The instance ID associated with the GTM 3.

    Look up Existing InstanceConfig Resource

    Get an existing InstanceConfig 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?: InstanceConfigState, opts?: CustomResourceOptions): InstanceConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address_pool_lb_strategy: Optional[str] = None,
            config_id: Optional[str] = None,
            enable_status: Optional[str] = None,
            instance_id: Optional[str] = None,
            remark: Optional[str] = None,
            schedule_host_name: Optional[str] = None,
            schedule_rr_type: Optional[str] = None,
            schedule_zone_mode: Optional[str] = None,
            schedule_zone_name: Optional[str] = None,
            sequence_lb_strategy_mode: Optional[str] = None,
            ttl: Optional[int] = None) -> InstanceConfig
    func GetInstanceConfig(ctx *Context, name string, id IDInput, state *InstanceConfigState, opts ...ResourceOption) (*InstanceConfig, error)
    public static InstanceConfig Get(string name, Input<string> id, InstanceConfigState? state, CustomResourceOptions? opts = null)
    public static InstanceConfig get(String name, Output<String> id, InstanceConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:alidnscloudgtm:InstanceConfig    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:
    AddressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    ConfigId string
    The domain name instance configuration ID.
    EnableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    InstanceId string
    The instance ID associated with the GTM 3.
    Remark string
    Remarks. The provided parameter value becomes the updated remark content.
    ScheduleHostName string
    The host record of the GTM access domain.
    ScheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    ScheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ScheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    SequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    Ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    AddressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    ConfigId string
    The domain name instance configuration ID.
    EnableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    InstanceId string
    The instance ID associated with the GTM 3.
    Remark string
    Remarks. The provided parameter value becomes the updated remark content.
    ScheduleHostName string
    The host record of the GTM access domain.
    ScheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    ScheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    ScheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    SequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    Ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy String
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    configId String
    The domain name instance configuration ID.
    enableStatus String
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    instanceId String
    The instance ID associated with the GTM 3.
    remark String
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName String
    The host record of the GTM access domain.
    scheduleRrType String
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode String
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    scheduleZoneName String
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode String
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    ttl Integer
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy string
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    configId string
    The domain name instance configuration ID.
    enableStatus string
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    instanceId string
    The instance ID associated with the GTM 3.
    remark string
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName string
    The host record of the GTM access domain.
    scheduleRrType string
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode string
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    scheduleZoneName string
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode string
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    ttl number
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    address_pool_lb_strategy str
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    config_id str
    The domain name instance configuration ID.
    enable_status str
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    instance_id str
    The instance ID associated with the GTM 3.
    remark str
    Remarks. The provided parameter value becomes the updated remark content.
    schedule_host_name str
    The host record of the GTM access domain.
    schedule_rr_type str
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    schedule_zone_mode str
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    schedule_zone_name str
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequence_lb_strategy_mode str
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    ttl int
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.
    addressPoolLbStrategy String
    The load balancing strategy among address pools:

    • round_robin: Round-robin. For any incoming DNS resolution request, all address pools are returned, and the order of these address pools is rotated with each request.
    • sequence: Sequential. For any incoming DNS resolution request, the address pool with the smallest sequence number is returned (the sequence number indicates the priority of the address pool, where a smaller number means higher priority). If the address pool with the smallest sequence number is unavailable, the next address pool with the next smallest sequence number is returned.
    • weight: Weighted. You can assign different weights to each address pool so that DNS queries return address pools in proportion to their weights.
    • source_nearest: Source proximity. This is the intelligent DNS resolution feature. GTM returns different address pools based on the geographic location of the DNS query source, enabling users to access the nearest available endpoint.
    configId String
    The domain name instance configuration ID.
    enableStatus String
    The enable status of the domain instance:

    • enable: Enabled. The GTM instance's intelligent scheduling policy is active.
    • disable: Disabled. The GTM instance's intelligent scheduling policy is inactive.
    instanceId String
    The instance ID associated with the GTM 3.
    remark String
    Remarks. The provided parameter value becomes the updated remark content.
    scheduleHostName String
    The host record of the GTM access domain.
    scheduleRrType String
    Record type for the access domain name:

    • A: IPv4 address
    • AAAA: IPv6 address
    • CNAME: domain name.
    scheduleZoneMode String
    Access domain name assignment mode:

    • custom: Custom access domain name. You define the host record and associate it with a primary or subdomain under the same account as the GTM instance to generate the access domain name.
    • sys_assign: System-assigned access domain name. This mode is no longer supported. Do not select it.
    scheduleZoneName String
    Zone name, which is the parent zone of the GTM access domain name. It is typically a hosted domain under the same account as the GTM instance in the Alibaba Cloud DNS console, and can be either a primary domain or a subdomain.
    sequenceLbStrategyMode String
    When the load balancing policy between address pools is set to sequential mode, the service restoration mode for preceding resources after an anomaly is resolved is as follows:

    • preemptive: Preemptive mode. When a preceding resource recovers, the address pool with the smaller sequence number is prioritized.
    • non_preemptive: Non-preemptive mode. When a preceding resource recovers, the current address pool continues to be used.
    ttl Number
    Global TTL (in seconds). This value determines how long the DNS records resolving the access domain name to addresses in the address pool are cached by the ISP's LocalDNS. Custom TTL values are supported.

    Import

    Alidns Cloud Gtm Instance Config can be imported using the id, e.g.

    $ pulumi import alicloud:alidnscloudgtm/instanceConfig:InstanceConfig example <config_id>:<instance_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.