tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getVpcUsedIpAddress
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 used_ip_address
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const usedIpAddress = tencentcloud.getVpcUsedIpAddress({
    vpcId: "vpc-4owdpnwr",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
used_ip_address = tencentcloud.get_vpc_used_ip_address(vpc_id="vpc-4owdpnwr")
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.GetVpcUsedIpAddress(ctx, &tencentcloud.GetVpcUsedIpAddressArgs{
			VpcId: "vpc-4owdpnwr",
		}, 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 usedIpAddress = Tencentcloud.GetVpcUsedIpAddress.Invoke(new()
    {
        VpcId = "vpc-4owdpnwr",
    });
});
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.GetVpcUsedIpAddressArgs;
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 usedIpAddress = TencentcloudFunctions.getVpcUsedIpAddress(GetVpcUsedIpAddressArgs.builder()
            .vpcId("vpc-4owdpnwr")
            .build());
    }
}
variables:
  usedIpAddress:
    fn::invoke:
      function: tencentcloud:getVpcUsedIpAddress
      arguments:
        vpcId: vpc-4owdpnwr
Using getVpcUsedIpAddress
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 getVpcUsedIpAddress(args: GetVpcUsedIpAddressArgs, opts?: InvokeOptions): Promise<GetVpcUsedIpAddressResult>
function getVpcUsedIpAddressOutput(args: GetVpcUsedIpAddressOutputArgs, opts?: InvokeOptions): Output<GetVpcUsedIpAddressResult>def get_vpc_used_ip_address(id: Optional[str] = None,
                            ip_addresses: Optional[Sequence[str]] = None,
                            result_output_file: Optional[str] = None,
                            subnet_id: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetVpcUsedIpAddressResult
def get_vpc_used_ip_address_output(id: Optional[pulumi.Input[str]] = None,
                            ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            result_output_file: Optional[pulumi.Input[str]] = None,
                            subnet_id: Optional[pulumi.Input[str]] = None,
                            vpc_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetVpcUsedIpAddressResult]func GetVpcUsedIpAddress(ctx *Context, args *GetVpcUsedIpAddressArgs, opts ...InvokeOption) (*GetVpcUsedIpAddressResult, error)
func GetVpcUsedIpAddressOutput(ctx *Context, args *GetVpcUsedIpAddressOutputArgs, opts ...InvokeOption) GetVpcUsedIpAddressResultOutput> Note: This function is named GetVpcUsedIpAddress in the Go SDK.
public static class GetVpcUsedIpAddress 
{
    public static Task<GetVpcUsedIpAddressResult> InvokeAsync(GetVpcUsedIpAddressArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcUsedIpAddressResult> Invoke(GetVpcUsedIpAddressInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcUsedIpAddressResult> getVpcUsedIpAddress(GetVpcUsedIpAddressArgs args, InvokeOptions options)
public static Output<GetVpcUsedIpAddressResult> getVpcUsedIpAddress(GetVpcUsedIpAddressArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getVpcUsedIpAddress:getVpcUsedIpAddress
  arguments:
    # arguments dictionaryThe following arguments are supported:
- VpcId string
- VPC instance ID.
- Id string
- IpAddresses List<string>
- IPs to query.
- ResultOutput stringFile 
- Used to save results.
- SubnetId string
- Subnet instance ID.
- VpcId string
- VPC instance ID.
- Id string
- IpAddresses []string
- IPs to query.
- ResultOutput stringFile 
- Used to save results.
- SubnetId string
- Subnet instance ID.
- vpcId String
- VPC instance ID.
- id String
- ipAddresses List<String>
- IPs to query.
- resultOutput StringFile 
- Used to save results.
- subnetId String
- Subnet instance ID.
- vpcId string
- VPC instance ID.
- id string
- ipAddresses string[]
- IPs to query.
- resultOutput stringFile 
- Used to save results.
- subnetId string
- Subnet instance ID.
- vpc_id str
- VPC instance ID.
- id str
- ip_addresses Sequence[str]
- IPs to query.
- result_output_ strfile 
- Used to save results.
- subnet_id str
- Subnet instance ID.
- vpcId String
- VPC instance ID.
- id String
- ipAddresses List<String>
- IPs to query.
- resultOutput StringFile 
- Used to save results.
- subnetId String
- Subnet instance ID.
getVpcUsedIpAddress Result
The following output properties are available:
- Id string
- IpAddress List<GetStates Vpc Used Ip Address Ip Address State> 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- VpcId string
- VPC instance ID.
- IpAddresses List<string>
- ResultOutput stringFile 
- SubnetId string
- Subnet instance ID.
- Id string
- IpAddress []GetStates Vpc Used Ip Address Ip Address State 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- VpcId string
- VPC instance ID.
- IpAddresses []string
- ResultOutput stringFile 
- SubnetId string
- Subnet instance ID.
- id String
- ipAddress List<GetStates Vpc Used Ip Address Ip Address State> 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- vpcId String
- VPC instance ID.
- ipAddresses List<String>
- resultOutput StringFile 
- subnetId String
- Subnet instance ID.
- id string
- ipAddress GetStates Vpc Used Ip Address Ip Address State[] 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- vpcId string
- VPC instance ID.
- ipAddresses string[]
- resultOutput stringFile 
- subnetId string
- Subnet instance ID.
- id str
- ip_address_ Sequence[Getstates Vpc Used Ip Address Ip Address State] 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- vpc_id str
- VPC instance ID.
- ip_addresses Sequence[str]
- result_output_ strfile 
- subnet_id str
- Subnet instance ID.
- id String
- ipAddress List<Property Map>States 
- Information of resources bound with the queried IPs Note: This parameter may return null, indicating that no valid values can be obtained.
- vpcId String
- VPC instance ID.
- ipAddresses List<String>
- resultOutput StringFile 
- subnetId String
- Subnet instance ID.
Supporting Types
GetVpcUsedIpAddressIpAddressState       
- IpAddress string
- IP address.
- ResourceId string
- Resource ID.
- ResourceType string
- Resource type.
- SubnetId string
- Subnet instance ID.
- VpcId string
- VPC instance ID.
- IpAddress string
- IP address.
- ResourceId string
- Resource ID.
- ResourceType string
- Resource type.
- SubnetId string
- Subnet instance ID.
- VpcId string
- VPC instance ID.
- ipAddress String
- IP address.
- resourceId String
- Resource ID.
- resourceType String
- Resource type.
- subnetId String
- Subnet instance ID.
- vpcId String
- VPC instance ID.
- ipAddress string
- IP address.
- resourceId string
- Resource ID.
- resourceType string
- Resource type.
- subnetId string
- Subnet instance ID.
- vpcId string
- VPC instance ID.
- ip_address str
- IP address.
- resource_id str
- Resource ID.
- resource_type str
- Resource type.
- subnet_id str
- Subnet instance ID.
- vpc_id str
- VPC instance ID.
- ipAddress String
- IP address.
- resourceId String
- Resource ID.
- resourceType String
- Resource type.
- subnetId String
- Subnet instance ID.
- vpcId String
- VPC instance ID.
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