1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IgtmStrategy
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack

    Provides a resource to create a IGTM strategy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.IgtmInstance("example", {
        domain: "domain.com",
        accessType: "CUSTOM",
        globalTtl: 60,
        packageType: "STANDARD",
        instanceName: "tf-example",
        accessDomain: "domain.com",
        accessSubDomain: "subDomain.com",
        remark: "remark.",
        resourceId: "ins-lnpnnwvwqmr",
    });
    const example1 = new tencentcloud.IgtmAddressPool("example1", {
        poolName: "tf-example1",
        trafficStrategy: "WEIGHT",
        addressSets: [
            {
                addr: "1.1.1.1",
                isEnable: "ENABLED",
                weight: 90,
            },
            {
                addr: "2.2.2.2",
                isEnable: "DISABLED",
                weight: 50,
            },
        ],
    });
    const example2 = new tencentcloud.IgtmAddressPool("example2", {
        poolName: "tf-example2",
        trafficStrategy: "WEIGHT",
        addressSets: [
            {
                addr: "3.3.3.3",
                isEnable: "ENABLED",
                weight: 90,
            },
            {
                addr: "4.4.4.4",
                isEnable: "DISABLED",
                weight: 50,
            },
        ],
    });
    const example3 = new tencentcloud.IgtmAddressPool("example3", {
        poolName: "tf-example3",
        trafficStrategy: "WEIGHT",
        addressSets: [
            {
                addr: "5.5.5.5",
                isEnable: "ENABLED",
                weight: 90,
            },
            {
                addr: "6.6.6.6",
                isEnable: "DISABLED",
                weight: 50,
            },
        ],
    });
    const exampleIgtmStrategy = new tencentcloud.IgtmStrategy("example", {
        instanceId: example.igtmInstanceId,
        strategyName: "tf-example",
        sources: [
            {
                dnsLineId: 1,
                name: "默认",
            },
            {
                dnsLineId: 858,
                name: "电信",
            },
            {
                dnsLineId: 859,
                name: "联通",
            },
            {
                dnsLineId: 860,
                name: "移动",
            },
        ],
        mainAddressPoolSets: [{
            addressPools: [
                {
                    poolId: example1.poolId,
                    weight: 90,
                },
                {
                    poolId: example2.poolId,
                    weight: 80,
                },
            ],
            minSurviveNum: 1,
            trafficStrategy: "WEIGHT",
        }],
        fallbackAddressPoolSets: [{
            addressPools: [{
                poolId: example3.poolId,
            }],
        }],
        keepDomainRecords: "DISABLED",
        switchPoolType: "AUTO",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.IgtmInstance("example",
        domain="domain.com",
        access_type="CUSTOM",
        global_ttl=60,
        package_type="STANDARD",
        instance_name="tf-example",
        access_domain="domain.com",
        access_sub_domain="subDomain.com",
        remark="remark.",
        resource_id="ins-lnpnnwvwqmr")
    example1 = tencentcloud.IgtmAddressPool("example1",
        pool_name="tf-example1",
        traffic_strategy="WEIGHT",
        address_sets=[
            {
                "addr": "1.1.1.1",
                "is_enable": "ENABLED",
                "weight": 90,
            },
            {
                "addr": "2.2.2.2",
                "is_enable": "DISABLED",
                "weight": 50,
            },
        ])
    example2 = tencentcloud.IgtmAddressPool("example2",
        pool_name="tf-example2",
        traffic_strategy="WEIGHT",
        address_sets=[
            {
                "addr": "3.3.3.3",
                "is_enable": "ENABLED",
                "weight": 90,
            },
            {
                "addr": "4.4.4.4",
                "is_enable": "DISABLED",
                "weight": 50,
            },
        ])
    example3 = tencentcloud.IgtmAddressPool("example3",
        pool_name="tf-example3",
        traffic_strategy="WEIGHT",
        address_sets=[
            {
                "addr": "5.5.5.5",
                "is_enable": "ENABLED",
                "weight": 90,
            },
            {
                "addr": "6.6.6.6",
                "is_enable": "DISABLED",
                "weight": 50,
            },
        ])
    example_igtm_strategy = tencentcloud.IgtmStrategy("example",
        instance_id=example.igtm_instance_id,
        strategy_name="tf-example",
        sources=[
            {
                "dns_line_id": 1,
                "name": "默认",
            },
            {
                "dns_line_id": 858,
                "name": "电信",
            },
            {
                "dns_line_id": 859,
                "name": "联通",
            },
            {
                "dns_line_id": 860,
                "name": "移动",
            },
        ],
        main_address_pool_sets=[{
            "address_pools": [
                {
                    "pool_id": example1.pool_id,
                    "weight": 90,
                },
                {
                    "pool_id": example2.pool_id,
                    "weight": 80,
                },
            ],
            "min_survive_num": 1,
            "traffic_strategy": "WEIGHT",
        }],
        fallback_address_pool_sets=[{
            "address_pools": [{
                "pool_id": example3.pool_id,
            }],
        }],
        keep_domain_records="DISABLED",
        switch_pool_type="AUTO")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := tencentcloud.NewIgtmInstance(ctx, "example", &tencentcloud.IgtmInstanceArgs{
    			Domain:          pulumi.String("domain.com"),
    			AccessType:      pulumi.String("CUSTOM"),
    			GlobalTtl:       pulumi.Float64(60),
    			PackageType:     pulumi.String("STANDARD"),
    			InstanceName:    pulumi.String("tf-example"),
    			AccessDomain:    pulumi.String("domain.com"),
    			AccessSubDomain: pulumi.String("subDomain.com"),
    			Remark:          pulumi.String("remark."),
    			ResourceId:      pulumi.String("ins-lnpnnwvwqmr"),
    		})
    		if err != nil {
    			return err
    		}
    		example1, err := tencentcloud.NewIgtmAddressPool(ctx, "example1", &tencentcloud.IgtmAddressPoolArgs{
    			PoolName:        pulumi.String("tf-example1"),
    			TrafficStrategy: pulumi.String("WEIGHT"),
    			AddressSets: tencentcloud.IgtmAddressPoolAddressSetArray{
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("1.1.1.1"),
    					IsEnable: pulumi.String("ENABLED"),
    					Weight:   pulumi.Float64(90),
    				},
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("2.2.2.2"),
    					IsEnable: pulumi.String("DISABLED"),
    					Weight:   pulumi.Float64(50),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		example2, err := tencentcloud.NewIgtmAddressPool(ctx, "example2", &tencentcloud.IgtmAddressPoolArgs{
    			PoolName:        pulumi.String("tf-example2"),
    			TrafficStrategy: pulumi.String("WEIGHT"),
    			AddressSets: tencentcloud.IgtmAddressPoolAddressSetArray{
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("3.3.3.3"),
    					IsEnable: pulumi.String("ENABLED"),
    					Weight:   pulumi.Float64(90),
    				},
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("4.4.4.4"),
    					IsEnable: pulumi.String("DISABLED"),
    					Weight:   pulumi.Float64(50),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		example3, err := tencentcloud.NewIgtmAddressPool(ctx, "example3", &tencentcloud.IgtmAddressPoolArgs{
    			PoolName:        pulumi.String("tf-example3"),
    			TrafficStrategy: pulumi.String("WEIGHT"),
    			AddressSets: tencentcloud.IgtmAddressPoolAddressSetArray{
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("5.5.5.5"),
    					IsEnable: pulumi.String("ENABLED"),
    					Weight:   pulumi.Float64(90),
    				},
    				&tencentcloud.IgtmAddressPoolAddressSetArgs{
    					Addr:     pulumi.String("6.6.6.6"),
    					IsEnable: pulumi.String("DISABLED"),
    					Weight:   pulumi.Float64(50),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewIgtmStrategy(ctx, "example", &tencentcloud.IgtmStrategyArgs{
    			InstanceId:   example.IgtmInstanceId,
    			StrategyName: pulumi.String("tf-example"),
    			Sources: tencentcloud.IgtmStrategySourceArray{
    				&tencentcloud.IgtmStrategySourceArgs{
    					DnsLineId: pulumi.Float64(1),
    					Name:      pulumi.String("默认"),
    				},
    				&tencentcloud.IgtmStrategySourceArgs{
    					DnsLineId: pulumi.Float64(858),
    					Name:      pulumi.String("电信"),
    				},
    				&tencentcloud.IgtmStrategySourceArgs{
    					DnsLineId: pulumi.Float64(859),
    					Name:      pulumi.String("联通"),
    				},
    				&tencentcloud.IgtmStrategySourceArgs{
    					DnsLineId: pulumi.Float64(860),
    					Name:      pulumi.String("移动"),
    				},
    			},
    			MainAddressPoolSets: tencentcloud.IgtmStrategyMainAddressPoolSetArray{
    				&tencentcloud.IgtmStrategyMainAddressPoolSetArgs{
    					AddressPools: tencentcloud.IgtmStrategyMainAddressPoolSetAddressPoolArray{
    						&tencentcloud.IgtmStrategyMainAddressPoolSetAddressPoolArgs{
    							PoolId: example1.PoolId,
    							Weight: pulumi.Float64(90),
    						},
    						&tencentcloud.IgtmStrategyMainAddressPoolSetAddressPoolArgs{
    							PoolId: example2.PoolId,
    							Weight: pulumi.Float64(80),
    						},
    					},
    					MinSurviveNum:   pulumi.Float64(1),
    					TrafficStrategy: pulumi.String("WEIGHT"),
    				},
    			},
    			FallbackAddressPoolSets: tencentcloud.IgtmStrategyFallbackAddressPoolSetArray{
    				&tencentcloud.IgtmStrategyFallbackAddressPoolSetArgs{
    					AddressPools: tencentcloud.IgtmStrategyFallbackAddressPoolSetAddressPoolArray{
    						&tencentcloud.IgtmStrategyFallbackAddressPoolSetAddressPoolArgs{
    							PoolId: example3.PoolId,
    						},
    					},
    				},
    			},
    			KeepDomainRecords: pulumi.String("DISABLED"),
    			SwitchPoolType:    pulumi.String("AUTO"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.IgtmInstance("example", new()
        {
            Domain = "domain.com",
            AccessType = "CUSTOM",
            GlobalTtl = 60,
            PackageType = "STANDARD",
            InstanceName = "tf-example",
            AccessDomain = "domain.com",
            AccessSubDomain = "subDomain.com",
            Remark = "remark.",
            ResourceId = "ins-lnpnnwvwqmr",
        });
    
        var example1 = new Tencentcloud.IgtmAddressPool("example1", new()
        {
            PoolName = "tf-example1",
            TrafficStrategy = "WEIGHT",
            AddressSets = new[]
            {
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "1.1.1.1",
                    IsEnable = "ENABLED",
                    Weight = 90,
                },
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "2.2.2.2",
                    IsEnable = "DISABLED",
                    Weight = 50,
                },
            },
        });
    
        var example2 = new Tencentcloud.IgtmAddressPool("example2", new()
        {
            PoolName = "tf-example2",
            TrafficStrategy = "WEIGHT",
            AddressSets = new[]
            {
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "3.3.3.3",
                    IsEnable = "ENABLED",
                    Weight = 90,
                },
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "4.4.4.4",
                    IsEnable = "DISABLED",
                    Weight = 50,
                },
            },
        });
    
        var example3 = new Tencentcloud.IgtmAddressPool("example3", new()
        {
            PoolName = "tf-example3",
            TrafficStrategy = "WEIGHT",
            AddressSets = new[]
            {
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "5.5.5.5",
                    IsEnable = "ENABLED",
                    Weight = 90,
                },
                new Tencentcloud.Inputs.IgtmAddressPoolAddressSetArgs
                {
                    Addr = "6.6.6.6",
                    IsEnable = "DISABLED",
                    Weight = 50,
                },
            },
        });
    
        var exampleIgtmStrategy = new Tencentcloud.IgtmStrategy("example", new()
        {
            InstanceId = example.IgtmInstanceId,
            StrategyName = "tf-example",
            Sources = new[]
            {
                new Tencentcloud.Inputs.IgtmStrategySourceArgs
                {
                    DnsLineId = 1,
                    Name = "默认",
                },
                new Tencentcloud.Inputs.IgtmStrategySourceArgs
                {
                    DnsLineId = 858,
                    Name = "电信",
                },
                new Tencentcloud.Inputs.IgtmStrategySourceArgs
                {
                    DnsLineId = 859,
                    Name = "联通",
                },
                new Tencentcloud.Inputs.IgtmStrategySourceArgs
                {
                    DnsLineId = 860,
                    Name = "移动",
                },
            },
            MainAddressPoolSets = new[]
            {
                new Tencentcloud.Inputs.IgtmStrategyMainAddressPoolSetArgs
                {
                    AddressPools = new[]
                    {
                        new Tencentcloud.Inputs.IgtmStrategyMainAddressPoolSetAddressPoolArgs
                        {
                            PoolId = example1.PoolId,
                            Weight = 90,
                        },
                        new Tencentcloud.Inputs.IgtmStrategyMainAddressPoolSetAddressPoolArgs
                        {
                            PoolId = example2.PoolId,
                            Weight = 80,
                        },
                    },
                    MinSurviveNum = 1,
                    TrafficStrategy = "WEIGHT",
                },
            },
            FallbackAddressPoolSets = new[]
            {
                new Tencentcloud.Inputs.IgtmStrategyFallbackAddressPoolSetArgs
                {
                    AddressPools = new[]
                    {
                        new Tencentcloud.Inputs.IgtmStrategyFallbackAddressPoolSetAddressPoolArgs
                        {
                            PoolId = example3.PoolId,
                        },
                    },
                },
            },
            KeepDomainRecords = "DISABLED",
            SwitchPoolType = "AUTO",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IgtmInstance;
    import com.pulumi.tencentcloud.IgtmInstanceArgs;
    import com.pulumi.tencentcloud.IgtmAddressPool;
    import com.pulumi.tencentcloud.IgtmAddressPoolArgs;
    import com.pulumi.tencentcloud.inputs.IgtmAddressPoolAddressSetArgs;
    import com.pulumi.tencentcloud.IgtmStrategy;
    import com.pulumi.tencentcloud.IgtmStrategyArgs;
    import com.pulumi.tencentcloud.inputs.IgtmStrategySourceArgs;
    import com.pulumi.tencentcloud.inputs.IgtmStrategyMainAddressPoolSetArgs;
    import com.pulumi.tencentcloud.inputs.IgtmStrategyFallbackAddressPoolSetArgs;
    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) {
            var example = new IgtmInstance("example", IgtmInstanceArgs.builder()
                .domain("domain.com")
                .accessType("CUSTOM")
                .globalTtl(60.0)
                .packageType("STANDARD")
                .instanceName("tf-example")
                .accessDomain("domain.com")
                .accessSubDomain("subDomain.com")
                .remark("remark.")
                .resourceId("ins-lnpnnwvwqmr")
                .build());
    
            var example1 = new IgtmAddressPool("example1", IgtmAddressPoolArgs.builder()
                .poolName("tf-example1")
                .trafficStrategy("WEIGHT")
                .addressSets(            
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("1.1.1.1")
                        .isEnable("ENABLED")
                        .weight(90.0)
                        .build(),
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("2.2.2.2")
                        .isEnable("DISABLED")
                        .weight(50.0)
                        .build())
                .build());
    
            var example2 = new IgtmAddressPool("example2", IgtmAddressPoolArgs.builder()
                .poolName("tf-example2")
                .trafficStrategy("WEIGHT")
                .addressSets(            
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("3.3.3.3")
                        .isEnable("ENABLED")
                        .weight(90.0)
                        .build(),
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("4.4.4.4")
                        .isEnable("DISABLED")
                        .weight(50.0)
                        .build())
                .build());
    
            var example3 = new IgtmAddressPool("example3", IgtmAddressPoolArgs.builder()
                .poolName("tf-example3")
                .trafficStrategy("WEIGHT")
                .addressSets(            
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("5.5.5.5")
                        .isEnable("ENABLED")
                        .weight(90.0)
                        .build(),
                    IgtmAddressPoolAddressSetArgs.builder()
                        .addr("6.6.6.6")
                        .isEnable("DISABLED")
                        .weight(50.0)
                        .build())
                .build());
    
            var exampleIgtmStrategy = new IgtmStrategy("exampleIgtmStrategy", IgtmStrategyArgs.builder()
                .instanceId(example.igtmInstanceId())
                .strategyName("tf-example")
                .sources(            
                    IgtmStrategySourceArgs.builder()
                        .dnsLineId(1.0)
                        .name("默认")
                        .build(),
                    IgtmStrategySourceArgs.builder()
                        .dnsLineId(858.0)
                        .name("电信")
                        .build(),
                    IgtmStrategySourceArgs.builder()
                        .dnsLineId(859.0)
                        .name("联通")
                        .build(),
                    IgtmStrategySourceArgs.builder()
                        .dnsLineId(860.0)
                        .name("移动")
                        .build())
                .mainAddressPoolSets(IgtmStrategyMainAddressPoolSetArgs.builder()
                    .addressPools(                
                        IgtmStrategyMainAddressPoolSetAddressPoolArgs.builder()
                            .poolId(example1.poolId())
                            .weight(90.0)
                            .build(),
                        IgtmStrategyMainAddressPoolSetAddressPoolArgs.builder()
                            .poolId(example2.poolId())
                            .weight(80.0)
                            .build())
                    .minSurviveNum(1.0)
                    .trafficStrategy("WEIGHT")
                    .build())
                .fallbackAddressPoolSets(IgtmStrategyFallbackAddressPoolSetArgs.builder()
                    .addressPools(IgtmStrategyFallbackAddressPoolSetAddressPoolArgs.builder()
                        .poolId(example3.poolId())
                        .build())
                    .build())
                .keepDomainRecords("DISABLED")
                .switchPoolType("AUTO")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:IgtmInstance
        properties:
          domain: domain.com
          accessType: CUSTOM
          globalTtl: 60
          packageType: STANDARD
          instanceName: tf-example
          accessDomain: domain.com
          accessSubDomain: subDomain.com
          remark: remark.
          resourceId: ins-lnpnnwvwqmr
      example1:
        type: tencentcloud:IgtmAddressPool
        properties:
          poolName: tf-example1
          trafficStrategy: WEIGHT
          addressSets:
            - addr: 1.1.1.1
              isEnable: ENABLED
              weight: 90
            - addr: 2.2.2.2
              isEnable: DISABLED
              weight: 50
      example2:
        type: tencentcloud:IgtmAddressPool
        properties:
          poolName: tf-example2
          trafficStrategy: WEIGHT
          addressSets:
            - addr: 3.3.3.3
              isEnable: ENABLED
              weight: 90
            - addr: 4.4.4.4
              isEnable: DISABLED
              weight: 50
      example3:
        type: tencentcloud:IgtmAddressPool
        properties:
          poolName: tf-example3
          trafficStrategy: WEIGHT
          addressSets:
            - addr: 5.5.5.5
              isEnable: ENABLED
              weight: 90
            - addr: 6.6.6.6
              isEnable: DISABLED
              weight: 50
      exampleIgtmStrategy:
        type: tencentcloud:IgtmStrategy
        name: example
        properties:
          instanceId: ${example.igtmInstanceId}
          strategyName: tf-example
          sources:
            - dnsLineId: 1
              name: 默认
            - dnsLineId: 858
              name: 电信
            - dnsLineId: 859
              name: 联通
            - dnsLineId: 860
              name: 移动
          mainAddressPoolSets:
            - addressPools:
                - poolId: ${example1.poolId}
                  weight: 90
                - poolId: ${example2.poolId}
                  weight: 80
              minSurviveNum: 1
              trafficStrategy: WEIGHT
          fallbackAddressPoolSets:
            - addressPools:
                - poolId: ${example3.poolId}
          keepDomainRecords: DISABLED
          switchPoolType: AUTO
    

    Create IgtmStrategy Resource

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

    Constructor syntax

    new IgtmStrategy(name: string, args: IgtmStrategyArgs, opts?: CustomResourceOptions);
    @overload
    def IgtmStrategy(resource_name: str,
                     args: IgtmStrategyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def IgtmStrategy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     fallback_address_pool_sets: Optional[Sequence[IgtmStrategyFallbackAddressPoolSetArgs]] = None,
                     instance_id: Optional[str] = None,
                     main_address_pool_sets: Optional[Sequence[IgtmStrategyMainAddressPoolSetArgs]] = None,
                     sources: Optional[Sequence[IgtmStrategySourceArgs]] = None,
                     strategy_name: Optional[str] = None,
                     igtm_strategy_id: Optional[str] = None,
                     keep_domain_records: Optional[str] = None,
                     switch_pool_type: Optional[str] = None)
    func NewIgtmStrategy(ctx *Context, name string, args IgtmStrategyArgs, opts ...ResourceOption) (*IgtmStrategy, error)
    public IgtmStrategy(string name, IgtmStrategyArgs args, CustomResourceOptions? opts = null)
    public IgtmStrategy(String name, IgtmStrategyArgs args)
    public IgtmStrategy(String name, IgtmStrategyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:IgtmStrategy
    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 IgtmStrategyArgs
    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 IgtmStrategyArgs
    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 IgtmStrategyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IgtmStrategyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IgtmStrategyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    FallbackAddressPoolSets List<IgtmStrategyFallbackAddressPoolSet>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    InstanceId string
    Instance ID.
    MainAddressPoolSets List<IgtmStrategyMainAddressPoolSet>
    Main address pool set, up to four levels allowed.
    Sources List<IgtmStrategySource>
    Resolution lines.
    StrategyName string
    Strategy name, cannot be duplicated.
    IgtmStrategyId string
    ID of the resource.
    KeepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    SwitchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    FallbackAddressPoolSets []IgtmStrategyFallbackAddressPoolSetArgs
    Fallback address pool set, only one level allowed and address pool count must be 1.
    InstanceId string
    Instance ID.
    MainAddressPoolSets []IgtmStrategyMainAddressPoolSetArgs
    Main address pool set, up to four levels allowed.
    Sources []IgtmStrategySourceArgs
    Resolution lines.
    StrategyName string
    Strategy name, cannot be duplicated.
    IgtmStrategyId string
    ID of the resource.
    KeepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    SwitchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets List<IgtmStrategyFallbackAddressPoolSet>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    instanceId String
    Instance ID.
    mainAddressPoolSets List<IgtmStrategyMainAddressPoolSet>
    Main address pool set, up to four levels allowed.
    sources List<IgtmStrategySource>
    Resolution lines.
    strategyName String
    Strategy name, cannot be duplicated.
    igtmStrategyId String
    ID of the resource.
    keepDomainRecords String
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    switchPoolType String
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets IgtmStrategyFallbackAddressPoolSet[]
    Fallback address pool set, only one level allowed and address pool count must be 1.
    instanceId string
    Instance ID.
    mainAddressPoolSets IgtmStrategyMainAddressPoolSet[]
    Main address pool set, up to four levels allowed.
    sources IgtmStrategySource[]
    Resolution lines.
    strategyName string
    Strategy name, cannot be duplicated.
    igtmStrategyId string
    ID of the resource.
    keepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    switchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallback_address_pool_sets Sequence[IgtmStrategyFallbackAddressPoolSetArgs]
    Fallback address pool set, only one level allowed and address pool count must be 1.
    instance_id str
    Instance ID.
    main_address_pool_sets Sequence[IgtmStrategyMainAddressPoolSetArgs]
    Main address pool set, up to four levels allowed.
    sources Sequence[IgtmStrategySourceArgs]
    Resolution lines.
    strategy_name str
    Strategy name, cannot be duplicated.
    igtm_strategy_id str
    ID of the resource.
    keep_domain_records str
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    switch_pool_type str
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets List<Property Map>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    instanceId String
    Instance ID.
    mainAddressPoolSets List<Property Map>
    Main address pool set, up to four levels allowed.
    sources List<Property Map>
    Resolution lines.
    strategyName String
    Strategy name, cannot be duplicated.
    igtmStrategyId String
    ID of the resource.
    keepDomainRecords String
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    switchPoolType String
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId double
    Strategy ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId float64
    Strategy ID.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId Double
    Strategy ID.
    id string
    The provider-assigned unique ID for this managed resource.
    strategyId number
    Strategy ID.
    id str
    The provider-assigned unique ID for this managed resource.
    strategy_id float
    Strategy ID.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId Number
    Strategy ID.

    Look up Existing IgtmStrategy Resource

    Get an existing IgtmStrategy 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?: IgtmStrategyState, opts?: CustomResourceOptions): IgtmStrategy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fallback_address_pool_sets: Optional[Sequence[IgtmStrategyFallbackAddressPoolSetArgs]] = None,
            igtm_strategy_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            keep_domain_records: Optional[str] = None,
            main_address_pool_sets: Optional[Sequence[IgtmStrategyMainAddressPoolSetArgs]] = None,
            sources: Optional[Sequence[IgtmStrategySourceArgs]] = None,
            strategy_id: Optional[float] = None,
            strategy_name: Optional[str] = None,
            switch_pool_type: Optional[str] = None) -> IgtmStrategy
    func GetIgtmStrategy(ctx *Context, name string, id IDInput, state *IgtmStrategyState, opts ...ResourceOption) (*IgtmStrategy, error)
    public static IgtmStrategy Get(string name, Input<string> id, IgtmStrategyState? state, CustomResourceOptions? opts = null)
    public static IgtmStrategy get(String name, Output<String> id, IgtmStrategyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:IgtmStrategy    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:
    FallbackAddressPoolSets List<IgtmStrategyFallbackAddressPoolSet>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    IgtmStrategyId string
    ID of the resource.
    InstanceId string
    Instance ID.
    KeepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    MainAddressPoolSets List<IgtmStrategyMainAddressPoolSet>
    Main address pool set, up to four levels allowed.
    Sources List<IgtmStrategySource>
    Resolution lines.
    StrategyId double
    Strategy ID.
    StrategyName string
    Strategy name, cannot be duplicated.
    SwitchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    FallbackAddressPoolSets []IgtmStrategyFallbackAddressPoolSetArgs
    Fallback address pool set, only one level allowed and address pool count must be 1.
    IgtmStrategyId string
    ID of the resource.
    InstanceId string
    Instance ID.
    KeepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    MainAddressPoolSets []IgtmStrategyMainAddressPoolSetArgs
    Main address pool set, up to four levels allowed.
    Sources []IgtmStrategySourceArgs
    Resolution lines.
    StrategyId float64
    Strategy ID.
    StrategyName string
    Strategy name, cannot be duplicated.
    SwitchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets List<IgtmStrategyFallbackAddressPoolSet>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    igtmStrategyId String
    ID of the resource.
    instanceId String
    Instance ID.
    keepDomainRecords String
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    mainAddressPoolSets List<IgtmStrategyMainAddressPoolSet>
    Main address pool set, up to four levels allowed.
    sources List<IgtmStrategySource>
    Resolution lines.
    strategyId Double
    Strategy ID.
    strategyName String
    Strategy name, cannot be duplicated.
    switchPoolType String
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets IgtmStrategyFallbackAddressPoolSet[]
    Fallback address pool set, only one level allowed and address pool count must be 1.
    igtmStrategyId string
    ID of the resource.
    instanceId string
    Instance ID.
    keepDomainRecords string
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    mainAddressPoolSets IgtmStrategyMainAddressPoolSet[]
    Main address pool set, up to four levels allowed.
    sources IgtmStrategySource[]
    Resolution lines.
    strategyId number
    Strategy ID.
    strategyName string
    Strategy name, cannot be duplicated.
    switchPoolType string
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallback_address_pool_sets Sequence[IgtmStrategyFallbackAddressPoolSetArgs]
    Fallback address pool set, only one level allowed and address pool count must be 1.
    igtm_strategy_id str
    ID of the resource.
    instance_id str
    Instance ID.
    keep_domain_records str
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    main_address_pool_sets Sequence[IgtmStrategyMainAddressPoolSetArgs]
    Main address pool set, up to four levels allowed.
    sources Sequence[IgtmStrategySourceArgs]
    Resolution lines.
    strategy_id float
    Strategy ID.
    strategy_name str
    Strategy name, cannot be duplicated.
    switch_pool_type str
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.
    fallbackAddressPoolSets List<Property Map>
    Fallback address pool set, only one level allowed and address pool count must be 1.
    igtmStrategyId String
    ID of the resource.
    instanceId String
    Instance ID.
    keepDomainRecords String
    Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
    mainAddressPoolSets List<Property Map>
    Main address pool set, up to four levels allowed.
    sources List<Property Map>
    Resolution lines.
    strategyId Number
    Strategy ID.
    strategyName String
    Strategy name, cannot be duplicated.
    switchPoolType String
    Policy scheduling mode: AUTO default switching; STOP only pause without switching.

    Supporting Types

    IgtmStrategyFallbackAddressPoolSet, IgtmStrategyFallbackAddressPoolSetArgs

    AddressPools List<IgtmStrategyFallbackAddressPoolSetAddressPool>
    Address pool IDs and weights in the set, array.
    MainAddressPoolId double
    Address pool set ID.
    MinSurviveNum double
    Switch threshold, cannot exceed the total number of addresses in the main set.
    TrafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    AddressPools []IgtmStrategyFallbackAddressPoolSetAddressPool
    Address pool IDs and weights in the set, array.
    MainAddressPoolId float64
    Address pool set ID.
    MinSurviveNum float64
    Switch threshold, cannot exceed the total number of addresses in the main set.
    TrafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools List<IgtmStrategyFallbackAddressPoolSetAddressPool>
    Address pool IDs and weights in the set, array.
    mainAddressPoolId Double
    Address pool set ID.
    minSurviveNum Double
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy String
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools IgtmStrategyFallbackAddressPoolSetAddressPool[]
    Address pool IDs and weights in the set, array.
    mainAddressPoolId number
    Address pool set ID.
    minSurviveNum number
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    address_pools Sequence[IgtmStrategyFallbackAddressPoolSetAddressPool]
    Address pool IDs and weights in the set, array.
    main_address_pool_id float
    Address pool set ID.
    min_survive_num float
    Switch threshold, cannot exceed the total number of addresses in the main set.
    traffic_strategy str
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools List<Property Map>
    Address pool IDs and weights in the set, array.
    mainAddressPoolId Number
    Address pool set ID.
    minSurviveNum Number
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy String
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.

    IgtmStrategyFallbackAddressPoolSetAddressPool, IgtmStrategyFallbackAddressPoolSetAddressPoolArgs

    PoolId double
    Address pool ID.
    Weight double
    Weight.
    PoolId float64
    Address pool ID.
    Weight float64
    Weight.
    poolId Double
    Address pool ID.
    weight Double
    Weight.
    poolId number
    Address pool ID.
    weight number
    Weight.
    pool_id float
    Address pool ID.
    weight float
    Weight.
    poolId Number
    Address pool ID.
    weight Number
    Weight.

    IgtmStrategyMainAddressPoolSet, IgtmStrategyMainAddressPoolSetArgs

    AddressPools List<IgtmStrategyMainAddressPoolSetAddressPool>
    Address pool IDs and weights in the set, array.
    MainAddressPoolId double
    Address pool set ID.
    MinSurviveNum double
    Switch threshold, cannot exceed the total number of addresses in the main set.
    TrafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    AddressPools []IgtmStrategyMainAddressPoolSetAddressPool
    Address pool IDs and weights in the set, array.
    MainAddressPoolId float64
    Address pool set ID.
    MinSurviveNum float64
    Switch threshold, cannot exceed the total number of addresses in the main set.
    TrafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools List<IgtmStrategyMainAddressPoolSetAddressPool>
    Address pool IDs and weights in the set, array.
    mainAddressPoolId Double
    Address pool set ID.
    minSurviveNum Double
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy String
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools IgtmStrategyMainAddressPoolSetAddressPool[]
    Address pool IDs and weights in the set, array.
    mainAddressPoolId number
    Address pool set ID.
    minSurviveNum number
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy string
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    address_pools Sequence[IgtmStrategyMainAddressPoolSetAddressPool]
    Address pool IDs and weights in the set, array.
    main_address_pool_id float
    Address pool set ID.
    min_survive_num float
    Switch threshold, cannot exceed the total number of addresses in the main set.
    traffic_strategy str
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.
    addressPools List<Property Map>
    Address pool IDs and weights in the set, array.
    mainAddressPoolId Number
    Address pool set ID.
    minSurviveNum Number
    Switch threshold, cannot exceed the total number of addresses in the main set.
    trafficStrategy String
    Switch strategy: ALL resolves all addresses; WEIGHT: load balancing. When ALL, the weight value of resolved addresses is 1; when WEIGHT, weight is address pool weight * address weight.

    IgtmStrategyMainAddressPoolSetAddressPool, IgtmStrategyMainAddressPoolSetAddressPoolArgs

    PoolId double
    Address pool ID.
    Weight double
    Weight.
    PoolId float64
    Address pool ID.
    Weight float64
    Weight.
    poolId Double
    Address pool ID.
    weight Double
    Weight.
    poolId number
    Address pool ID.
    weight number
    Weight.
    pool_id float
    Address pool ID.
    weight float
    Weight.
    poolId Number
    Address pool ID.
    weight Number
    Weight.

    IgtmStrategySource, IgtmStrategySourceArgs

    DnsLineId double
    Resolution request source line ID.
    Name string
    Resolution request source line name.
    DnsLineId float64
    Resolution request source line ID.
    Name string
    Resolution request source line name.
    dnsLineId Double
    Resolution request source line ID.
    name String
    Resolution request source line name.
    dnsLineId number
    Resolution request source line ID.
    name string
    Resolution request source line name.
    dns_line_id float
    Resolution request source line ID.
    name str
    Resolution request source line name.
    dnsLineId Number
    Resolution request source line ID.
    name String
    Resolution request source line name.

    Import

    IGTM strategy can be imported using the instanceId#strategyId, e.g.

    $ pulumi import tencentcloud:index/igtmStrategy:IgtmStrategy example gtm-uukztqtoaru#7556
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate