tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getEip
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Provides an available EIP for the user.
The EIP data source fetch proper EIP from user’s EIP pool.
NOTE: It has been deprecated and replaced by tencentcloud_eips.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const myEip = tencentcloud.getEip({
filters: [{
name: "address-status",
values: ["UNBIND"],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
my_eip = tencentcloud.get_eip(filters=[{
"name": "address-status",
"values": ["UNBIND"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.LookupEip(ctx, &tencentcloud.LookupEipArgs{
Filters: []tencentcloud.GetEipFilter{
{
Name: "address-status",
Values: []string{
"UNBIND",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var myEip = Tencentcloud.GetEip.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetEipFilterInputArgs
{
Name = "address-status",
Values = new[]
{
"UNBIND",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetEipArgs;
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 myEip = TencentcloudFunctions.getEip(GetEipArgs.builder()
.filters(GetEipFilterArgs.builder()
.name("address-status")
.values("UNBIND")
.build())
.build());
}
}
variables:
myEip:
fn::invoke:
function: tencentcloud:getEip
arguments:
filters:
- name: address-status
values:
- UNBIND
Using getEip
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 getEip(args: GetEipArgs, opts?: InvokeOptions): Promise<GetEipResult>
function getEipOutput(args: GetEipOutputArgs, opts?: InvokeOptions): Output<GetEipResult>
def get_eip(filters: Optional[Sequence[GetEipFilter]] = None,
include_arrears: Optional[bool] = None,
include_blocked: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetEipResult
def get_eip_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetEipFilterArgs]]]] = None,
include_arrears: Optional[pulumi.Input[bool]] = None,
include_blocked: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEipResult]
func LookupEip(ctx *Context, args *LookupEipArgs, opts ...InvokeOption) (*LookupEipResult, error)
func LookupEipOutput(ctx *Context, args *LookupEipOutputArgs, opts ...InvokeOption) LookupEipResultOutput
> Note: This function is named LookupEip
in the Go SDK.
public static class GetEip
{
public static Task<GetEipResult> InvokeAsync(GetEipArgs args, InvokeOptions? opts = null)
public static Output<GetEipResult> Invoke(GetEipInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEipResult> getEip(GetEipArgs args, InvokeOptions options)
public static Output<GetEipResult> getEip(GetEipArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getEip:getEip
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Eip Filter> - One or more name/value pairs to filter.
- Include
Arrears bool - Whether the IP is arrears.
- Include
Blocked bool - Whether the IP is blocked.
- Filters
[]Get
Eip Filter - One or more name/value pairs to filter.
- Include
Arrears bool - Whether the IP is arrears.
- Include
Blocked bool - Whether the IP is blocked.
- filters
List<Get
Eip Filter> - One or more name/value pairs to filter.
- include
Arrears Boolean - Whether the IP is arrears.
- include
Blocked Boolean - Whether the IP is blocked.
- filters
Get
Eip Filter[] - One or more name/value pairs to filter.
- include
Arrears boolean - Whether the IP is arrears.
- include
Blocked boolean - Whether the IP is blocked.
- filters
Sequence[Get
Eip Filter] - One or more name/value pairs to filter.
- include_
arrears bool - Whether the IP is arrears.
- include_
blocked bool - Whether the IP is blocked.
- filters List<Property Map>
- One or more name/value pairs to filter.
- include
Arrears Boolean - Whether the IP is arrears.
- include
Blocked Boolean - Whether the IP is blocked.
getEip Result
The following output properties are available:
- Id string
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- Public
Ip string - An public IP address for the EIP.
- Status string
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - Filters
List<Get
Eip Filter> - Include
Arrears bool - Include
Blocked bool
- Id string
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- Public
Ip string - An public IP address for the EIP.
- Status string
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - Filters
[]Get
Eip Filter - Include
Arrears bool - Include
Blocked bool
- id String
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- public
Ip String - An public IP address for the EIP.
- status String
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - filters
List<Get
Eip Filter> - include
Arrears Boolean - include
Blocked Boolean
- id string
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- public
Ip string - An public IP address for the EIP.
- status string
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - filters
Get
Eip Filter[] - include
Arrears boolean - include
Blocked boolean
- id str
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- public_
ip str - An public IP address for the EIP.
- status str
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - filters
Sequence[Get
Eip Filter] - include_
arrears bool - include_
blocked bool
- id String
- An EIP id indicate the uniqueness of a certain EIP, which can be used for instance binding or network interface binding.
- public
Ip String - An public IP address for the EIP.
- status String
- The status of the EIP, there are several status like
BIND
,UNBIND
, andBIND_ENI
. - filters List<Property Map>
- include
Arrears Boolean - include
Blocked Boolean
Supporting Types
GetEipFilter
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack