Provides a resource to create a IGTM address pool
NOTE: Resource
tencentcloud.IgtmInstanceneeds 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:
- Address
Sets List<IgtmAddress Pool Address Set> - Address list.
- Pool
Name string - Address pool name, duplicates are not allowed.
- Traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- Igtm
Address stringPool Id - ID of the resource.
- Monitor
Id double - Monitor ID.
- Address
Sets []IgtmAddress Pool Address Set Args - Address list.
- Pool
Name string - Address pool name, duplicates are not allowed.
- Traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- Igtm
Address stringPool Id - ID of the resource.
- Monitor
Id float64 - Monitor ID.
- address
Sets List<IgtmAddress Pool Address Set> - Address list.
- pool
Name String - Address pool name, duplicates are not allowed.
- traffic
Strategy String - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- igtm
Address StringPool Id - ID of the resource.
- monitor
Id Double - Monitor ID.
- address
Sets IgtmAddress Pool Address Set[] - Address list.
- pool
Name string - Address pool name, duplicates are not allowed.
- traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- igtm
Address stringPool Id - ID of the resource.
- monitor
Id number - Monitor ID.
- address_
sets Sequence[IgtmAddress Pool Address Set Args] - 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_ strpool_ id - ID of the resource.
- monitor_
id float - Monitor ID.
- address
Sets List<Property Map> - Address list.
- pool
Name String - Address pool name, duplicates are not allowed.
- traffic
Strategy String - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- igtm
Address StringPool Id - ID of the resource.
- monitor
Id Number - Monitor ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the IgtmAddressPool resource produces the following output properties:
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) -> IgtmAddressPoolfunc 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.
- Address
Sets List<IgtmAddress Pool Address Set> - Address list.
- Igtm
Address stringPool Id - ID of the resource.
- Monitor
Id double - Monitor ID.
- Pool
Id double - Address pool ID.
- Pool
Name string - Address pool name, duplicates are not allowed.
- Traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- Address
Sets []IgtmAddress Pool Address Set Args - Address list.
- Igtm
Address stringPool Id - ID of the resource.
- Monitor
Id float64 - Monitor ID.
- Pool
Id float64 - Address pool ID.
- Pool
Name string - Address pool name, duplicates are not allowed.
- Traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- address
Sets List<IgtmAddress Pool Address Set> - Address list.
- igtm
Address StringPool Id - ID of the resource.
- monitor
Id Double - Monitor ID.
- pool
Id Double - Address pool ID.
- pool
Name String - Address pool name, duplicates are not allowed.
- traffic
Strategy String - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- address
Sets IgtmAddress Pool Address Set[] - Address list.
- igtm
Address stringPool Id - ID of the resource.
- monitor
Id number - Monitor ID.
- pool
Id number - Address pool ID.
- pool
Name string - Address pool name, duplicates are not allowed.
- traffic
Strategy string - Traffic strategy: WEIGHT for load balancing, ALL for resolving all healthy addresses.
- address_
sets Sequence[IgtmAddress Pool Address Set Args] - Address list.
- igtm_
address_ strpool_ id - 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.
- address
Sets List<Property Map> - Address list.
- igtm
Address StringPool Id - ID of the resource.
- monitor
Id Number - Monitor ID.
- pool
Id Number - Address pool ID.
- pool
Name String - Address pool name, duplicates are not allowed.
- traffic
Strategy 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.
- Is
Enable string - Whether to enable: DISABLED for disabled, ENABLED for enabled.
- Address
Id double - Address ID.
- Created
On string - Creation time.
- Location string
- Address name.
- Status string
- OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
- Updated
On 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.
- Is
Enable string - Whether to enable: DISABLED for disabled, ENABLED for enabled.
- Address
Id float64 - Address ID.
- Created
On string - Creation time.
- Location string
- Address name.
- Status string
- OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
- Updated
On 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.
- is
Enable String - Whether to enable: DISABLED for disabled, ENABLED for enabled.
- address
Id Double - Address ID.
- created
On String - Creation time.
- location String
- Address name.
- status String
- OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
- updated
On 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.
- is
Enable string - Whether to enable: DISABLED for disabled, ENABLED for enabled.
- address
Id number - Address ID.
- created
On string - Creation time.
- location string
- Address name.
- status string
- OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
- updated
On 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.
- is
Enable String - Whether to enable: DISABLED for disabled, ENABLED for enabled.
- address
Id Number - Address ID.
- created
On String - Creation time.
- location String
- Address name.
- status String
- OK for normal, DOWN for failure, WARN for risk, UNKNOWN for probing, UNMONITORED for unknown.
- updated
On 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
tencentcloudTerraform Provider.
