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.

InUse bool

Deprecated since the version 1.8.0 of this provider.

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

IpAddresses List<string>

A list of EIP public IP addresses.

OutputFile string
ResourceGroupId string

The Id of resource group which the eips belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

A list of EIP IDs.

InUse bool

Deprecated since the version 1.8.0 of this provider.

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

IpAddresses []string

A list of EIP public IP addresses.

OutputFile string
ResourceGroupId string

The Id of resource group which the eips belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

A list of EIP IDs.

inUse boolean

Deprecated since the version 1.8.0 of this provider.

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

ipAddresses string[]

A list of EIP public IP addresses.

outputFile string
resourceGroupId string

The Id of resource group which the eips belongs.

tags {[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.

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

ip_addresses List[str]

A list of EIP public IP addresses.

output_file str
resource_group_id str

The Id of resource group which the eips belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetEips Result

The following output properties are available:

Eips List<Pulumi.AliCloud.Ecs.Outputs.GetEipsEip>

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.

InUse bool

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

IpAddresses List<string>
OutputFile string
ResourceGroupId string

The Id of resource group which the eips belongs.

Tags Dictionary<string, object>
Eips []GetEipsEip

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.

InUse bool

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

IpAddresses []string
OutputFile string
ResourceGroupId string

The Id of resource group which the eips belongs.

Tags map[string]interface{}
eips GetEipsEip[]

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.

inUse boolean

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

ipAddresses string[]
outputFile string
resourceGroupId string

The Id of resource group which the eips belongs.

tags {[key: string]: any}
eips List[GetEipsEip]

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

Deprecated: Field 'in_use' has been deprecated from provider version 1.8.0.

ip_addresses List[str]
output_file str
resource_group_id str

The Id of resource group which the eips belongs.

tags 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.

CreationTime string

Time of creation.

Id string

ID of the EIP.

InstanceId string

The ID of the instance that is being bound.

InstanceType string

The instance type of that the EIP is bound.

InternetChargeType string

EIP internet charge type.

IpAddress string

Public IP Address of the the EIP.

Status string

EIP status. Possible values are: Associating, Unassociating, InUse and Available.

Bandwidth string

EIP internet max bandwidth in Mbps.

CreationTime string

Time of creation.

Id string

ID of the EIP.

InstanceId string

The ID of the instance that is being bound.

InstanceType string

The instance type of that the EIP is bound.

InternetChargeType string

EIP internet charge type.

IpAddress string

Public IP Address of the the EIP.

Status string

EIP status. Possible values are: Associating, Unassociating, InUse and Available.

bandwidth string

EIP internet max bandwidth in Mbps.

creationTime string

Time of creation.

id string

ID of the EIP.

instanceId string

The ID of the instance that is being bound.

instanceType string

The instance type of that the EIP is bound.

internetChargeType string

EIP internet charge type.

ipAddress string

Public IP Address of the the EIP.

status string

EIP status. Possible values are: Associating, Unassociating, InUse and Available.

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_type str

EIP internet charge type.

ip_address str

Public IP Address of the the EIP.

status str

EIP status. Possible values are: Associating, Unassociating, InUse and Available.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.