flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getVpcEip
Explore with Pulumi AI
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:
getVpcEip Result
The following output properties are available:
- Bandwidth
Id string - The bandwidth id of the EIP.
- string
- The bandwidth share type of the EIP.
- Bandwidth
Size double - The bandwidth size of the EIP.
- Id string
- The data source ID in UUID format.
- Private
Ip string - The private ip of the EIP.
- Region string
- Status string
- The status of the EIP.
- Type string
- The type of the EIP.
- Port
Id string - Public
Ip string
- Bandwidth
Id string - The bandwidth id of the EIP.
- string
- The bandwidth share type of the EIP.
- Bandwidth
Size float64 - The bandwidth size of the EIP.
- Id string
- The data source ID in UUID format.
- Private
Ip string - The private ip of the EIP.
- Region string
- Status string
- The status of the EIP.
- Type string
- The type of the EIP.
- Port
Id string - Public
Ip string
- bandwidth
Id String - The bandwidth id of the EIP.
- String
- The bandwidth share type of the EIP.
- bandwidth
Size Double - The bandwidth size of the EIP.
- id String
- The data source ID in UUID format.
- private
Ip String - The private ip of the EIP.
- region String
- status String
- The status of the EIP.
- type String
- The type of the EIP.
- port
Id String - public
Ip String
- bandwidth
Id string - The bandwidth id of the EIP.
- string
- The bandwidth share type of the EIP.
- bandwidth
Size number - The bandwidth size of the EIP.
- id string
- The data source ID in UUID format.
- private
Ip string - The private ip of the EIP.
- region string
- status string
- The status of the EIP.
- type string
- The type of the EIP.
- port
Id string - public
Ip string
- bandwidth_
id str - The bandwidth id of the EIP.
- 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
- bandwidth
Id String - The bandwidth id of the EIP.
- String
- The bandwidth share type of the EIP.
- bandwidth
Size Number - The bandwidth size of the EIP.
- id String
- The data source ID in UUID format.
- private
Ip String - The private ip of the EIP.
- region String
- status String
- The status of the EIP.
- type String
- The type of the EIP.
- port
Id String - public
Ip String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud