tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getEips
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query eip instances.
Example Usage
Query all eip instances
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getEips({});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_eips()
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.GetEips(ctx, &tencentcloud.GetEipsArgs{}, 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 example = Tencentcloud.GetEips.Invoke();
});
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.GetEipsArgs;
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 example = TencentcloudFunctions.getEips();
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getEips
arguments: {}
Query eip instances by eip ID
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getEips({
eipId: "eip-ry9h95hg",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_eips(eip_id="eip-ry9h95hg")
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.GetEips(ctx, &tencentcloud.GetEipsArgs{
EipId: pulumi.StringRef("eip-ry9h95hg"),
}, 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 example = Tencentcloud.GetEips.Invoke(new()
{
EipId = "eip-ry9h95hg",
});
});
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.GetEipsArgs;
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 example = TencentcloudFunctions.getEips(GetEipsArgs.builder()
.eipId("eip-ry9h95hg")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getEips
arguments:
eipId: eip-ry9h95hg
Query eip instances by eip name
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getEips({
eipName: "tf-example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_eips(eip_name="tf-example")
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.GetEips(ctx, &tencentcloud.GetEipsArgs{
EipName: pulumi.StringRef("tf-example"),
}, 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 example = Tencentcloud.GetEips.Invoke(new()
{
EipName = "tf-example",
});
});
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.GetEipsArgs;
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 example = TencentcloudFunctions.getEips(GetEipsArgs.builder()
.eipName("tf-example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getEips
arguments:
eipName: tf-example
Query eip instances by public ip
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getEips({
publicIp: "1.12.62.3",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_eips(public_ip="1.12.62.3")
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.GetEips(ctx, &tencentcloud.GetEipsArgs{
PublicIp: pulumi.StringRef("1.12.62.3"),
}, 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 example = Tencentcloud.GetEips.Invoke(new()
{
PublicIp = "1.12.62.3",
});
});
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.GetEipsArgs;
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 example = TencentcloudFunctions.getEips(GetEipsArgs.builder()
.publicIp("1.12.62.3")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getEips
arguments:
publicIp: 1.12.62.3
Query eip instances by tags
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getEips({
tags: {
test: "test",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_eips(tags={
"test": "test",
})
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.GetEips(ctx, &tencentcloud.GetEipsArgs{
Tags: map[string]interface{}{
"test": "test",
},
}, 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 example = Tencentcloud.GetEips.Invoke(new()
{
Tags =
{
{ "test", "test" },
},
});
});
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.GetEipsArgs;
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 example = TencentcloudFunctions.getEips(GetEipsArgs.builder()
.tags(Map.of("test", "test"))
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getEips
arguments:
tags:
test: test
Using getEips
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 getEips(args: GetEipsArgs, opts?: InvokeOptions): Promise<GetEipsResult>
function getEipsOutput(args: GetEipsOutputArgs, opts?: InvokeOptions): Output<GetEipsResult>
def get_eips(eip_id: Optional[str] = None,
eip_name: Optional[str] = None,
id: Optional[str] = None,
public_ip: Optional[str] = None,
result_output_file: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetEipsResult
def get_eips_output(eip_id: Optional[pulumi.Input[str]] = None,
eip_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
public_ip: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEipsResult]
func GetEips(ctx *Context, args *GetEipsArgs, opts ...InvokeOption) (*GetEipsResult, error)
func GetEipsOutput(ctx *Context, args *GetEipsOutputArgs, opts ...InvokeOption) GetEipsResultOutput
> Note: This function is named GetEips
in the Go SDK.
public static class GetEips
{
public static Task<GetEipsResult> InvokeAsync(GetEipsArgs args, InvokeOptions? opts = null)
public static Output<GetEipsResult> Invoke(GetEipsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEipsResult> getEips(GetEipsArgs args, InvokeOptions options)
public static Output<GetEipsResult> getEips(GetEipsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getEips:getEips
arguments:
# arguments dictionary
The following arguments are supported:
- Eip
Id string - ID of the EIP to be queried.
- Eip
Name string - Name of the EIP to be queried.
- Id string
- Public
Ip string - The elastic ip address.
- Result
Output stringFile - Used to save results.
- Dictionary<string, string>
- The tags of EIP.
- Eip
Id string - ID of the EIP to be queried.
- Eip
Name string - Name of the EIP to be queried.
- Id string
- Public
Ip string - The elastic ip address.
- Result
Output stringFile - Used to save results.
- map[string]string
- The tags of EIP.
- eip
Id String - ID of the EIP to be queried.
- eip
Name String - Name of the EIP to be queried.
- id String
- public
Ip String - The elastic ip address.
- result
Output StringFile - Used to save results.
- Map<String,String>
- The tags of EIP.
- eip
Id string - ID of the EIP to be queried.
- eip
Name string - Name of the EIP to be queried.
- id string
- public
Ip string - The elastic ip address.
- result
Output stringFile - Used to save results.
- {[key: string]: string}
- The tags of EIP.
- eip_
id str - ID of the EIP to be queried.
- eip_
name str - Name of the EIP to be queried.
- id str
- public_
ip str - The elastic ip address.
- result_
output_ strfile - Used to save results.
- Mapping[str, str]
- The tags of EIP.
- eip
Id String - ID of the EIP to be queried.
- eip
Name String - Name of the EIP to be queried.
- id String
- public
Ip String - The elastic ip address.
- result
Output StringFile - Used to save results.
- Map<String>
- The tags of EIP.
getEips Result
The following output properties are available:
- Eip
Lists List<GetEips Eip List> - An information list of EIP. Each element contains the following attributes:
- Id string
- Eip
Id string - ID of the EIP.
- Eip
Name string - Name of the EIP.
- Public
Ip string - The elastic ip address.
- Result
Output stringFile - Dictionary<string, string>
- Tags of the EIP.
- Eip
Lists []GetEips Eip List - An information list of EIP. Each element contains the following attributes:
- Id string
- Eip
Id string - ID of the EIP.
- Eip
Name string - Name of the EIP.
- Public
Ip string - The elastic ip address.
- Result
Output stringFile - map[string]string
- Tags of the EIP.
- eip
Lists List<GetEips Eip List> - An information list of EIP. Each element contains the following attributes:
- id String
- eip
Id String - ID of the EIP.
- eip
Name String - Name of the EIP.
- public
Ip String - The elastic ip address.
- result
Output StringFile - Map<String,String>
- Tags of the EIP.
- eip
Lists GetEips Eip List[] - An information list of EIP. Each element contains the following attributes:
- id string
- eip
Id string - ID of the EIP.
- eip
Name string - Name of the EIP.
- public
Ip string - The elastic ip address.
- result
Output stringFile - {[key: string]: string}
- Tags of the EIP.
- eip_
lists Sequence[GetEips Eip List] - An information list of EIP. Each element contains the following attributes:
- id str
- eip_
id str - ID of the EIP.
- eip_
name str - Name of the EIP.
- public_
ip str - The elastic ip address.
- result_
output_ strfile - Mapping[str, str]
- Tags of the EIP.
- eip
Lists List<Property Map> - An information list of EIP. Each element contains the following attributes:
- id String
- eip
Id String - ID of the EIP.
- eip
Name String - Name of the EIP.
- public
Ip String - The elastic ip address.
- result
Output StringFile - Map<String>
- Tags of the EIP.
Supporting Types
GetEipsEipList
- Create
Time string - Creation time of the EIP.
- Eip
Id string - ID of the EIP to be queried.
- Eip
Name string - Name of the EIP to be queried.
- Eip
Type string - Type of the EIP.
- Eni
Id string - The eni id to bind with the EIP.
- Instance
Id string - The instance id to bind with the EIP.
- Public
Ip string - The elastic ip address.
- Status string
- The EIP current status.
- Dictionary<string, string>
- The tags of EIP.
- Create
Time string - Creation time of the EIP.
- Eip
Id string - ID of the EIP to be queried.
- Eip
Name string - Name of the EIP to be queried.
- Eip
Type string - Type of the EIP.
- Eni
Id string - The eni id to bind with the EIP.
- Instance
Id string - The instance id to bind with the EIP.
- Public
Ip string - The elastic ip address.
- Status string
- The EIP current status.
- map[string]string
- The tags of EIP.
- create
Time String - Creation time of the EIP.
- eip
Id String - ID of the EIP to be queried.
- eip
Name String - Name of the EIP to be queried.
- eip
Type String - Type of the EIP.
- eni
Id String - The eni id to bind with the EIP.
- instance
Id String - The instance id to bind with the EIP.
- public
Ip String - The elastic ip address.
- status String
- The EIP current status.
- Map<String,String>
- The tags of EIP.
- create
Time string - Creation time of the EIP.
- eip
Id string - ID of the EIP to be queried.
- eip
Name string - Name of the EIP to be queried.
- eip
Type string - Type of the EIP.
- eni
Id string - The eni id to bind with the EIP.
- instance
Id string - The instance id to bind with the EIP.
- public
Ip string - The elastic ip address.
- status string
- The EIP current status.
- {[key: string]: string}
- The tags of EIP.
- create_
time str - Creation time of the EIP.
- eip_
id str - ID of the EIP to be queried.
- eip_
name str - Name of the EIP to be queried.
- eip_
type str - Type of the EIP.
- eni_
id str - The eni id to bind with the EIP.
- instance_
id str - The instance id to bind with the EIP.
- public_
ip str - The elastic ip address.
- status str
- The EIP current status.
- Mapping[str, str]
- The tags of EIP.
- create
Time String - Creation time of the EIP.
- eip
Id String - ID of the EIP to be queried.
- eip
Name String - Name of the EIP to be queried.
- eip
Type String - Type of the EIP.
- eni
Id String - The eni id to bind with the EIP.
- instance
Id String - The instance id to bind with the EIP.
- public
Ip String - The elastic ip address.
- status String
- The EIP current status.
- Map<String>
- The tags of EIP.
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