Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
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 dictionarydata "opentelekomcloud_get_vpc_subnet_private_ip_v1" "name" {
# arguments
}The following arguments are supported:
getVpcSubnetPrivateIpV1 Result
The following output properties are available:
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
- 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
ACTIVEorDOWN. - 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.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
published on Thursday, Sep 10, 2026 by opentelekomcloud