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,
    }],
});
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,
    }])
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
	})
}
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,
            },
        },
    });
});
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());
    }
}
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: {}
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 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.
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",
});
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"),
})
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());
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")
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",
});
type: alicloud:dns:AddressPool
properties:
    addressPoolName: string
    addresses:
        - address: string
          attributeInfo: string
          lbaWeight: 0
          mode: string
          remark: string
    instanceId: string
    lbaStrategy: string
    type: string
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:
- AddressPool 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 addressbelow for details.
- InstanceId string
- The ID of the instance.
- LbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- Type string
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- AddressPool stringName 
- The name of the address pool.
- Addresses
[]AddressPool Address Args 
- The address lists of the Address Pool. See addressbelow for details.
- InstanceId string
- The ID of the instance.
- LbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- Type string
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool StringName 
- The name of the address pool.
- addresses
List<AddressPool Address> 
- The address lists of the Address Pool. See addressbelow for details.
- instanceId String
- The ID of the instance.
- lbaStrategy String
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- type String
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool stringName 
- The name of the address pool.
- addresses
AddressPool Address[] 
- The address lists of the Address Pool. See addressbelow for details.
- instanceId string
- The ID of the instance.
- lbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.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[AddressPool Address Args] 
- The address lists of the Address Pool. See addressbelow for details.
- instance_id str
- The ID of the instance.
- lba_strategy str
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- type str
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool StringName 
- The name of the address pool.
- addresses List<Property Map>
- The address lists of the Address Pool. See addressbelow for details.
- instanceId String
- The ID of the instance.
- lbaStrategy String
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.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) -> AddressPoolfunc 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
- 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.
- AddressPool 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 addressbelow for details.
- InstanceId string
- The ID of the instance.
- LbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- Type string
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- AddressPool stringName 
- The name of the address pool.
- Addresses
[]AddressPool Address Args 
- The address lists of the Address Pool. See addressbelow for details.
- InstanceId string
- The ID of the instance.
- LbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- Type string
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool StringName 
- The name of the address pool.
- addresses
List<AddressPool Address> 
- The address lists of the Address Pool. See addressbelow for details.
- instanceId String
- The ID of the instance.
- lbaStrategy String
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- type String
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool stringName 
- The name of the address pool.
- addresses
AddressPool Address[] 
- The address lists of the Address Pool. See addressbelow for details.
- instanceId string
- The ID of the instance.
- lbaStrategy string
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.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[AddressPool Address Args] 
- The address lists of the Address Pool. See addressbelow for details.
- instance_id str
- The ID of the instance.
- lba_strategy str
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.ALL_RR: returns all addresses.RATIO: returns addresses by weight.
- type str
- The type of the address pool. Valid values: IPV4,IPV6,DOMAIN.
- addressPool StringName 
- The name of the address pool.
- addresses List<Property Map>
- The address lists of the Address Pool. See addressbelow for details.
- instanceId String
- The ID of the instance.
- lbaStrategy String
- The load balancing policy of the address pool. Valid values:ALL_RRorRATIO.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.
- AttributeInfo 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 string
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- LbaWeight int
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- Remark string
- The description of the address.
- Address string
- The address that you want to add to the address pool.
- AttributeInfo 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 string
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- LbaWeight int
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- Remark string
- The description of the address.
- address String
- The address that you want to add to the address pool.
- attributeInfo 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 String
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- lbaWeight Integer
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- remark String
- The description of the address.
- address string
- The address that you want to add to the address pool.
- attributeInfo 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 string
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- lbaWeight number
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- 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:- 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 str
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- lba_weight int
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- remark str
- The description of the address.
- address String
- The address that you want to add to the address pool.
- attributeInfo 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 String
- The type of the address. Valid values:SMART,ONLINEandOFFLINE.
- lbaWeight Number
- The weight of the address. NOTE: The attribute is valid when the attribute lba_strategyisRATIO.
- 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>
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 alicloudTerraform Provider.