1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dns
  5. AddressPool
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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

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 _default = alicloud.resourcemanager.getResourceGroups({});
const defaultAlarmContactGroup = new alicloud.cms.AlarmContactGroup("default", {alarmContactGroupName: name});
const defaultGtmInstance = new alicloud.dns.GtmInstance("default", {
    instanceName: name,
    paymentType: "Subscription",
    period: 1,
    renewalStatus: "ManualRenewal",
    packageEdition: "standard",
    healthCheckTaskCount: 100,
    smsNotificationCount: 1000,
    publicCnameMode: "SYSTEM_ASSIGN",
    ttl: 60,
    cnameType: "PUBLIC",
    resourceGroupId: _default.then(_default => _default.groups?.[0]?.id),
    alertGroups: [defaultAlarmContactGroup.alarmContactGroupName],
    publicUserDomainName: domainName,
    alertConfigs: [{
        smsNotice: true,
        noticeType: "ADDR_ALERT",
        emailNotice: true,
        dingtalkNotice: true,
    }],
});
const defaultAddressPool = new alicloud.dns.AddressPool("default", {
    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,
    }],
});
Copy
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 = alicloud.resourcemanager.get_resource_groups()
default_alarm_contact_group = alicloud.cms.AlarmContactGroup("default", alarm_contact_group_name=name)
default_gtm_instance = alicloud.dns.GtmInstance("default",
    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.groups[0].id,
    alert_groups=[default_alarm_contact_group.alarm_contact_group_name],
    public_user_domain_name=domain_name,
    alert_configs=[{
        "sms_notice": True,
        "notice_type": "ADDR_ALERT",
        "email_notice": True,
        "dingtalk_notice": True,
    }])
default_address_pool = alicloud.dns.AddressPool("default",
    address_pool_name=name,
    instance_id=default_gtm_instance.id,
    lba_strategy="RATIO",
    type="IPV4",
    addresses=[{
        "attribute_info": """    {
      "lineCodeRectifyType": "RECTIFIED",
      "lineCodes": ["os_namerica_us"]
    }
""",
        "remark": "address_remark",
        "address": "1.1.1.1",
        "mode": "SMART",
        "lba_weight": 1,
    }])
Copy
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
		}
		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultAlarmContactGroup, err := cms.NewAlarmContactGroup(ctx, "default", &cms.AlarmContactGroupArgs{
			AlarmContactGroupName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultGtmInstance, err := dns.NewGtmInstance(ctx, "default", &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(_default.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, "default", &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("    {\n      \"lineCodeRectifyType\": \"RECTIFIED\",\n      \"lineCodes\": [\"os_namerica_us\"]\n    }\n"),
					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
	})
}
Copy
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 @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();

    var defaultAlarmContactGroup = new AliCloud.Cms.AlarmContactGroup("default", new()
    {
        AlarmContactGroupName = name,
    });

    var defaultGtmInstance = new AliCloud.Dns.GtmInstance("default", new()
    {
        InstanceName = name,
        PaymentType = "Subscription",
        Period = 1,
        RenewalStatus = "ManualRenewal",
        PackageEdition = "standard",
        HealthCheckTaskCount = 100,
        SmsNotificationCount = 1000,
        PublicCnameMode = "SYSTEM_ASSIGN",
        Ttl = 60,
        CnameType = "PUBLIC",
        ResourceGroupId = @default.Apply(@default => @default.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("default", 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,
            },
        },
    });

});
Copy
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 default = 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(default_.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());

    }
}
Copy
configuration:
  name:
    type: string
    default: tf_example
  domainName:
    type: string
    default: alicloud-provider.com
resources:
  defaultAlarmContactGroup:
    type: alicloud:cms:AlarmContactGroup
    name: default
    properties:
      alarmContactGroupName: ${name}
  defaultGtmInstance:
    type: alicloud:dns:GtmInstance
    name: default
    properties:
      instanceName: ${name}
      paymentType: Subscription
      period: 1
      renewalStatus: ManualRenewal
      packageEdition: standard
      healthCheckTaskCount: 100
      smsNotificationCount: 1000
      publicCnameMode: SYSTEM_ASSIGN
      ttl: 60
      cnameType: PUBLIC
      resourceGroupId: ${default.groups[0].id}
      alertGroups:
        - ${defaultAlarmContactGroup.alarmContactGroupName}
      publicUserDomainName: ${domainName}
      alertConfigs:
        - smsNotice: true
          noticeType: ADDR_ALERT
          emailNotice: true
          dingtalkNotice: true
  defaultAddressPool:
    type: alicloud:dns:AddressPool
    name: default
    properties:
      addressPoolName: ${name}
      instanceId: ${defaultGtmInstance.id}
      lbaStrategy: RATIO
      type: IPV4
      addresses:
        - attributeInfo: |2
                {
                  "lineCodeRectifyType": "RECTIFIED",
                  "lineCodes": ["os_namerica_us"]
                }
          remark: address_remark
          address: 1.1.1.1
          mode: SMART
          lbaWeight: 1
variables:
  default:
    fn::invoke:
      function: alicloud:resourcemanager:getResourceGroups
      arguments: {}
Copy

Create AddressPool Resource

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

Constructor syntax

new AddressPool(name: string, args: AddressPoolArgs, opts?: CustomResourceOptions);
@overload
def AddressPool(resource_name: str,
                args: AddressPoolArgs,
                opts: Optional[ResourceOptions] = None)

@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)
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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AddressPoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AddressPoolArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AddressPoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AddressPoolArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var addressPoolResource = new AliCloud.Dns.AddressPool("addressPoolResource", new()
{
    AddressPoolName = "string",
    Addresses = new[]
    {
        new AliCloud.Dns.Inputs.AddressPoolAddressArgs
        {
            Address = "string",
            AttributeInfo = "string",
            Mode = "string",
            LbaWeight = 0,
            Remark = "string",
        },
    },
    InstanceId = "string",
    LbaStrategy = "string",
    Type = "string",
});
Copy
example, err := dns.NewAddressPool(ctx, "addressPoolResource", &dns.AddressPoolArgs{
	AddressPoolName: pulumi.String("string"),
	Addresses: dns.AddressPoolAddressArray{
		&dns.AddressPoolAddressArgs{
			Address:       pulumi.String("string"),
			AttributeInfo: pulumi.String("string"),
			Mode:          pulumi.String("string"),
			LbaWeight:     pulumi.Int(0),
			Remark:        pulumi.String("string"),
		},
	},
	InstanceId:  pulumi.String("string"),
	LbaStrategy: pulumi.String("string"),
	Type:        pulumi.String("string"),
})
Copy
var addressPoolResource = new AddressPool("addressPoolResource", AddressPoolArgs.builder()
    .addressPoolName("string")
    .addresses(AddressPoolAddressArgs.builder()
        .address("string")
        .attributeInfo("string")
        .mode("string")
        .lbaWeight(0)
        .remark("string")
        .build())
    .instanceId("string")
    .lbaStrategy("string")
    .type("string")
    .build());
Copy
address_pool_resource = alicloud.dns.AddressPool("addressPoolResource",
    address_pool_name="string",
    addresses=[{
        "address": "string",
        "attribute_info": "string",
        "mode": "string",
        "lba_weight": 0,
        "remark": "string",
    }],
    instance_id="string",
    lba_strategy="string",
    type="string")
Copy
const addressPoolResource = new alicloud.dns.AddressPool("addressPoolResource", {
    addressPoolName: "string",
    addresses: [{
        address: "string",
        attributeInfo: "string",
        mode: "string",
        lbaWeight: 0,
        remark: "string",
    }],
    instanceId: "string",
    lbaStrategy: "string",
    type: "string",
});
Copy
type: alicloud:dns:AddressPool
properties:
    addressPoolName: string
    addresses:
        - address: string
          attributeInfo: string
          lbaWeight: 0
          mode: string
          remark: string
    instanceId: string
    lbaStrategy: string
    type: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AddressPool resource accepts the following input properties:

AddressPoolName This property is required. string
The name of the address pool.
Addresses This property is required. List<Pulumi.AliCloud.Dns.Inputs.AddressPoolAddress>
The address lists of the Address Pool. See address below for details.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
LbaStrategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
string
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
AddressPoolName This property is required. string
The name of the address pool.
Addresses This property is required. []AddressPoolAddressArgs
The address lists of the Address Pool. See address below for details.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
LbaStrategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
string
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
addressPoolName This property is required. String
The name of the address pool.
addresses This property is required. List<AddressPoolAddress>
The address lists of the Address Pool. See address below for details.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
lbaStrategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
String
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
addressPoolName This property is required. string
The name of the address pool.
addresses This property is required. AddressPoolAddress[]
The address lists of the Address Pool. See address below for details.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
lbaStrategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
string
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
address_pool_name This property is required. str
The name of the address pool.
addresses This property is required. Sequence[AddressPoolAddressArgs]
The address lists of the Address Pool. See address below for details.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the instance.
lba_strategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
str
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
addressPoolName This property is required. String
The name of the address pool.
addresses This property is required. List<Property Map>
The address lists of the Address Pool. See address below for details.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
lbaStrategy This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: alicloud:dns:AddressPool    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.AddressPoolAddress>
The address lists of the Address Pool. See address below for details.
InstanceId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 address below for details.
InstanceId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
addressPoolName String
The name of the address pool.
addresses List<AddressPoolAddress>
The address lists of the Address Pool. See address below for details.
instanceId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
addressPoolName string
The name of the address pool.
addresses AddressPoolAddress[]
The address lists of the Address Pool. See address below for details.
instanceId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 address below for details.
instance_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 address below for details.
instanceId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

Supporting Types

AddressPoolAddress
, AddressPoolAddressArgs

Address This property is required. string
The address that you want to add to the address pool.
AttributeInfo This property is required. string
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
Mode This property is required. 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 This property is required. string
The address that you want to add to the address pool.
AttributeInfo This property is required. string
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
Mode This property is required. 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 This property is required. String
The address that you want to add to the address pool.
attributeInfo This property is required. String
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
mode This property is required. 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 This property is required. string
The address that you want to add to the address pool.
attributeInfo This property is required. string
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
mode This property is required. 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 This property is required. str
The address that you want to add to the address pool.
attribute_info This property is required. str
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
mode This property is required. 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 This property is required. String
The address that you want to add to the address pool.
attributeInfo This property is required. String
The source region of the address. expressed as a JSON string. The structure is as follows:

  • LineCodes: List of home lineCodes.
  • lineCodeRectifyType: The rectification type of the line code. Default value: AUTO. Valid values: NO_NEED: no need for rectification. RECTIFIED: rectified. AUTO: automatic rectification.
mode This property is required. 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>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.