Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.eipanycast.getAnycastEipAddresses
Explore with Pulumi AI
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:
- Anycast
Eip stringAddress Name - Anycast EIP instance name.
- Bind
Instance List<string>Ids - The bind instance ids.
- Business
Status 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.
- Internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - Ip
Address string - Anycast EIP instance IP address.
- Name
Regex string - A regex string to filter results by Anycast Eip Address name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Payment
Type string - The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Default value isPayAsYouGo
. - Service
Location 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 stringAddress Name - Anycast EIP instance name.
- Bind
Instance []stringIds - The bind instance ids.
- Business
Status 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.
- Internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - Ip
Address string - Anycast EIP instance IP address.
- Name
Regex string - A regex string to filter results by Anycast Eip Address name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Payment
Type string - The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Default value isPayAsYouGo
. - Service
Location 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 StringAddress Name - Anycast EIP instance name.
- bind
Instance List<String>Ids - The bind instance ids.
- business
Status 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.
- internet
Charge StringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address String - Anycast EIP instance IP address.
- name
Regex String - A regex string to filter results by Anycast Eip Address name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - payment
Type String - The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Default value isPayAsYouGo
. - service
Location 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 stringAddress Name - Anycast EIP instance name.
- bind
Instance string[]Ids - The bind instance ids.
- business
Status 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.
- internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address string - Anycast EIP instance IP address.
- name
Regex string - A regex string to filter results by Anycast Eip Address name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - payment
Type string - The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Default value isPayAsYouGo
. - service
Location 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_ straddress_ name - Anycast EIP instance name.
- bind_
instance_ Sequence[str]ids - 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_ strtype - 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 isPayAsYouGo
. - 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
.
- anycast
Eip StringAddress Name - Anycast EIP instance name.
- bind
Instance List<String>Ids - The bind instance ids.
- business
Status 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.
- internet
Charge StringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address String - Anycast EIP instance IP address.
- name
Regex String - A regex string to filter results by Anycast Eip Address name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - payment
Type String - The payment model of Anycast EIP instance.
PayAsYouGo
: Refers to the post-paid mode. Default value isPayAsYouGo
. - service
Location 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.
Ali Cloud. Eip Anycast. Outputs. Get Anycast Eip Addresses Address> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Anycast
Eip stringAddress Name - Bind
Instance List<string>Ids - Business
Status string - Internet
Charge stringType - Ip
Address string - Name
Regex string - Output
File string - Payment
Type string - Service
Location string - Status string
- Addresses
[]Get
Anycast Eip Addresses Address - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Anycast
Eip stringAddress Name - Bind
Instance []stringIds - Business
Status string - Internet
Charge stringType - Ip
Address string - Name
Regex string - Output
File string - Payment
Type string - Service
Location string - Status string
- addresses
List<Get
Anycast Eip Addresses Address> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- anycast
Eip StringAddress Name - bind
Instance List<String>Ids - business
Status String - internet
Charge StringType - ip
Address String - name
Regex String - output
File String - payment
Type String - service
Location String - status String
- addresses
Get
Anycast Eip Addresses Address[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- anycast
Eip stringAddress Name - bind
Instance string[]Ids - business
Status string - internet
Charge stringType - ip
Address string - name
Regex string - output
File string - payment
Type string - service
Location string - status string
- addresses
Sequence[Get
Anycast Eip Addresses Address] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- anycast_
eip_ straddress_ name - bind_
instance_ Sequence[str]ids - business_
status str - internet_
charge_ strtype - 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>
- anycast
Eip StringAddress Name - bind
Instance List<String>Ids - business
Status String - internet
Charge StringType - ip
Address String - name
Regex String - output
File String - payment
Type String - service
Location String - status String
Supporting Types
GetAnycastEipAddressesAddress
- Ali
Uid int - Anycast EIP instance account ID.
- Anycast
Eip stringAddress Name - Anycast EIP instance name.
- Anycast
Eip List<Pulumi.Bind Info Lists Ali Cloud. Eip Anycast. Inputs. Get Anycast Eip Addresses Address Anycast Eip Bind Info List> - AnycastEip binding information.
- Anycast
Id string - Anycast EIP instance ID.
- Bandwidth int
- The peak bandwidth of the Anycast EIP instance, in Mbps.
- Bid string
- Anycast EIP instance account BID.
- Business
Status 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.
- Internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - Ip
Address string - Anycast EIP instance IP address.
- Payment
Type string - The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
- Service
Location 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 stringAddress Name - Anycast EIP instance name.
- Anycast
Eip []GetBind Info Lists Anycast Eip Addresses Address Anycast Eip Bind Info List - AnycastEip binding information.
- Anycast
Id string - Anycast EIP instance ID.
- Bandwidth int
- The peak bandwidth of the Anycast EIP instance, in Mbps.
- Bid string
- Anycast EIP instance account BID.
- Business
Status 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.
- Internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - Ip
Address string - Anycast EIP instance IP address.
- Payment
Type string - The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
- Service
Location 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 Integer - Anycast EIP instance account ID.
- anycast
Eip StringAddress Name - Anycast EIP instance name.
- anycast
Eip List<GetBind Info Lists Anycast Eip Addresses Address Anycast Eip Bind Info List> - AnycastEip binding information.
- anycast
Id String - Anycast EIP instance ID.
- bandwidth Integer
- The peak bandwidth of the Anycast EIP instance, in Mbps.
- bid String
- Anycast EIP instance account BID.
- business
Status 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.
- internet
Charge StringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address String - Anycast EIP instance IP address.
- payment
Type String - The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
- service
Location 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 number - Anycast EIP instance account ID.
- anycast
Eip stringAddress Name - Anycast EIP instance name.
- anycast
Eip GetBind Info Lists Anycast Eip Addresses Address Anycast Eip Bind Info List[] - AnycastEip binding information.
- anycast
Id string - Anycast EIP instance ID.
- bandwidth number
- The peak bandwidth of the Anycast EIP instance, in Mbps.
- bid string
- Anycast EIP instance account BID.
- business
Status 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.
- internet
Charge stringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address string - Anycast EIP instance IP address.
- payment
Type string - The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
- service
Location 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_ straddress_ name - Anycast EIP instance name.
- anycast_
eip_ Sequence[Getbind_ info_ lists Anycast Eip Addresses Address Anycast Eip Bind Info List] - 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_ strtype - 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
.
- ali
Uid Number - Anycast EIP instance account ID.
- anycast
Eip StringAddress Name - Anycast EIP instance name.
- anycast
Eip List<Property Map>Bind Info Lists - AnycastEip binding information.
- anycast
Id String - Anycast EIP instance ID.
- bandwidth Number
- The peak bandwidth of the Anycast EIP instance, in Mbps.
- bid String
- Anycast EIP instance account BID.
- business
Status 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.
- internet
Charge StringType - The billing method of Anycast EIP instance.
PayByBandwidth
: refers to the method of billing based on traffic. - ip
Address String - Anycast EIP instance IP address.
- payment
Type String - The payment model of Anycast EIP instance. "PostPaid": Refers to the post-paid mode.
- service
Location 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
- Bind
Instance stringId - The bound cloud resource instance ID.
- Bind
Instance stringRegion Id - The region ID of the bound cloud resource instance.
- Bind
Instance stringType - Bind the cloud resource instance type.
- Bind
Time string - Binding time.
- Bind
Instance stringId - The bound cloud resource instance ID.
- Bind
Instance stringRegion Id - The region ID of the bound cloud resource instance.
- Bind
Instance stringType - Bind the cloud resource instance type.
- Bind
Time string - Binding time.
- bind
Instance StringId - The bound cloud resource instance ID.
- bind
Instance StringRegion Id - The region ID of the bound cloud resource instance.
- bind
Instance StringType - Bind the cloud resource instance type.
- bind
Time String - Binding time.
- bind
Instance stringId - The bound cloud resource instance ID.
- bind
Instance stringRegion Id - The region ID of the bound cloud resource instance.
- bind
Instance stringType - Bind the cloud resource instance type.
- bind
Time string - Binding time.
- bind_
instance_ strid - The bound cloud resource instance ID.
- bind_
instance_ strregion_ id - The region ID of the bound cloud resource instance.
- bind_
instance_ strtype - Bind the cloud resource instance type.
- bind_
time str - Binding time.
- bind
Instance StringId - The bound cloud resource instance ID.
- bind
Instance StringRegion Id - The region ID of the bound cloud resource instance.
- bind
Instance StringType - Bind the cloud resource instance type.
- bind
Time 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.