GetEips
This data source provides a list of EIPs (Elastic IP address) owned by an Alibaba Cloud account.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var eipsDs = Output.Create(AliCloud.Ecs.GetEips.InvokeAsync());
this.FirstEipId = eipsDs.Apply(eipsDs => eipsDs.Eips[0].Id);
}
[Output("firstEipId")]
public Output<string> FirstEipId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
eips_ds = alicloud.ecs.get_eips()
pulumi.export("firstEipId", eips_ds.eips[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const eipsDs = pulumi.output(alicloud.ecs.getEips({ async: true }));
export const firstEipId = eipsDs.eips[0].id;Using GetEips
function getEips(args: GetEipsArgs, opts?: InvokeOptions): Promise<GetEipsResult>function get_eips(ids=None, in_use=None, ip_addresses=None, output_file=None, resource_group_id=None, tags=None, opts=None)func GetEips(ctx *Context, args *GetEipsArgs, opts ...InvokeOption) (*GetEipsResult, error)public static class GetEips {
public static Task<GetEipsResult> InvokeAsync(GetEipsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of EIP IDs.
- In
Use bool Deprecated since the version 1.8.0 of this provider.
- Ip
Addresses List<string> A list of EIP public IP addresses.
- Output
File string - Resource
Group stringId The Id of resource group which the eips belongs.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Ids []string
A list of EIP IDs.
- In
Use bool Deprecated since the version 1.8.0 of this provider.
- Ip
Addresses []string A list of EIP public IP addresses.
- Output
File string - Resource
Group stringId The Id of resource group which the eips belongs.
- map[string]interface{}
A mapping of tags to assign to the resource.
- ids string[]
A list of EIP IDs.
- in
Use boolean Deprecated since the version 1.8.0 of this provider.
- ip
Addresses string[] A list of EIP public IP addresses.
- output
File string - resource
Group stringId The Id of resource group which the eips belongs.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- ids List[str]
A list of EIP IDs.
- in_
use bool Deprecated since the version 1.8.0 of this provider.
- ip_
addresses List[str] A list of EIP public IP addresses.
- output_
file str - resource_
group_ strid The Id of resource group which the eips belongs.
- Dict[str, Any]
A mapping of tags to assign to the resource.
GetEips Result
The following output properties are available:
- Eips
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Eips Eip> A list of EIPs. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
(Optional) A list of EIP IDs.
- Names List<string>
(Optional) A list of EIP names.
- In
Use bool - Ip
Addresses List<string> - Output
File string - Resource
Group stringId The Id of resource group which the eips belongs.
- Dictionary<string, object>
- Eips
[]Get
Eips Eip A list of EIPs. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
(Optional) A list of EIP IDs.
- Names []string
(Optional) A list of EIP names.
- In
Use bool - Ip
Addresses []string - Output
File string - Resource
Group stringId The Id of resource group which the eips belongs.
- map[string]interface{}
- eips
Get
Eips Eip[] A list of EIPs. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
(Optional) A list of EIP IDs.
- names string[]
(Optional) A list of EIP names.
- in
Use boolean - ip
Addresses string[] - output
File string - resource
Group stringId The Id of resource group which the eips belongs.
- {[key: string]: any}
- eips
List[Get
Eips Eip] A list of EIPs. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
(Optional) A list of EIP IDs.
- names List[str]
(Optional) A list of EIP names.
- in_
use bool - ip_
addresses List[str] - output_
file str - resource_
group_ strid The Id of resource group which the eips belongs.
- Dict[str, Any]
Supporting Types
GetEipsEip
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Bandwidth string
EIP internet max bandwidth in Mbps.
- Creation
Time string Time of creation.
- Id string
ID of the EIP.
- Instance
Id string The ID of the instance that is being bound.
- Instance
Type string The instance type of that the EIP is bound.
- Internet
Charge stringType EIP internet charge type.
- Ip
Address string Public IP Address of the the EIP.
- Status string
EIP status. Possible values are:
Associating,Unassociating,InUseandAvailable.
- Bandwidth string
EIP internet max bandwidth in Mbps.
- Creation
Time string Time of creation.
- Id string
ID of the EIP.
- Instance
Id string The ID of the instance that is being bound.
- Instance
Type string The instance type of that the EIP is bound.
- Internet
Charge stringType EIP internet charge type.
- Ip
Address string Public IP Address of the the EIP.
- Status string
EIP status. Possible values are:
Associating,Unassociating,InUseandAvailable.
- bandwidth string
EIP internet max bandwidth in Mbps.
- creation
Time string Time of creation.
- id string
ID of the EIP.
- instance
Id string The ID of the instance that is being bound.
- instance
Type string The instance type of that the EIP is bound.
- internet
Charge stringType EIP internet charge type.
- ip
Address string Public IP Address of the the EIP.
- status string
EIP status. Possible values are:
Associating,Unassociating,InUseandAvailable.
- bandwidth str
EIP internet max bandwidth in Mbps.
- creation_
time str Time of creation.
- id str
ID of the EIP.
- instance_
id str The ID of the instance that is being bound.
- instance_
type str The instance type of that the EIP is bound.
- internet_
charge_ strtype EIP internet charge type.
- ip_
address str Public IP Address of the the EIP.
- status str
EIP status. Possible values are:
Associating,Unassociating,InUseandAvailable.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.