tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getVpcPrivateIpAddresses
Explore with Pulumi AI
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:
- Private
Ip List<string>Addresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - Vpc
Id string - The
ID
of theVPC
, such asvpc-f49l6u0z
. - Id string
- Result
Output stringFile - Used to save results.
- Private
Ip []stringAddresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - Vpc
Id string - The
ID
of theVPC
, such asvpc-f49l6u0z
. - Id string
- Result
Output stringFile - Used to save results.
- private
Ip List<String>Addresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - vpc
Id String - The
ID
of theVPC
, such asvpc-f49l6u0z
. - id String
- result
Output StringFile - Used to save results.
- private
Ip string[]Addresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - vpc
Id string - The
ID
of theVPC
, such asvpc-f49l6u0z
. - id string
- result
Output stringFile - Used to save results.
- private_
ip_ Sequence[str]addresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - vpc_
id str - The
ID
of theVPC
, such asvpc-f49l6u0z
. - id str
- result_
output_ strfile - Used to save results.
- private
Ip List<String>Addresses - The private
IP
address list. Each request supports a maximum of10
batch querying. - vpc
Id String - The
ID
of theVPC
, such asvpc-f49l6u0z
. - id String
- result
Output StringFile - Used to save results.
getVpcPrivateIpAddresses Result
The following output properties are available:
- Id string
- Private
Ip List<string>Addresses - Vpc
Id string - Vpc
Private List<GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set> - The list of private
IP
address information. - Result
Output stringFile
- Id string
- Private
Ip []stringAddresses - Vpc
Id string - Vpc
Private []GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set - The list of private
IP
address information. - Result
Output stringFile
- id String
- private
Ip List<String>Addresses - vpc
Id String - vpc
Private List<GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set> - The list of private
IP
address information. - result
Output StringFile
- id string
- private
Ip string[]Addresses - vpc
Id string - vpc
Private GetIp Address Sets Vpc Private Ip Addresses Vpc Private Ip Address Set[] - The list of private
IP
address information. - result
Output 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
IP
address information. - result_
output_ strfile
- id String
- private
Ip List<String>Addresses - vpc
Id String - vpc
Private List<Property Map>Ip Address Sets - The list of private
IP
address information. - result
Output StringFile
Supporting Types
GetVpcPrivateIpAddressesVpcPrivateIpAddressSet
- Cidr
Block string - The
CIDR
belonging to the subnet. - Created
Time string IP
application time.- Private
Ip stringAddress VPC
privateIP
.- Private
Ip stringAddress Type - Private
IP
type.
- Cidr
Block string - The
CIDR
belonging to the subnet. - Created
Time string IP
application time.- Private
Ip stringAddress VPC
privateIP
.- Private
Ip stringAddress Type - Private
IP
type.
- cidr
Block String - The
CIDR
belonging to the subnet. - created
Time String IP
application time.- private
Ip StringAddress VPC
privateIP
.- private
Ip StringAddress Type - Private
IP
type.
- cidr
Block string - The
CIDR
belonging to the subnet. - created
Time string IP
application time.- private
Ip stringAddress VPC
privateIP
.- private
Ip stringAddress Type - Private
IP
type.
- cidr_
block str - The
CIDR
belonging to the subnet. - created_
time str IP
application time.- private_
ip_ straddress VPC
privateIP
.- private_
ip_ straddress_ type - Private
IP
type.
- cidr
Block String - The
CIDR
belonging to the subnet. - created
Time String IP
application time.- private
Ip StringAddress VPC
privateIP
.- private
Ip StringAddress Type - Private
IP
type.
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