tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getVpcPrivateIpAddresses
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of vpc private_ip_addresses
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const privateIpAddresses = tencentcloud.getVpcPrivateIpAddresses({
    privateIpAddresses: ["10.0.0.1"],
    vpcId: "vpc-l0dw94uh",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
private_ip_addresses = tencentcloud.get_vpc_private_ip_addresses(private_ip_addresses=["10.0.0.1"],
    vpc_id="vpc-l0dw94uh")
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.GetVpcPrivateIpAddresses(ctx, &tencentcloud.GetVpcPrivateIpAddressesArgs{
			PrivateIpAddresses: []string{
				"10.0.0.1",
			},
			VpcId: "vpc-l0dw94uh",
		}, 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 privateIpAddresses = Tencentcloud.GetVpcPrivateIpAddresses.Invoke(new()
    {
        PrivateIpAddresses = new[]
        {
            "10.0.0.1",
        },
        VpcId = "vpc-l0dw94uh",
    });
});
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.GetVpcPrivateIpAddressesArgs;
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 privateIpAddresses = TencentcloudFunctions.getVpcPrivateIpAddresses(GetVpcPrivateIpAddressesArgs.builder()
            .privateIpAddresses("10.0.0.1")
            .vpcId("vpc-l0dw94uh")
            .build());
    }
}
variables:
  privateIpAddresses:
    fn::invoke:
      function: tencentcloud:getVpcPrivateIpAddresses
      arguments:
        privateIpAddresses:
          - 10.0.0.1
        vpcId: vpc-l0dw94uh
Using getVpcPrivateIpAddresses
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 getVpcPrivateIpAddresses(args: GetVpcPrivateIpAddressesArgs, opts?: InvokeOptions): Promise<GetVpcPrivateIpAddressesResult>
function getVpcPrivateIpAddressesOutput(args: GetVpcPrivateIpAddressesOutputArgs, opts?: InvokeOptions): Output<GetVpcPrivateIpAddressesResult>def get_vpc_private_ip_addresses(id: Optional[str] = None,
                                 private_ip_addresses: Optional[Sequence[str]] = None,
                                 result_output_file: Optional[str] = None,
                                 vpc_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetVpcPrivateIpAddressesResult
def get_vpc_private_ip_addresses_output(id: Optional[pulumi.Input[str]] = None,
                                 private_ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 vpc_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetVpcPrivateIpAddressesResult]func GetVpcPrivateIpAddresses(ctx *Context, args *GetVpcPrivateIpAddressesArgs, opts ...InvokeOption) (*GetVpcPrivateIpAddressesResult, error)
func GetVpcPrivateIpAddressesOutput(ctx *Context, args *GetVpcPrivateIpAddressesOutputArgs, opts ...InvokeOption) GetVpcPrivateIpAddressesResultOutput> Note: This function is named GetVpcPrivateIpAddresses in the Go SDK.
public static class GetVpcPrivateIpAddresses 
{
    public static Task<GetVpcPrivateIpAddressesResult> InvokeAsync(GetVpcPrivateIpAddressesArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcPrivateIpAddressesResult> Invoke(GetVpcPrivateIpAddressesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcPrivateIpAddressesResult> getVpcPrivateIpAddresses(GetVpcPrivateIpAddressesArgs args, InvokeOptions options)
public static Output<GetVpcPrivateIpAddressesResult> getVpcPrivateIpAddresses(GetVpcPrivateIpAddressesArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getVpcPrivateIpAddresses:getVpcPrivateIpAddresses
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PrivateIp List<string>Addresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- VpcId string
- The IDof theVPC, such asvpc-f49l6u0z.
- Id string
- ResultOutput stringFile 
- Used to save results.
- PrivateIp []stringAddresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- VpcId string
- The IDof theVPC, such asvpc-f49l6u0z.
- Id string
- ResultOutput stringFile 
- Used to save results.
- privateIp List<String>Addresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- vpcId String
- The IDof theVPC, such asvpc-f49l6u0z.
- id String
- resultOutput StringFile 
- Used to save results.
- privateIp string[]Addresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- vpcId string
- The IDof theVPC, such asvpc-f49l6u0z.
- id string
- resultOutput stringFile 
- Used to save results.
- private_ip_ Sequence[str]addresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- vpc_id str
- The IDof theVPC, such asvpc-f49l6u0z.
- id str
- result_output_ strfile 
- Used to save results.
- privateIp List<String>Addresses 
- The private IPaddress list. Each request supports a maximum of10batch querying.
- vpcId String
- The IDof theVPC, such asvpc-f49l6u0z.
- id String
- resultOutput StringFile 
- Used to save results.
getVpcPrivateIpAddresses Result
The following output properties are available:
- Id string
- PrivateIp List<string>Addresses 
- VpcId string
- VpcPrivate List<GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set> 
- The list of private IPaddress information.
- ResultOutput stringFile 
- Id string
- PrivateIp []stringAddresses 
- VpcId string
- VpcPrivate []GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set 
- The list of private IPaddress information.
- ResultOutput stringFile 
- id String
- privateIp List<String>Addresses 
- vpcId String
- vpcPrivate List<GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set> 
- The list of private IPaddress information.
- resultOutput StringFile 
- id string
- privateIp string[]Addresses 
- vpcId string
- vpcPrivate GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set[] 
- The list of private IPaddress information.
- resultOutput stringFile 
- id str
- private_ip_ Sequence[str]addresses 
- vpc_id str
- vpc_private_ Sequence[Getip_ address_ sets Vpc Private Ip Addresses Vpc Private Ip Address Set] 
- The list of private IPaddress information.
- result_output_ strfile 
- id String
- privateIp List<String>Addresses 
- vpcId String
- vpcPrivate List<Property Map>Ip Address Sets 
- The list of private IPaddress information.
- resultOutput StringFile 
Supporting Types
GetVpcPrivateIpAddressesVpcPrivateIpAddressSet         
- CidrBlock string
- The CIDRbelonging to the subnet.
- CreatedTime string
- IPapplication time.
- PrivateIp stringAddress 
- VPCprivate- IP.
- PrivateIp stringAddress Type 
- Private IPtype.
- CidrBlock string
- The CIDRbelonging to the subnet.
- CreatedTime string
- IPapplication time.
- PrivateIp stringAddress 
- VPCprivate- IP.
- PrivateIp stringAddress Type 
- Private IPtype.
- cidrBlock String
- The CIDRbelonging to the subnet.
- createdTime String
- IPapplication time.
- privateIp StringAddress 
- VPCprivate- IP.
- privateIp StringAddress Type 
- Private IPtype.
- cidrBlock string
- The CIDRbelonging to the subnet.
- createdTime string
- IPapplication time.
- privateIp stringAddress 
- VPCprivate- IP.
- privateIp stringAddress Type 
- Private IPtype.
- cidr_block str
- The CIDRbelonging to the subnet.
- created_time str
- IPapplication time.
- private_ip_ straddress 
- VPCprivate- IP.
- private_ip_ straddress_ type 
- Private IPtype.
- cidrBlock String
- The CIDRbelonging to the subnet.
- createdTime String
- IPapplication time.
- privateIp StringAddress 
- VPCprivate- IP.
- privateIp StringAddress Type 
- Private IPtype.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack