1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getVpcSubnetPrivateIpV1
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    Use this data source to query a VPC subnet private IP address by ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const privateIp = opentelekomcloud.getVpcSubnetPrivateIpV1({
        id: "d600542a-b231-45ed-af05-e9930cb14f78",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    private_ip = opentelekomcloud.get_vpc_subnet_private_ip_v1(id="d600542a-b231-45ed-af05-e9930cb14f78")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupVpcSubnetPrivateIpV1(ctx, &opentelekomcloud.LookupVpcSubnetPrivateIpV1Args{
    			Id: "d600542a-b231-45ed-af05-e9930cb14f78",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var privateIp = Opentelekomcloud.GetVpcSubnetPrivateIpV1.Invoke(new()
        {
            Id = "d600542a-b231-45ed-af05-e9930cb14f78",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetVpcSubnetPrivateIpV1Args;
    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 privateIp = OpentelekomcloudFunctions.getVpcSubnetPrivateIpV1(GetVpcSubnetPrivateIpV1Args.builder()
                .id("d600542a-b231-45ed-af05-e9930cb14f78")
                .build());
    
        }
    }
    
    variables:
      privateIp:
        fn::invoke:
          function: opentelekomcloud:getVpcSubnetPrivateIpV1
          arguments:
            id: d600542a-b231-45ed-af05-e9930cb14f78
    
    Example coming soon!
    

    Using getVpcSubnetPrivateIpV1

    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 getVpcSubnetPrivateIpV1(args: GetVpcSubnetPrivateIpV1Args, opts?: InvokeOptions): Promise<GetVpcSubnetPrivateIpV1Result>
    function getVpcSubnetPrivateIpV1Output(args: GetVpcSubnetPrivateIpV1OutputArgs, opts?: InvokeOutputOptions): Output<GetVpcSubnetPrivateIpV1Result>
    def get_vpc_subnet_private_ip_v1(id: Optional[str] = None,
                                     region: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetVpcSubnetPrivateIpV1Result
    def get_vpc_subnet_private_ip_v1_output(id: pulumi.Input[Optional[str]] = None,
                                     region: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcSubnetPrivateIpV1Result]
    func LookupVpcSubnetPrivateIpV1(ctx *Context, args *LookupVpcSubnetPrivateIpV1Args, opts ...InvokeOption) (*LookupVpcSubnetPrivateIpV1Result, error)
    func LookupVpcSubnetPrivateIpV1Output(ctx *Context, args *LookupVpcSubnetPrivateIpV1OutputArgs, opts ...InvokeOption) LookupVpcSubnetPrivateIpV1ResultOutput

    > Note: This function is named LookupVpcSubnetPrivateIpV1 in the Go SDK.

    public static class GetVpcSubnetPrivateIpV1 
    {
        public static Task<GetVpcSubnetPrivateIpV1Result> InvokeAsync(GetVpcSubnetPrivateIpV1Args args, InvokeOptions? opts = null)
        public static Output<GetVpcSubnetPrivateIpV1Result> Invoke(GetVpcSubnetPrivateIpV1InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcSubnetPrivateIpV1Result> Invoke(GetVpcSubnetPrivateIpV1InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcSubnetPrivateIpV1Result> getVpcSubnetPrivateIpV1(GetVpcSubnetPrivateIpV1Args args, InvokeOptions options)
    public static Output<GetVpcSubnetPrivateIpV1Result> getVpcSubnetPrivateIpV1(GetVpcSubnetPrivateIpV1Args args, InvokeOptions options)
    public static Output<GetVpcSubnetPrivateIpV1Result> getVpcSubnetPrivateIpV1(GetVpcSubnetPrivateIpV1Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getVpcSubnetPrivateIpV1:getVpcSubnetPrivateIpV1
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_vpc_subnet_private_ip_v1" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Specifies the unique private IP address ID.
    Region string
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    Id string
    Specifies the unique private IP address ID.
    Region string
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    id string
    Specifies the unique private IP address ID.
    region string
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    id String
    Specifies the unique private IP address ID.
    region String
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    id string
    Specifies the unique private IP address ID.
    region string
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    id str
    Specifies the unique private IP address ID.
    region str
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.
    id String
    Specifies the unique private IP address ID.
    region String
    Specifies the region in which to query the private IP address. If omitted, the provider-level region is used.

    getVpcSubnetPrivateIpV1 Result

    The following output properties are available:

    DeviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    Id string
    IpAddress string
    The assigned IPv4 address.
    Region string
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    SubnetId string
    The network ID of the subnet from which the address is assigned.
    TenantId string
    The project ID that owns the private IP address.
    DeviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    Id string
    IpAddress string
    The assigned IPv4 address.
    Region string
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    SubnetId string
    The network ID of the subnet from which the address is assigned.
    TenantId string
    The project ID that owns the private IP address.
    device_owner string
    The resource using the private IP address. This is empty when the address is unused.
    id string
    ip_address string
    The assigned IPv4 address.
    region string
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    subnet_id string
    The network ID of the subnet from which the address is assigned.
    tenant_id string
    The project ID that owns the private IP address.
    deviceOwner String
    The resource using the private IP address. This is empty when the address is unused.
    id String
    ipAddress String
    The assigned IPv4 address.
    region String
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId String
    The network ID of the subnet from which the address is assigned.
    tenantId String
    The project ID that owns the private IP address.
    deviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    id string
    ipAddress string
    The assigned IPv4 address.
    region string
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId string
    The network ID of the subnet from which the address is assigned.
    tenantId string
    The project ID that owns the private IP address.
    device_owner str
    The resource using the private IP address. This is empty when the address is unused.
    id str
    ip_address str
    The assigned IPv4 address.
    region str
    status str
    The private IP address status. The value is ACTIVE or DOWN.
    subnet_id str
    The network ID of the subnet from which the address is assigned.
    tenant_id str
    The project ID that owns the private IP address.
    deviceOwner String
    The resource using the private IP address. This is empty when the address is unused.
    id String
    ipAddress String
    The assigned IPv4 address.
    region String
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId String
    The network ID of the subnet from which the address is assigned.
    tenantId String
    The project ID that owns the private IP address.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial