1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getVpcPrivateIpAddresses
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getVpcPrivateIpAddresses

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    PrivateIpAddresses List<string>
    The private IP address list. Each request supports a maximum of 10 batch querying.
    VpcId string
    The ID of the VPC, such as vpc-f49l6u0z.
    Id string
    ResultOutputFile string
    Used to save results.
    PrivateIpAddresses []string
    The private IP address list. Each request supports a maximum of 10 batch querying.
    VpcId string
    The ID of the VPC, such as vpc-f49l6u0z.
    Id string
    ResultOutputFile string
    Used to save results.
    privateIpAddresses List<String>
    The private IP address list. Each request supports a maximum of 10 batch querying.
    vpcId String
    The ID of the VPC, such as vpc-f49l6u0z.
    id String
    resultOutputFile String
    Used to save results.
    privateIpAddresses string[]
    The private IP address list. Each request supports a maximum of 10 batch querying.
    vpcId string
    The ID of the VPC, such as vpc-f49l6u0z.
    id string
    resultOutputFile string
    Used to save results.
    private_ip_addresses Sequence[str]
    The private IP address list. Each request supports a maximum of 10 batch querying.
    vpc_id str
    The ID of the VPC, such as vpc-f49l6u0z.
    id str
    result_output_file str
    Used to save results.
    privateIpAddresses List<String>
    The private IP address list. Each request supports a maximum of 10 batch querying.
    vpcId String
    The ID of the VPC, such as vpc-f49l6u0z.
    id String
    resultOutputFile String
    Used to save results.

    getVpcPrivateIpAddresses Result

    The following output properties are available:

    Id string
    PrivateIpAddresses List<string>
    VpcId string
    VpcPrivateIpAddressSets List<GetVpcPrivateIpAddressesVpcPrivateIpAddressSet>
    The list of private IP address information.
    ResultOutputFile string
    id String
    privateIpAddresses List<String>
    vpcId String
    vpcPrivateIpAddressSets List<GetVpcPrivateIpAddressesVpcPrivateIpAddressSet>
    The list of private IP address information.
    resultOutputFile String
    id String
    privateIpAddresses List<String>
    vpcId String
    vpcPrivateIpAddressSets List<Property Map>
    The list of private IP address information.
    resultOutputFile String

    Supporting Types

    GetVpcPrivateIpAddressesVpcPrivateIpAddressSet

    CidrBlock string
    The CIDR belonging to the subnet.
    CreatedTime string
    IP application time.
    PrivateIpAddress string
    VPC private IP.
    PrivateIpAddressType string
    Private IP type.
    CidrBlock string
    The CIDR belonging to the subnet.
    CreatedTime string
    IP application time.
    PrivateIpAddress string
    VPC private IP.
    PrivateIpAddressType string
    Private IP type.
    cidrBlock String
    The CIDR belonging to the subnet.
    createdTime String
    IP application time.
    privateIpAddress String
    VPC private IP.
    privateIpAddressType String
    Private IP type.
    cidrBlock string
    The CIDR belonging to the subnet.
    createdTime string
    IP application time.
    privateIpAddress string
    VPC private IP.
    privateIpAddressType string
    Private IP type.
    cidr_block str
    The CIDR belonging to the subnet.
    created_time str
    IP application time.
    private_ip_address str
    VPC private IP.
    private_ip_address_type str
    Private IP type.
    cidrBlock String
    The CIDR belonging to the subnet.
    createdTime String
    IP application time.
    privateIpAddress String
    VPC private IP.
    privateIpAddressType String
    Private IP type.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack