1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getVpcEip
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getVpcEip

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the details of an available EIP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const byAddress = flexibleengine.getVpcEip({
        publicIp: "123.60.208.163",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    by_address = flexibleengine.get_vpc_eip(public_ip="123.60.208.163")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.LookupVpcEip(ctx, &flexibleengine.LookupVpcEipArgs{
    			PublicIp: pulumi.StringRef("123.60.208.163"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var byAddress = Flexibleengine.GetVpcEip.Invoke(new()
        {
            PublicIp = "123.60.208.163",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetVpcEipArgs;
    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 byAddress = FlexibleengineFunctions.getVpcEip(GetVpcEipArgs.builder()
                .publicIp("123.60.208.163")
                .build());
    
        }
    }
    
    variables:
      byAddress:
        fn::invoke:
          function: flexibleengine:getVpcEip
          arguments:
            publicIp: 123.60.208.163
    

    Using getVpcEip

    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 getVpcEip(args: GetVpcEipArgs, opts?: InvokeOptions): Promise<GetVpcEipResult>
    function getVpcEipOutput(args: GetVpcEipOutputArgs, opts?: InvokeOptions): Output<GetVpcEipResult>
    def get_vpc_eip(id: Optional[str] = None,
                    port_id: Optional[str] = None,
                    public_ip: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVpcEipResult
    def get_vpc_eip_output(id: Optional[pulumi.Input[str]] = None,
                    port_id: Optional[pulumi.Input[str]] = None,
                    public_ip: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVpcEipResult]
    func LookupVpcEip(ctx *Context, args *LookupVpcEipArgs, opts ...InvokeOption) (*LookupVpcEipResult, error)
    func LookupVpcEipOutput(ctx *Context, args *LookupVpcEipOutputArgs, opts ...InvokeOption) LookupVpcEipResultOutput

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

    public static class GetVpcEip 
    {
        public static Task<GetVpcEipResult> InvokeAsync(GetVpcEipArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcEipResult> Invoke(GetVpcEipInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcEipResult> getVpcEip(GetVpcEipArgs args, InvokeOptions options)
    public static Output<GetVpcEipResult> getVpcEip(GetVpcEipArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getVpcEip:getVpcEip
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The data source ID in UUID format.
    PortId string
    The port id of the EIP.
    PublicIp string
    The public ip address of the EIP.
    Region string
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.
    Id string
    The data source ID in UUID format.
    PortId string
    The port id of the EIP.
    PublicIp string
    The public ip address of the EIP.
    Region string
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.
    id String
    The data source ID in UUID format.
    portId String
    The port id of the EIP.
    publicIp String
    The public ip address of the EIP.
    region String
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.
    id string
    The data source ID in UUID format.
    portId string
    The port id of the EIP.
    publicIp string
    The public ip address of the EIP.
    region string
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.
    id str
    The data source ID in UUID format.
    port_id str
    The port id of the EIP.
    public_ip str
    The public ip address of the EIP.
    region str
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.
    id String
    The data source ID in UUID format.
    portId String
    The port id of the EIP.
    publicIp String
    The public ip address of the EIP.
    region String
    Specifies the region in which to obtain the EIP. If omitted, the provider-level region will be used.

    getVpcEip Result

    The following output properties are available:

    BandwidthId string
    The bandwidth id of the EIP.
    BandwidthShareType string
    The bandwidth share type of the EIP.
    BandwidthSize double
    The bandwidth size of the EIP.
    Id string
    The data source ID in UUID format.
    PrivateIp string
    The private ip of the EIP.
    Region string
    Status string
    The status of the EIP.
    Type string
    The type of the EIP.
    PortId string
    PublicIp string
    BandwidthId string
    The bandwidth id of the EIP.
    BandwidthShareType string
    The bandwidth share type of the EIP.
    BandwidthSize float64
    The bandwidth size of the EIP.
    Id string
    The data source ID in UUID format.
    PrivateIp string
    The private ip of the EIP.
    Region string
    Status string
    The status of the EIP.
    Type string
    The type of the EIP.
    PortId string
    PublicIp string
    bandwidthId String
    The bandwidth id of the EIP.
    bandwidthShareType String
    The bandwidth share type of the EIP.
    bandwidthSize Double
    The bandwidth size of the EIP.
    id String
    The data source ID in UUID format.
    privateIp String
    The private ip of the EIP.
    region String
    status String
    The status of the EIP.
    type String
    The type of the EIP.
    portId String
    publicIp String
    bandwidthId string
    The bandwidth id of the EIP.
    bandwidthShareType string
    The bandwidth share type of the EIP.
    bandwidthSize number
    The bandwidth size of the EIP.
    id string
    The data source ID in UUID format.
    privateIp string
    The private ip of the EIP.
    region string
    status string
    The status of the EIP.
    type string
    The type of the EIP.
    portId string
    publicIp string
    bandwidth_id str
    The bandwidth id of the EIP.
    bandwidth_share_type str
    The bandwidth share type of the EIP.
    bandwidth_size float
    The bandwidth size of the EIP.
    id str
    The data source ID in UUID format.
    private_ip str
    The private ip of the EIP.
    region str
    status str
    The status of the EIP.
    type str
    The type of the EIP.
    port_id str
    public_ip str
    bandwidthId String
    The bandwidth id of the EIP.
    bandwidthShareType String
    The bandwidth share type of the EIP.
    bandwidthSize Number
    The bandwidth size of the EIP.
    id String
    The data source ID in UUID format.
    privateIp String
    The private ip of the EIP.
    region String
    status String
    The status of the EIP.
    type String
    The type of the EIP.
    portId String
    publicIp String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud