alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.dns.AddressPool

Provides a Alidns Address Pool resource.

For information about Alidns Address Pool and how to use it, see What is Address Pool.

NOTE: Available in v1.152.0+.

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:

AddressPoolName string

The name of the address pool.

Addresses List<Pulumi.AliCloud.Dns.Inputs.AddressPoolAddressArgs>

The address lists of the Address Pool. See the following Block address.

InstanceId string

The ID of the instance.

LbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

Type string

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

AddressPoolName string

The name of the address pool.

Addresses []AddressPoolAddressArgs

The address lists of the Address Pool. See the following Block address.

InstanceId string

The ID of the instance.

LbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

Type string

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName String

The name of the address pool.

addresses List<AddressPoolAddressArgs>

The address lists of the Address Pool. See the following Block address.

instanceId String

The ID of the instance.

lbaStrategy String

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

type String

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName string

The name of the address pool.

addresses AddressPoolAddressArgs[]

The address lists of the Address Pool. See the following Block address.

instanceId string

The ID of the instance.

lbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. 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_name str

The name of the address pool.

addresses Sequence[AddressPoolAddressArgs]

The address lists of the Address Pool. See the following Block address.

instance_id str

The ID of the instance.

lba_strategy str

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

type str

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName String

The name of the address pool.

addresses List<Property Map>

The address lists of the Address Pool. See the following Block address.

instanceId String

The ID of the instance.

lbaStrategy String

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. 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.
The following state arguments are supported:
AddressPoolName string

The name of the address pool.

Addresses List<Pulumi.AliCloud.Dns.Inputs.AddressPoolAddressArgs>

The address lists of the Address Pool. See the following Block address.

InstanceId string

The ID of the instance.

LbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

Type string

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

AddressPoolName string

The name of the address pool.

Addresses []AddressPoolAddressArgs

The address lists of the Address Pool. See the following Block address.

InstanceId string

The ID of the instance.

LbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

Type string

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName String

The name of the address pool.

addresses List<AddressPoolAddressArgs>

The address lists of the Address Pool. See the following Block address.

instanceId String

The ID of the instance.

lbaStrategy String

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

type String

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName string

The name of the address pool.

addresses AddressPoolAddressArgs[]

The address lists of the Address Pool. See the following Block address.

instanceId string

The ID of the instance.

lbaStrategy string

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. 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_name str

The name of the address pool.

addresses Sequence[AddressPoolAddressArgs]

The address lists of the Address Pool. See the following Block address.

instance_id str

The ID of the instance.

lba_strategy str

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.

type str

The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

addressPoolName String

The name of the address pool.

addresses List<Property Map>

The address lists of the Address Pool. See the following Block address.

instanceId String

The ID of the instance.

lbaStrategy String

The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. 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

Address string

The address lists of the Address Pool. See the following Block address.

AttributeInfo 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 and OFFLINE.

LbaWeight int

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

Remark string

The description of the address.

Address string

The address lists of the Address Pool. See the following Block address.

AttributeInfo 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 and OFFLINE.

LbaWeight int

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

Remark string

The description of the address.

address String

The address lists of the Address Pool. See the following Block address.

attributeInfo 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 and OFFLINE.

lbaWeight Integer

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

remark String

The description of the address.

address string

The address lists of the Address Pool. See the following Block address.

attributeInfo 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 and OFFLINE.

lbaWeight number

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

remark string

The description of the address.

address str

The address lists of the Address Pool. See the following Block address.

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 and OFFLINE.

lba_weight int

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

remark str

The description of the address.

address String

The address lists of the Address Pool. See the following Block address.

attributeInfo 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 and OFFLINE.

lbaWeight Number

The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.

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.