1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eipanycast
  5. getAnycastEipAddresses
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.eipanycast.getAnycastEipAddresses

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Eipanycast Anycast Eip Addresses of the current Alibaba Cloud user.

    NOTE: Available in v1.113.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.eipanycast.getAnycastEipAddresses({
        ids: ["example_value"],
        nameRegex: "the_resource_name",
    });
    export const firstEipanycastAnycastEipAddressId = example.then(example => example.addresses?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.eipanycast.get_anycast_eip_addresses(ids=["example_value"],
        name_regex="the_resource_name")
    pulumi.export("firstEipanycastAnycastEipAddressId", example.addresses[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eipanycast"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := eipanycast.GetAnycastEipAddresses(ctx, &eipanycast.GetAnycastEipAddressesArgs{
    			Ids: []string{
    				"example_value",
    			},
    			NameRegex: pulumi.StringRef("the_resource_name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstEipanycastAnycastEipAddressId", example.Addresses[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.EipAnycast.GetAnycastEipAddresses.Invoke(new()
        {
            Ids = new[]
            {
                "example_value",
            },
            NameRegex = "the_resource_name",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstEipanycastAnycastEipAddressId"] = example.Apply(getAnycastEipAddressesResult => getAnycastEipAddressesResult.Addresses[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eipanycast.EipanycastFunctions;
    import com.pulumi.alicloud.eipanycast.inputs.GetAnycastEipAddressesArgs;
    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 example = EipanycastFunctions.getAnycastEipAddresses(GetAnycastEipAddressesArgs.builder()
                .ids("example_value")
                .nameRegex("the_resource_name")
                .build());
    
            ctx.export("firstEipanycastAnycastEipAddressId", example.applyValue(getAnycastEipAddressesResult -> getAnycastEipAddressesResult.addresses()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:eipanycast:getAnycastEipAddresses
          Arguments:
            ids:
              - example_value
            nameRegex: the_resource_name
    outputs:
      firstEipanycastAnycastEipAddressId: ${example.addresses[0].id}
    

    Using getAnycastEipAddresses

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAnycastEipAddresses(args: GetAnycastEipAddressesArgs, opts?: InvokeOptions): Promise<GetAnycastEipAddressesResult>
    function getAnycastEipAddressesOutput(args: GetAnycastEipAddressesOutputArgs, opts?: InvokeOptions): Output<GetAnycastEipAddressesResult>
    def get_anycast_eip_addresses(anycast_eip_address_name: Optional[str] = None,
                                  bind_instance_ids: Optional[Sequence[str]] = None,
                                  business_status: Optional[str] = None,
                                  ids: Optional[Sequence[str]] = None,
                                  internet_charge_type: Optional[str] = None,
                                  ip_address: Optional[str] = None,
                                  name_regex: Optional[str] = None,
                                  output_file: Optional[str] = None,
                                  payment_type: Optional[str] = None,
                                  service_location: Optional[str] = None,
                                  status: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAnycastEipAddressesResult
    def get_anycast_eip_addresses_output(anycast_eip_address_name: Optional[pulumi.Input[str]] = None,
                                  bind_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  business_status: Optional[pulumi.Input[str]] = None,
                                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  internet_charge_type: Optional[pulumi.Input[str]] = None,
                                  ip_address: Optional[pulumi.Input[str]] = None,
                                  name_regex: Optional[pulumi.Input[str]] = None,
                                  output_file: Optional[pulumi.Input[str]] = None,
                                  payment_type: Optional[pulumi.Input[str]] = None,
                                  service_location: Optional[pulumi.Input[str]] = None,
                                  status: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAnycastEipAddressesResult]
    func GetAnycastEipAddresses(ctx *Context, args *GetAnycastEipAddressesArgs, opts ...InvokeOption) (*GetAnycastEipAddressesResult, error)
    func GetAnycastEipAddressesOutput(ctx *Context, args *GetAnycastEipAddressesOutputArgs, opts ...InvokeOption) GetAnycastEipAddressesResultOutput

    > Note: This function is named GetAnycastEipAddresses in the Go SDK.

    public static class GetAnycastEipAddresses 
    {
        public static Task<GetAnycastEipAddressesResult> InvokeAsync(GetAnycastEipAddressesArgs args, InvokeOptions? opts = null)
        public static Output<GetAnycastEipAddressesResult> Invoke(GetAnycastEipAddressesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAnycastEipAddressesResult> getAnycastEipAddresses(GetAnycastEipAddressesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:eipanycast/getAnycastEipAddresses:getAnycastEipAddresses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AnycastEipAddressName string
    Anycast EIP instance name.
    BindInstanceIds List<string>
    The bind instance ids.
    BusinessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    Ids List<string>
    A list of Anycast Eip Address IDs.
    InternetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    IpAddress string
    Anycast EIP instance IP address.
    NameRegex string
    A regex string to filter results by Anycast Eip Address name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PaymentType string
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    ServiceLocation string
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    Status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.
    AnycastEipAddressName string
    Anycast EIP instance name.
    BindInstanceIds []string
    The bind instance ids.
    BusinessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    Ids []string
    A list of Anycast Eip Address IDs.
    InternetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    IpAddress string
    Anycast EIP instance IP address.
    NameRegex string
    A regex string to filter results by Anycast Eip Address name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PaymentType string
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    ServiceLocation string
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    Status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.
    anycastEipAddressName String
    Anycast EIP instance name.
    bindInstanceIds List<String>
    The bind instance ids.
    businessStatus String
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    ids List<String>
    A list of Anycast Eip Address IDs.
    internetChargeType String
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress String
    Anycast EIP instance IP address.
    nameRegex String
    A regex string to filter results by Anycast Eip Address name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    paymentType String
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    serviceLocation String
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    status String
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.
    anycastEipAddressName string
    Anycast EIP instance name.
    bindInstanceIds string[]
    The bind instance ids.
    businessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    ids string[]
    A list of Anycast Eip Address IDs.
    internetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress string
    Anycast EIP instance IP address.
    nameRegex string
    A regex string to filter results by Anycast Eip Address name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    paymentType string
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    serviceLocation string
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.
    anycast_eip_address_name str
    Anycast EIP instance name.
    bind_instance_ids Sequence[str]
    The bind instance ids.
    business_status str
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    ids Sequence[str]
    A list of Anycast Eip Address IDs.
    internet_charge_type str
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ip_address str
    Anycast EIP instance IP address.
    name_regex str
    A regex string to filter results by Anycast Eip Address name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    payment_type str
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    service_location str
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    status str
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.
    anycastEipAddressName String
    Anycast EIP instance name.
    bindInstanceIds List<String>
    The bind instance ids.
    businessStatus String
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    ids List<String>
    A list of Anycast Eip Address IDs.
    internetChargeType String
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress String
    Anycast EIP instance IP address.
    nameRegex String
    A regex string to filter results by Anycast Eip Address name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    paymentType String
    The payment model of Anycast EIP instance. PayAsYouGo: Refers to the post-paid mode. Default value is PayAsYouGo.
    serviceLocation String
    Anycast EIP instance access area. international: Refers to areas outside of Mainland China.
    status String
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released. Valid values: Allocated, Associated.

    getAnycastEipAddresses Result

    The following output properties are available:

    Addresses List<Pulumi.AliCloud.EipAnycast.Outputs.GetAnycastEipAddressesAddress>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    AnycastEipAddressName string
    BindInstanceIds List<string>
    BusinessStatus string
    InternetChargeType string
    IpAddress string
    NameRegex string
    OutputFile string
    PaymentType string
    ServiceLocation string
    Status string
    Addresses []GetAnycastEipAddressesAddress
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    AnycastEipAddressName string
    BindInstanceIds []string
    BusinessStatus string
    InternetChargeType string
    IpAddress string
    NameRegex string
    OutputFile string
    PaymentType string
    ServiceLocation string
    Status string
    addresses List<GetAnycastEipAddressesAddress>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    anycastEipAddressName String
    bindInstanceIds List<String>
    businessStatus String
    internetChargeType String
    ipAddress String
    nameRegex String
    outputFile String
    paymentType String
    serviceLocation String
    status String
    addresses GetAnycastEipAddressesAddress[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    anycastEipAddressName string
    bindInstanceIds string[]
    businessStatus string
    internetChargeType string
    ipAddress string
    nameRegex string
    outputFile string
    paymentType string
    serviceLocation string
    status string
    addresses Sequence[GetAnycastEipAddressesAddress]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    anycast_eip_address_name str
    bind_instance_ids Sequence[str]
    business_status str
    internet_charge_type str
    ip_address str
    name_regex str
    output_file str
    payment_type str
    service_location str
    status str
    addresses List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    anycastEipAddressName String
    bindInstanceIds List<String>
    businessStatus String
    internetChargeType String
    ipAddress String
    nameRegex String
    outputFile String
    paymentType String
    serviceLocation String
    status String

    Supporting Types

    GetAnycastEipAddressesAddress

    AliUid int
    Anycast EIP instance account ID.
    AnycastEipAddressName string
    Anycast EIP instance name.
    AnycastEipBindInfoLists List<Pulumi.AliCloud.EipAnycast.Inputs.GetAnycastEipAddressesAddressAnycastEipBindInfoList>
    AnycastEip binding information.
    AnycastId string
    Anycast EIP instance ID.
    Bandwidth int
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    Bid string
    Anycast EIP instance account BID.
    BusinessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    Description string
    Anycast EIP instance description.
    Id string
    The ID of the Anycast Eip Address.
    InternetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    IpAddress string
    Anycast EIP instance IP address.
    PaymentType string
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    ServiceLocation string
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    Status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.
    AliUid int
    Anycast EIP instance account ID.
    AnycastEipAddressName string
    Anycast EIP instance name.
    AnycastEipBindInfoLists []GetAnycastEipAddressesAddressAnycastEipBindInfoList
    AnycastEip binding information.
    AnycastId string
    Anycast EIP instance ID.
    Bandwidth int
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    Bid string
    Anycast EIP instance account BID.
    BusinessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    Description string
    Anycast EIP instance description.
    Id string
    The ID of the Anycast Eip Address.
    InternetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    IpAddress string
    Anycast EIP instance IP address.
    PaymentType string
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    ServiceLocation string
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    Status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.
    aliUid Integer
    Anycast EIP instance account ID.
    anycastEipAddressName String
    Anycast EIP instance name.
    anycastEipBindInfoLists List<GetAnycastEipAddressesAddressAnycastEipBindInfoList>
    AnycastEip binding information.
    anycastId String
    Anycast EIP instance ID.
    bandwidth Integer
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    bid String
    Anycast EIP instance account BID.
    businessStatus String
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    description String
    Anycast EIP instance description.
    id String
    The ID of the Anycast Eip Address.
    internetChargeType String
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress String
    Anycast EIP instance IP address.
    paymentType String
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    serviceLocation String
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    status String
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.
    aliUid number
    Anycast EIP instance account ID.
    anycastEipAddressName string
    Anycast EIP instance name.
    anycastEipBindInfoLists GetAnycastEipAddressesAddressAnycastEipBindInfoList[]
    AnycastEip binding information.
    anycastId string
    Anycast EIP instance ID.
    bandwidth number
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    bid string
    Anycast EIP instance account BID.
    businessStatus string
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    description string
    Anycast EIP instance description.
    id string
    The ID of the Anycast Eip Address.
    internetChargeType string
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress string
    Anycast EIP instance IP address.
    paymentType string
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    serviceLocation string
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    status string
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.
    ali_uid int
    Anycast EIP instance account ID.
    anycast_eip_address_name str
    Anycast EIP instance name.
    anycast_eip_bind_info_lists Sequence[GetAnycastEipAddressesAddressAnycastEipBindInfoList]
    AnycastEip binding information.
    anycast_id str
    Anycast EIP instance ID.
    bandwidth int
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    bid str
    Anycast EIP instance account BID.
    business_status str
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    description str
    Anycast EIP instance description.
    id str
    The ID of the Anycast Eip Address.
    internet_charge_type str
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ip_address str
    Anycast EIP instance IP address.
    payment_type str
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    service_location str
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    status str
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.
    aliUid Number
    Anycast EIP instance account ID.
    anycastEipAddressName String
    Anycast EIP instance name.
    anycastEipBindInfoLists List<Property Map>
    AnycastEip binding information.
    anycastId String
    Anycast EIP instance ID.
    bandwidth Number
    The peak bandwidth of the Anycast EIP instance, in Mbps.
    bid String
    Anycast EIP instance account BID.
    businessStatus String
    The business status of the Anycast EIP instance. -Normal: Normal state. -FinancialLocked: The status of arrears locked.
    description String
    Anycast EIP instance description.
    id String
    The ID of the Anycast Eip Address.
    internetChargeType String
    The billing method of Anycast EIP instance. PayByBandwidth: refers to the method of billing based on traffic.
    ipAddress String
    Anycast EIP instance IP address.
    paymentType String
    The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
    serviceLocation String
    Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.
    status String
    IP status。- Associating, Unassociating, Allocated, Associated, Modifying, Releasing, Released.

    GetAnycastEipAddressesAddressAnycastEipBindInfoList

    BindInstanceId string
    The bound cloud resource instance ID.
    BindInstanceRegionId string
    The region ID of the bound cloud resource instance.
    BindInstanceType string
    Bind the cloud resource instance type.
    BindTime string
    Binding time.
    BindInstanceId string
    The bound cloud resource instance ID.
    BindInstanceRegionId string
    The region ID of the bound cloud resource instance.
    BindInstanceType string
    Bind the cloud resource instance type.
    BindTime string
    Binding time.
    bindInstanceId String
    The bound cloud resource instance ID.
    bindInstanceRegionId String
    The region ID of the bound cloud resource instance.
    bindInstanceType String
    Bind the cloud resource instance type.
    bindTime String
    Binding time.
    bindInstanceId string
    The bound cloud resource instance ID.
    bindInstanceRegionId string
    The region ID of the bound cloud resource instance.
    bindInstanceType string
    Bind the cloud resource instance type.
    bindTime string
    Binding time.
    bind_instance_id str
    The bound cloud resource instance ID.
    bind_instance_region_id str
    The region ID of the bound cloud resource instance.
    bind_instance_type str
    Bind the cloud resource instance type.
    bind_time str
    Binding time.
    bindInstanceId String
    The bound cloud resource instance ID.
    bindInstanceRegionId String
    The region ID of the bound cloud resource instance.
    bindInstanceType String
    Bind the cloud resource instance type.
    bindTime String
    Binding time.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi