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:
- Fallback
Address List<IgtmPool Sets Strategy Fallback Address Pool Set> - Fallback address pool set, only one level allowed and address pool count must be 1.
- Instance
Id string - Instance ID.
- Main
Address List<IgtmPool Sets Strategy Main Address Pool Set> - Main address pool set, up to four levels allowed.
- Sources
List<Igtm
Strategy Source> - Resolution lines.
- Strategy
Name string - Strategy name, cannot be duplicated.
- Igtm
Strategy stringId - ID of the resource.
- Keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- Switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- Fallback
Address []IgtmPool Sets Strategy Fallback Address Pool Set Args - Fallback address pool set, only one level allowed and address pool count must be 1.
- Instance
Id string - Instance ID.
- Main
Address []IgtmPool Sets Strategy Main Address Pool Set Args - Main address pool set, up to four levels allowed.
- Sources
[]Igtm
Strategy Source Args - Resolution lines.
- Strategy
Name string - Strategy name, cannot be duplicated.
- Igtm
Strategy stringId - ID of the resource.
- Keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- Switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address List<IgtmPool Sets Strategy Fallback Address Pool Set> - Fallback address pool set, only one level allowed and address pool count must be 1.
- instance
Id String - Instance ID.
- main
Address List<IgtmPool Sets Strategy Main Address Pool Set> - Main address pool set, up to four levels allowed.
- sources
List<Igtm
Strategy Source> - Resolution lines.
- strategy
Name String - Strategy name, cannot be duplicated.
- igtm
Strategy StringId - ID of the resource.
- keep
Domain StringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- switch
Pool StringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address IgtmPool Sets Strategy Fallback Address Pool Set[] - Fallback address pool set, only one level allowed and address pool count must be 1.
- instance
Id string - Instance ID.
- main
Address IgtmPool Sets Strategy Main Address Pool Set[] - Main address pool set, up to four levels allowed.
- sources
Igtm
Strategy Source[] - Resolution lines.
- strategy
Name string - Strategy name, cannot be duplicated.
- igtm
Strategy stringId - ID of the resource.
- keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback_
address_ Sequence[Igtmpool_ sets Strategy Fallback Address Pool Set Args] - Fallback address pool set, only one level allowed and address pool count must be 1.
- instance_
id str - Instance ID.
- main_
address_ Sequence[Igtmpool_ sets Strategy Main Address Pool Set Args] - Main address pool set, up to four levels allowed.
- sources
Sequence[Igtm
Strategy Source Args] - Resolution lines.
- strategy_
name str - Strategy name, cannot be duplicated.
- igtm_
strategy_ strid - ID of the resource.
- keep_
domain_ strrecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- switch_
pool_ strtype - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address List<Property Map>Pool Sets - Fallback address pool set, only one level allowed and address pool count must be 1.
- instance
Id String - Instance ID.
- main
Address List<Property Map>Pool Sets - Main address pool set, up to four levels allowed.
- sources List<Property Map>
- Resolution lines.
- strategy
Name String - Strategy name, cannot be duplicated.
- igtm
Strategy StringId - ID of the resource.
- keep
Domain StringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- switch
Pool StringType - 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.
- Strategy
Id double - Strategy ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Strategy
Id float64 - Strategy ID.
- id String
- The provider-assigned unique ID for this managed resource.
- strategy
Id Double - Strategy ID.
- id string
- The provider-assigned unique ID for this managed resource.
- strategy
Id 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.
- strategy
Id 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) -> IgtmStrategyfunc 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.
- Fallback
Address List<IgtmPool Sets Strategy Fallback Address Pool Set> - Fallback address pool set, only one level allowed and address pool count must be 1.
- Igtm
Strategy stringId - ID of the resource.
- Instance
Id string - Instance ID.
- Keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- Main
Address List<IgtmPool Sets Strategy Main Address Pool Set> - Main address pool set, up to four levels allowed.
- Sources
List<Igtm
Strategy Source> - Resolution lines.
- Strategy
Id double - Strategy ID.
- Strategy
Name string - Strategy name, cannot be duplicated.
- Switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- Fallback
Address []IgtmPool Sets Strategy Fallback Address Pool Set Args - Fallback address pool set, only one level allowed and address pool count must be 1.
- Igtm
Strategy stringId - ID of the resource.
- Instance
Id string - Instance ID.
- Keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- Main
Address []IgtmPool Sets Strategy Main Address Pool Set Args - Main address pool set, up to four levels allowed.
- Sources
[]Igtm
Strategy Source Args - Resolution lines.
- Strategy
Id float64 - Strategy ID.
- Strategy
Name string - Strategy name, cannot be duplicated.
- Switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address List<IgtmPool Sets Strategy Fallback Address Pool Set> - Fallback address pool set, only one level allowed and address pool count must be 1.
- igtm
Strategy StringId - ID of the resource.
- instance
Id String - Instance ID.
- keep
Domain StringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- main
Address List<IgtmPool Sets Strategy Main Address Pool Set> - Main address pool set, up to four levels allowed.
- sources
List<Igtm
Strategy Source> - Resolution lines.
- strategy
Id Double - Strategy ID.
- strategy
Name String - Strategy name, cannot be duplicated.
- switch
Pool StringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address IgtmPool Sets Strategy Fallback Address Pool Set[] - Fallback address pool set, only one level allowed and address pool count must be 1.
- igtm
Strategy stringId - ID of the resource.
- instance
Id string - Instance ID.
- keep
Domain stringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- main
Address IgtmPool Sets Strategy Main Address Pool Set[] - Main address pool set, up to four levels allowed.
- sources
Igtm
Strategy Source[] - Resolution lines.
- strategy
Id number - Strategy ID.
- strategy
Name string - Strategy name, cannot be duplicated.
- switch
Pool stringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback_
address_ Sequence[Igtmpool_ sets Strategy Fallback Address Pool Set Args] - Fallback address pool set, only one level allowed and address pool count must be 1.
- igtm_
strategy_ strid - ID of the resource.
- instance_
id str - Instance ID.
- keep_
domain_ strrecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- main_
address_ Sequence[Igtmpool_ sets Strategy Main Address Pool Set Args] - Main address pool set, up to four levels allowed.
- sources
Sequence[Igtm
Strategy Source Args] - Resolution lines.
- strategy_
id float - Strategy ID.
- strategy_
name str - Strategy name, cannot be duplicated.
- switch_
pool_ strtype - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
- fallback
Address List<Property Map>Pool Sets - Fallback address pool set, only one level allowed and address pool count must be 1.
- igtm
Strategy StringId - ID of the resource.
- instance
Id String - Instance ID.
- keep
Domain StringRecords - Whether to enable policy forced retention of default lines disabled, enabled, default is disabled and only one policy can be enabled.
- main
Address List<Property Map>Pool Sets - Main address pool set, up to four levels allowed.
- sources List<Property Map>
- Resolution lines.
- strategy
Id Number - Strategy ID.
- strategy
Name String - Strategy name, cannot be duplicated.
- switch
Pool StringType - Policy scheduling mode: AUTO default switching; STOP only pause without switching.
Supporting Types
IgtmStrategyFallbackAddressPoolSet, IgtmStrategyFallbackAddressPoolSetArgs
- Address
Pools List<IgtmStrategy Fallback Address Pool Set Address Pool> - Address pool IDs and weights in the set, array.
- Main
Address doublePool Id - Address pool set ID.
- Min
Survive doubleNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- Traffic
Strategy 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 []IgtmStrategy Fallback Address Pool Set Address Pool - Address pool IDs and weights in the set, array.
- Main
Address float64Pool Id - Address pool set ID.
- Min
Survive float64Num - Switch threshold, cannot exceed the total number of addresses in the main set.
- Traffic
Strategy 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 List<IgtmStrategy Fallback Address Pool Set Address Pool> - Address pool IDs and weights in the set, array.
- main
Address DoublePool Id - Address pool set ID.
- min
Survive DoubleNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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 IgtmStrategy Fallback Address Pool Set Address Pool[] - Address pool IDs and weights in the set, array.
- main
Address numberPool Id - Address pool set ID.
- min
Survive numberNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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[IgtmStrategy Fallback Address Pool Set Address Pool] - Address pool IDs and weights in the set, array.
- main_
address_ floatpool_ id - Address pool set ID.
- min_
survive_ floatnum - 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.
- address
Pools List<Property Map> - Address pool IDs and weights in the set, array.
- main
Address NumberPool Id - Address pool set ID.
- min
Survive NumberNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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
IgtmStrategyMainAddressPoolSet, IgtmStrategyMainAddressPoolSetArgs
- Address
Pools List<IgtmStrategy Main Address Pool Set Address Pool> - Address pool IDs and weights in the set, array.
- Main
Address doublePool Id - Address pool set ID.
- Min
Survive doubleNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- Traffic
Strategy 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 []IgtmStrategy Main Address Pool Set Address Pool - Address pool IDs and weights in the set, array.
- Main
Address float64Pool Id - Address pool set ID.
- Min
Survive float64Num - Switch threshold, cannot exceed the total number of addresses in the main set.
- Traffic
Strategy 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 List<IgtmStrategy Main Address Pool Set Address Pool> - Address pool IDs and weights in the set, array.
- main
Address DoublePool Id - Address pool set ID.
- min
Survive DoubleNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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 IgtmStrategy Main Address Pool Set Address Pool[] - Address pool IDs and weights in the set, array.
- main
Address numberPool Id - Address pool set ID.
- min
Survive numberNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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[IgtmStrategy Main Address Pool Set Address Pool] - Address pool IDs and weights in the set, array.
- main_
address_ floatpool_ id - Address pool set ID.
- min_
survive_ floatnum - 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.
- address
Pools List<Property Map> - Address pool IDs and weights in the set, array.
- main
Address NumberPool Id - Address pool set ID.
- min
Survive NumberNum - Switch threshold, cannot exceed the total number of addresses in the main set.
- traffic
Strategy 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
IgtmStrategySource, IgtmStrategySourceArgs
- dns_
line_ floatid - Resolution request source line ID.
- name str
- 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
tencentcloudTerraform Provider.
