1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. IgtmAddressPool
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 address pool

    NOTE: Resource tencentcloud.IgtmInstance needs to be created before using this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.IgtmAddressPool("example", {
        poolName: "tf-example",
        trafficStrategy: "WEIGHT",
        addressSets: [
            {
                addr: "1.1.1.1",
                isEnable: "ENABLED",
                weight: 90,
            },
            {
                addr: "2.2.2.2",
                isEnable: "DISABLED",
                weight: 50,
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.IgtmAddressPool("example",
        pool_name="tf-example",
        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,
            },
        ])
    
    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 {
    		_, err := tencentcloud.NewIgtmAddressPool(ctx, "example", &tencentcloud.IgtmAddressPoolArgs{
    			PoolName:        pulumi.String("tf-example"),
    			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
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.IgtmAddressPool("example", new()
        {
            PoolName = "tf-example",
            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,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.IgtmAddressPool;
    import com.pulumi.tencentcloud.IgtmAddressPoolArgs;
    import com.pulumi.tencentcloud.inputs.IgtmAddressPoolAddressSetArgs;
    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 IgtmAddressPool("example", IgtmAddressPoolArgs.builder()
                .poolName("tf-example")
                .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());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:IgtmAddressPool
        properties:
          poolName: tf-example
          trafficStrategy: WEIGHT
          addressSets:
            - addr: 1.1.1.1
              isEnable: ENABLED
              weight: 90
            - addr: 2.2.2.2
              isEnable: DISABLED
              weight: 50
    

    Create IgtmAddressPool Resource

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

    Constructor syntax

    new IgtmAddressPool(name: string, args: IgtmAddressPoolArgs, opts?: CustomResourceOptions);
    @overload
    def IgtmAddressPool(resource_name: str,
                        args: IgtmAddressPoolArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IgtmAddressPool(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        address_sets: Optional[Sequence[IgtmAddressPoolAddressSetArgs]] = None,
                        pool_name: Optional[str] = None,
                        traffic_strategy: Optional[str] = None,
                        igtm_address_pool_id: Optional[str] = None,
                        monitor_id: Optional[float] = None)
    func NewIgtmAddressPool(ctx *Context, name string, args IgtmAddressPoolArgs, opts ...ResourceOption) (*IgtmAddressPool, error)
    public IgtmAddressPool(string name, IgtmAddressPoolArgs args, CustomResourceOptions? opts = null)
    public IgtmAddressPool(String name, IgtmAddressPoolArgs args)
    public IgtmAddressPool(String name, IgtmAddressPoolArgs args, CustomResourceOptions options)
    
    type: tencentcloud:IgtmAddressPool
    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 IgtmAddressPoolArgs
    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 IgtmAddressPoolArgs
    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 IgtmAddressPoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IgtmAddressPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IgtmAddressPoolArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AddressSets List<IgtmAddressPoolAddressSet>
    Address list.
    PoolName string
    Address pool name, duplicates are not allowed.
    TrafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    IgtmAddressPoolId string
    ID of the resource.
    MonitorId double
    Monitor ID.
    AddressSets []IgtmAddressPoolAddressSetArgs
    Address list.
    PoolName string
    Address pool name, duplicates are not allowed.
    TrafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    IgtmAddressPoolId string
    ID of the resource.
    MonitorId float64
    Monitor ID.
    addressSets List<IgtmAddressPoolAddressSet>
    Address list.
    poolName String
    Address pool name, duplicates are not allowed.
    trafficStrategy String
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    igtmAddressPoolId String
    ID of the resource.
    monitorId Double
    Monitor ID.
    addressSets IgtmAddressPoolAddressSet[]
    Address list.
    poolName string
    Address pool name, duplicates are not allowed.
    trafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    igtmAddressPoolId string
    ID of the resource.
    monitorId number
    Monitor ID.
    address_sets Sequence[IgtmAddressPoolAddressSetArgs]
    Address list.
    pool_name str
    Address pool name, duplicates are not allowed.
    traffic_strategy str
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    igtm_address_pool_id str
    ID of the resource.
    monitor_id float
    Monitor ID.
    addressSets List<Property Map>
    Address list.
    poolName String
    Address pool name, duplicates are not allowed.
    trafficStrategy String
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    igtmAddressPoolId String
    ID of the resource.
    monitorId Number
    Monitor ID.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PoolId double
    Address pool ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    PoolId float64
    Address pool ID.
    id String
    The provider-assigned unique ID for this managed resource.
    poolId Double
    Address pool ID.
    id string
    The provider-assigned unique ID for this managed resource.
    poolId number
    Address pool ID.
    id str
    The provider-assigned unique ID for this managed resource.
    pool_id float
    Address pool ID.
    id String
    The provider-assigned unique ID for this managed resource.
    poolId Number
    Address pool ID.

    Look up Existing IgtmAddressPool Resource

    Get an existing IgtmAddressPool 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?: IgtmAddressPoolState, opts?: CustomResourceOptions): IgtmAddressPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address_sets: Optional[Sequence[IgtmAddressPoolAddressSetArgs]] = None,
            igtm_address_pool_id: Optional[str] = None,
            monitor_id: Optional[float] = None,
            pool_id: Optional[float] = None,
            pool_name: Optional[str] = None,
            traffic_strategy: Optional[str] = None) -> IgtmAddressPool
    func GetIgtmAddressPool(ctx *Context, name string, id IDInput, state *IgtmAddressPoolState, opts ...ResourceOption) (*IgtmAddressPool, error)
    public static IgtmAddressPool Get(string name, Input<string> id, IgtmAddressPoolState? state, CustomResourceOptions? opts = null)
    public static IgtmAddressPool get(String name, Output<String> id, IgtmAddressPoolState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:IgtmAddressPool    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:
    AddressSets List<IgtmAddressPoolAddressSet>
    Address list.
    IgtmAddressPoolId string
    ID of the resource.
    MonitorId double
    Monitor ID.
    PoolId double
    Address pool ID.
    PoolName string
    Address pool name, duplicates are not allowed.
    TrafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    AddressSets []IgtmAddressPoolAddressSetArgs
    Address list.
    IgtmAddressPoolId string
    ID of the resource.
    MonitorId float64
    Monitor ID.
    PoolId float64
    Address pool ID.
    PoolName string
    Address pool name, duplicates are not allowed.
    TrafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    addressSets List<IgtmAddressPoolAddressSet>
    Address list.
    igtmAddressPoolId String
    ID of the resource.
    monitorId Double
    Monitor ID.
    poolId Double
    Address pool ID.
    poolName String
    Address pool name, duplicates are not allowed.
    trafficStrategy String
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    addressSets IgtmAddressPoolAddressSet[]
    Address list.
    igtmAddressPoolId string
    ID of the resource.
    monitorId number
    Monitor ID.
    poolId number
    Address pool ID.
    poolName string
    Address pool name, duplicates are not allowed.
    trafficStrategy string
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    address_sets Sequence[IgtmAddressPoolAddressSetArgs]
    Address list.
    igtm_address_pool_id str
    ID of the resource.
    monitor_id float
    Monitor ID.
    pool_id float
    Address pool ID.
    pool_name str
    Address pool name, duplicates are not allowed.
    traffic_strategy str
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
    addressSets List<Property Map>
    Address list.
    igtmAddressPoolId String
    ID of the resource.
    monitorId Number
    Monitor ID.
    poolId Number
    Address pool ID.
    poolName String
    Address pool name, duplicates are not allowed.
    trafficStrategy String
    Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.

    Supporting Types

    IgtmAddressPoolAddressSet, IgtmAddressPoolAddressSetArgs

    Addr string
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    IsEnable string
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    AddressId double
    Address ID.
    CreatedOn string
    Creation time.
    Location string
    Address name.
    Status string
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    UpdatedOn string
    Modification time.
    Weight double
    Weight, required when traffic strategy is WEIGHT; range 1-100.
    Addr string
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    IsEnable string
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    AddressId float64
    Address ID.
    CreatedOn string
    Creation time.
    Location string
    Address name.
    Status string
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    UpdatedOn string
    Modification time.
    Weight float64
    Weight, required when traffic strategy is WEIGHT; range 1-100.
    addr String
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    isEnable String
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    addressId Double
    Address ID.
    createdOn String
    Creation time.
    location String
    Address name.
    status String
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    updatedOn String
    Modification time.
    weight Double
    Weight, required when traffic strategy is WEIGHT; range 1-100.
    addr string
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    isEnable string
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    addressId number
    Address ID.
    createdOn string
    Creation time.
    location string
    Address name.
    status string
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    updatedOn string
    Modification time.
    weight number
    Weight, required when traffic strategy is WEIGHT; range 1-100.
    addr str
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    is_enable str
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    address_id float
    Address ID.
    created_on str
    Creation time.
    location str
    Address name.
    status str
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    updated_on str
    Modification time.
    weight float
    Weight, required when traffic strategy is WEIGHT; range 1-100.
    addr String
    Address value: only supports IPv4, IPv6, and domain name formats. Loopback addresses, reserved addresses, internal addresses, and Tencent reserved network segments are not supported.
    isEnable String
    Whether to enable: DISABLED for disabled, ENABLED for enabled.
    addressId Number
    Address ID.
    createdOn String
    Creation time.
    location String
    Address name.
    status String
    OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
    updatedOn String
    Modification time.
    weight Number
    Weight, required when traffic strategy is WEIGHT; range 1-100.

    Import

    IGTM address pool can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/igtmAddressPool:IgtmAddressPool example 1012132
    

    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