alicloud.dns.AddressPool
Explore with Pulumi AI
Provides a Alidns Address Pool resource.
For information about Alidns Address Pool and how to use it, see What is Address Pool.
NOTE: Available since v1.152.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var domainName = config.Get("domainName") ?? "alicloud-provider.com";
var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultAlarmContactGroup = new AliCloud.Cms.AlarmContactGroup("defaultAlarmContactGroup", new()
{
AlarmContactGroupName = name,
});
var defaultGtmInstance = new AliCloud.Dns.GtmInstance("defaultGtmInstance", new()
{
InstanceName = name,
PaymentType = "Subscription",
Period = 1,
RenewalStatus = "ManualRenewal",
PackageEdition = "standard",
HealthCheckTaskCount = 100,
SmsNotificationCount = 1000,
PublicCnameMode = "SYSTEM_ASSIGN",
Ttl = 60,
CnameType = "PUBLIC",
ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
AlertGroups = new[]
{
defaultAlarmContactGroup.AlarmContactGroupName,
},
PublicUserDomainName = domainName,
AlertConfigs = new[]
{
new AliCloud.Dns.Inputs.GtmInstanceAlertConfigArgs
{
SmsNotice = true,
NoticeType = "ADDR_ALERT",
EmailNotice = true,
DingtalkNotice = true,
},
},
});
var defaultAddressPool = new AliCloud.Dns.AddressPool("defaultAddressPool", new()
{
AddressPoolName = name,
InstanceId = defaultGtmInstance.Id,
LbaStrategy = "RATIO",
Type = "IPV4",
Addresses = new[]
{
new AliCloud.Dns.Inputs.AddressPoolAddressArgs
{
AttributeInfo = "{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
Remark = "address_remark",
Address = "1.1.1.1",
Mode = "SMART",
LbaWeight = 1,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
domainName := "alicloud-provider.com"
if param := cfg.Get("domainName"); param != "" {
domainName = param
}
defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
if err != nil {
return err
}
defaultAlarmContactGroup, err := cms.NewAlarmContactGroup(ctx, "defaultAlarmContactGroup", &cms.AlarmContactGroupArgs{
AlarmContactGroupName: pulumi.String(name),
})
if err != nil {
return err
}
defaultGtmInstance, err := dns.NewGtmInstance(ctx, "defaultGtmInstance", &dns.GtmInstanceArgs{
InstanceName: pulumi.String(name),
PaymentType: pulumi.String("Subscription"),
Period: pulumi.Int(1),
RenewalStatus: pulumi.String("ManualRenewal"),
PackageEdition: pulumi.String("standard"),
HealthCheckTaskCount: pulumi.Int(100),
SmsNotificationCount: pulumi.Int(1000),
PublicCnameMode: pulumi.String("SYSTEM_ASSIGN"),
Ttl: pulumi.Int(60),
CnameType: pulumi.String("PUBLIC"),
ResourceGroupId: *pulumi.String(defaultResourceGroups.Groups[0].Id),
AlertGroups: pulumi.StringArray{
defaultAlarmContactGroup.AlarmContactGroupName,
},
PublicUserDomainName: pulumi.String(domainName),
AlertConfigs: dns.GtmInstanceAlertConfigArray{
&dns.GtmInstanceAlertConfigArgs{
SmsNotice: pulumi.Bool(true),
NoticeType: pulumi.String("ADDR_ALERT"),
EmailNotice: pulumi.Bool(true),
DingtalkNotice: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = dns.NewAddressPool(ctx, "defaultAddressPool", &dns.AddressPoolArgs{
AddressPoolName: pulumi.String(name),
InstanceId: defaultGtmInstance.ID(),
LbaStrategy: pulumi.String("RATIO"),
Type: pulumi.String("IPV4"),
Addresses: dns.AddressPoolAddressArray{
&dns.AddressPoolAddressArgs{
AttributeInfo: pulumi.String("{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}"),
Remark: pulumi.String("address_remark"),
Address: pulumi.String("1.1.1.1"),
Mode: pulumi.String("SMART"),
LbaWeight: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.cms.AlarmContactGroup;
import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
import com.pulumi.alicloud.dns.GtmInstance;
import com.pulumi.alicloud.dns.GtmInstanceArgs;
import com.pulumi.alicloud.dns.inputs.GtmInstanceAlertConfigArgs;
import com.pulumi.alicloud.dns.AddressPool;
import com.pulumi.alicloud.dns.AddressPoolArgs;
import com.pulumi.alicloud.dns.inputs.AddressPoolAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
final var domainName = config.get("domainName").orElse("alicloud-provider.com");
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultAlarmContactGroup = new AlarmContactGroup("defaultAlarmContactGroup", AlarmContactGroupArgs.builder()
.alarmContactGroupName(name)
.build());
var defaultGtmInstance = new GtmInstance("defaultGtmInstance", GtmInstanceArgs.builder()
.instanceName(name)
.paymentType("Subscription")
.period(1)
.renewalStatus("ManualRenewal")
.packageEdition("standard")
.healthCheckTaskCount(100)
.smsNotificationCount(1000)
.publicCnameMode("SYSTEM_ASSIGN")
.ttl(60)
.cnameType("PUBLIC")
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.alertGroups(defaultAlarmContactGroup.alarmContactGroupName())
.publicUserDomainName(domainName)
.alertConfigs(GtmInstanceAlertConfigArgs.builder()
.smsNotice(true)
.noticeType("ADDR_ALERT")
.emailNotice(true)
.dingtalkNotice(true)
.build())
.build());
var defaultAddressPool = new AddressPool("defaultAddressPool", AddressPoolArgs.builder()
.addressPoolName(name)
.instanceId(defaultGtmInstance.id())
.lbaStrategy("RATIO")
.type("IPV4")
.addresses(AddressPoolAddressArgs.builder()
.attributeInfo("{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}")
.remark("address_remark")
.address("1.1.1.1")
.mode("SMART")
.lbaWeight(1)
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
domain_name = config.get("domainName")
if domain_name is None:
domain_name = "alicloud-provider.com"
default_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_alarm_contact_group = alicloud.cms.AlarmContactGroup("defaultAlarmContactGroup", alarm_contact_group_name=name)
default_gtm_instance = alicloud.dns.GtmInstance("defaultGtmInstance",
instance_name=name,
payment_type="Subscription",
period=1,
renewal_status="ManualRenewal",
package_edition="standard",
health_check_task_count=100,
sms_notification_count=1000,
public_cname_mode="SYSTEM_ASSIGN",
ttl=60,
cname_type="PUBLIC",
resource_group_id=default_resource_groups.groups[0].id,
alert_groups=[default_alarm_contact_group.alarm_contact_group_name],
public_user_domain_name=domain_name,
alert_configs=[alicloud.dns.GtmInstanceAlertConfigArgs(
sms_notice=True,
notice_type="ADDR_ALERT",
email_notice=True,
dingtalk_notice=True,
)])
default_address_pool = alicloud.dns.AddressPool("defaultAddressPool",
address_pool_name=name,
instance_id=default_gtm_instance.id,
lba_strategy="RATIO",
type="IPV4",
addresses=[alicloud.dns.AddressPoolAddressArgs(
attribute_info="{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
remark="address_remark",
address="1.1.1.1",
mode="SMART",
lba_weight=1,
)])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const domainName = config.get("domainName") || "alicloud-provider.com";
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultAlarmContactGroup = new alicloud.cms.AlarmContactGroup("defaultAlarmContactGroup", {alarmContactGroupName: name});
const defaultGtmInstance = new alicloud.dns.GtmInstance("defaultGtmInstance", {
instanceName: name,
paymentType: "Subscription",
period: 1,
renewalStatus: "ManualRenewal",
packageEdition: "standard",
healthCheckTaskCount: 100,
smsNotificationCount: 1000,
publicCnameMode: "SYSTEM_ASSIGN",
ttl: 60,
cnameType: "PUBLIC",
resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?.[0]?.id),
alertGroups: [defaultAlarmContactGroup.alarmContactGroupName],
publicUserDomainName: domainName,
alertConfigs: [{
smsNotice: true,
noticeType: "ADDR_ALERT",
emailNotice: true,
dingtalkNotice: true,
}],
});
const defaultAddressPool = new alicloud.dns.AddressPool("defaultAddressPool", {
addressPoolName: name,
instanceId: defaultGtmInstance.id,
lbaStrategy: "RATIO",
type: "IPV4",
addresses: [{
attributeInfo: "{\"lineCodeRectifyType\":\"RECTIFIED\",\"lineCodes\":[\"os_namerica_us\"]}",
remark: "address_remark",
address: "1.1.1.1",
mode: "SMART",
lbaWeight: 1,
}],
});
configuration:
name:
type: string
default: tf_example
domainName:
type: string
default: alicloud-provider.com
resources:
defaultAlarmContactGroup:
type: alicloud:cms:AlarmContactGroup
properties:
alarmContactGroupName: ${name}
defaultGtmInstance:
type: alicloud:dns:GtmInstance
properties:
instanceName: ${name}
paymentType: Subscription
period: 1
renewalStatus: ManualRenewal
packageEdition: standard
healthCheckTaskCount: 100
smsNotificationCount: 1000
publicCnameMode: SYSTEM_ASSIGN
ttl: 60
cnameType: PUBLIC
resourceGroupId: ${defaultResourceGroups.groups[0].id}
alertGroups:
- ${defaultAlarmContactGroup.alarmContactGroupName}
publicUserDomainName: ${domainName}
alertConfigs:
- smsNotice: true
noticeType: ADDR_ALERT
emailNotice: true
dingtalkNotice: true
defaultAddressPool:
type: alicloud:dns:AddressPool
properties:
addressPoolName: ${name}
instanceId: ${defaultGtmInstance.id}
lbaStrategy: RATIO
type: IPV4
addresses:
- attributeInfo: '{"lineCodeRectifyType":"RECTIFIED","lineCodes":["os_namerica_us"]}'
remark: address_remark
address: 1.1.1.1
mode: SMART
lbaWeight: 1
variables:
defaultResourceGroups:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
Create AddressPool Resource
new AddressPool(name: string, args: AddressPoolArgs, opts?: CustomResourceOptions);
@overload
def AddressPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_pool_name: Optional[str] = None,
addresses: Optional[Sequence[AddressPoolAddressArgs]] = None,
instance_id: Optional[str] = None,
lba_strategy: Optional[str] = None,
type: Optional[str] = None)
@overload
def AddressPool(resource_name: str,
args: AddressPoolArgs,
opts: Optional[ResourceOptions] = None)
func NewAddressPool(ctx *Context, name string, args AddressPoolArgs, opts ...ResourceOption) (*AddressPool, error)
public AddressPool(string name, AddressPoolArgs args, CustomResourceOptions? opts = null)
public AddressPool(String name, AddressPoolArgs args)
public AddressPool(String name, AddressPoolArgs args, CustomResourceOptions options)
type: alicloud:dns:AddressPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddressPoolArgs
- 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 AddressPoolArgs
- 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 AddressPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddressPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AddressPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AddressPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AddressPool resource accepts the following input properties:
- Address
Pool stringName The name of the address pool.
- Addresses
List<Pulumi.
Ali Cloud. Dns. Inputs. Address Pool Address> The address lists of the Address Pool. See
address
below for details.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- Type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- Address
Pool stringName The name of the address pool.
- Addresses
[]Address
Pool Address Args The address lists of the Address Pool. See
address
below for details.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- Type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses
List<Address
Pool Address> The address lists of the Address Pool. See
address
below for details.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type String
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool stringName The name of the address pool.
- addresses
Address
Pool Address[] The address lists of the Address Pool. See
address
below for details.- instance
Id string The ID of the instance.
- lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address_
pool_ strname The name of the address pool.
- addresses
Sequence[Address
Pool Address Args] The address lists of the Address Pool. See
address
below for details.- instance_
id str The ID of the instance.
- lba_
strategy str The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type str
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses List<Property Map>
The address lists of the Address Pool. See
address
below for details.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type String
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AddressPool resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing AddressPool Resource
Get an existing AddressPool 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?: AddressPoolState, opts?: CustomResourceOptions): AddressPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_pool_name: Optional[str] = None,
addresses: Optional[Sequence[AddressPoolAddressArgs]] = None,
instance_id: Optional[str] = None,
lba_strategy: Optional[str] = None,
type: Optional[str] = None) -> AddressPool
func GetAddressPool(ctx *Context, name string, id IDInput, state *AddressPoolState, opts ...ResourceOption) (*AddressPool, error)
public static AddressPool Get(string name, Input<string> id, AddressPoolState? state, CustomResourceOptions? opts = null)
public static AddressPool get(String name, Output<String> id, AddressPoolState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Pool stringName The name of the address pool.
- Addresses
List<Pulumi.
Ali Cloud. Dns. Inputs. Address Pool Address> The address lists of the Address Pool. See
address
below for details.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- Type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- Address
Pool stringName The name of the address pool.
- Addresses
[]Address
Pool Address Args The address lists of the Address Pool. See
address
below for details.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- Type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses
List<Address
Pool Address> The address lists of the Address Pool. See
address
below for details.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type String
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool stringName The name of the address pool.
- addresses
Address
Pool Address[] The address lists of the Address Pool. See
address
below for details.- instance
Id string The ID of the instance.
- lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type string
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address_
pool_ strname The name of the address pool.
- addresses
Sequence[Address
Pool Address Args] The address lists of the Address Pool. See
address
below for details.- instance_
id str The ID of the instance.
- lba_
strategy str The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type str
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses List<Property Map>
The address lists of the Address Pool. See
address
below for details.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type String
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
Supporting Types
AddressPoolAddress, AddressPoolAddressArgs
- Address string
The address that you want to add to the address pool.
- Attribute
Info string The source region of the address. expressed as a JSON string. The structure is as follows:
- Mode string
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- Lba
Weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- Remark string
The description of the address.
- Address string
The address that you want to add to the address pool.
- Attribute
Info string The source region of the address. expressed as a JSON string. The structure is as follows:
- Mode string
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- Lba
Weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- Remark string
The description of the address.
- address String
The address that you want to add to the address pool.
- attribute
Info String The source region of the address. expressed as a JSON string. The structure is as follows:
- mode String
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- lba
Weight Integer The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark String
The description of the address.
- address string
The address that you want to add to the address pool.
- attribute
Info string The source region of the address. expressed as a JSON string. The structure is as follows:
- mode string
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- lba
Weight number The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark string
The description of the address.
- address str
The address that you want to add to the address pool.
- attribute_
info str The source region of the address. expressed as a JSON string. The structure is as follows:
- mode str
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- lba_
weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark str
The description of the address.
- address String
The address that you want to add to the address pool.
- attribute
Info String The source region of the address. expressed as a JSON string. The structure is as follows:
- mode String
The type of the address. Valid values:
SMART
,ONLINE
andOFFLINE
.- lba
Weight Number The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark String
The description of the address.
Import
Alidns Address Pool can be imported using the id, e.g.
$ pulumi import alicloud:dns/addressPool:AddressPool example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.