1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. VpcSubnetPrivateIpV1
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

    Manages a private IP address in a VPC subnet.

    Example Usage

    Automatically assign an available address

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const privateIp = new opentelekomcloud.VpcSubnetPrivateIpV1("private_ip", {subnetId: example.networkId});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    private_ip = opentelekomcloud.VpcSubnetPrivateIpV1("private_ip", subnet_id=example["networkId"])
    
    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.NewVpcSubnetPrivateIpV1(ctx, "private_ip", &opentelekomcloud.VpcSubnetPrivateIpV1Args{
    			SubnetId: pulumi.Any(example.NetworkId),
    		})
    		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 = new Opentelekomcloud.VpcSubnetPrivateIpV1("private_ip", new()
        {
            SubnetId = example.NetworkId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpcSubnetPrivateIpV1;
    import com.pulumi.opentelekomcloud.VpcSubnetPrivateIpV1Args;
    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) {
            var privateIp = new VpcSubnetPrivateIpV1("privateIp", VpcSubnetPrivateIpV1Args.builder()
                .subnetId(example.networkId())
                .build());
    
        }
    }
    
    resources:
      privateIp:
        type: opentelekomcloud:VpcSubnetPrivateIpV1
        name: private_ip
        properties:
          subnetId: ${example.networkId}
    
    Example coming soon!
    

    Assign a specific address

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const privateIp = new opentelekomcloud.VpcSubnetPrivateIpV1("private_ip", {
        subnetId: example.networkId,
        ipAddress: "192.168.10.10",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    private_ip = opentelekomcloud.VpcSubnetPrivateIpV1("private_ip",
        subnet_id=example["networkId"],
        ip_address="192.168.10.10")
    
    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.NewVpcSubnetPrivateIpV1(ctx, "private_ip", &opentelekomcloud.VpcSubnetPrivateIpV1Args{
    			SubnetId:  pulumi.Any(example.NetworkId),
    			IpAddress: pulumi.String("192.168.10.10"),
    		})
    		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 = new Opentelekomcloud.VpcSubnetPrivateIpV1("private_ip", new()
        {
            SubnetId = example.NetworkId,
            IpAddress = "192.168.10.10",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpcSubnetPrivateIpV1;
    import com.pulumi.opentelekomcloud.VpcSubnetPrivateIpV1Args;
    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) {
            var privateIp = new VpcSubnetPrivateIpV1("privateIp", VpcSubnetPrivateIpV1Args.builder()
                .subnetId(example.networkId())
                .ipAddress("192.168.10.10")
                .build());
    
        }
    }
    
    resources:
      privateIp:
        type: opentelekomcloud:VpcSubnetPrivateIpV1
        name: private_ip
        properties:
          subnetId: ${example.networkId}
          ipAddress: 192.168.10.10
    
    Example coming soon!
    

    Create VpcSubnetPrivateIpV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcSubnetPrivateIpV1(name: string, args: VpcSubnetPrivateIpV1Args, opts?: CustomResourceOptions);
    @overload
    def VpcSubnetPrivateIpV1(resource_name: str,
                             args: VpcSubnetPrivateIpV1Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcSubnetPrivateIpV1(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             subnet_id: Optional[str] = None,
                             ip_address: Optional[str] = None,
                             region: Optional[str] = None,
                             vpc_subnet_private_ip_v1_id: Optional[str] = None)
    func NewVpcSubnetPrivateIpV1(ctx *Context, name string, args VpcSubnetPrivateIpV1Args, opts ...ResourceOption) (*VpcSubnetPrivateIpV1, error)
    public VpcSubnetPrivateIpV1(string name, VpcSubnetPrivateIpV1Args args, CustomResourceOptions? opts = null)
    public VpcSubnetPrivateIpV1(String name, VpcSubnetPrivateIpV1Args args)
    public VpcSubnetPrivateIpV1(String name, VpcSubnetPrivateIpV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcSubnetPrivateIpV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "opentelekomcloud_vpc_subnet_private_ip_v1" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcSubnetPrivateIpV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcSubnetPrivateIpV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcSubnetPrivateIpV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcSubnetPrivateIpV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcSubnetPrivateIpV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcSubnetPrivateIpV1Resource = new Opentelekomcloud.VpcSubnetPrivateIpV1("vpcSubnetPrivateIpV1Resource", new()
    {
        SubnetId = "string",
        IpAddress = "string",
        Region = "string",
        VpcSubnetPrivateIpV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpcSubnetPrivateIpV1(ctx, "vpcSubnetPrivateIpV1Resource", &opentelekomcloud.VpcSubnetPrivateIpV1Args{
    	SubnetId:               pulumi.String("string"),
    	IpAddress:              pulumi.String("string"),
    	Region:                 pulumi.String("string"),
    	VpcSubnetPrivateIpV1Id: pulumi.String("string"),
    })
    
    resource "opentelekomcloud_vpc_subnet_private_ip_v1" "vpcSubnetPrivateIpV1Resource" {
      lifecycle {
        create_before_destroy = true
      }
      subnet_id                   = "string"
      ip_address                  = "string"
      region                      = "string"
      vpc_subnet_private_ip_v1_id = "string"
    }
    
    var vpcSubnetPrivateIpV1Resource = new VpcSubnetPrivateIpV1("vpcSubnetPrivateIpV1Resource", VpcSubnetPrivateIpV1Args.builder()
        .subnetId("string")
        .ipAddress("string")
        .region("string")
        .vpcSubnetPrivateIpV1Id("string")
        .build());
    
    vpc_subnet_private_ip_v1_resource = opentelekomcloud.VpcSubnetPrivateIpV1("vpcSubnetPrivateIpV1Resource",
        subnet_id="string",
        ip_address="string",
        region="string",
        vpc_subnet_private_ip_v1_id="string")
    
    const vpcSubnetPrivateIpV1Resource = new opentelekomcloud.VpcSubnetPrivateIpV1("vpcSubnetPrivateIpV1Resource", {
        subnetId: "string",
        ipAddress: "string",
        region: "string",
        vpcSubnetPrivateIpV1Id: "string",
    });
    
    type: opentelekomcloud:VpcSubnetPrivateIpV1
    properties:
        ipAddress: string
        region: string
        subnetId: string
        vpcSubnetPrivateIpV1Id: string
    

    VpcSubnetPrivateIpV1 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcSubnetPrivateIpV1 resource accepts the following input properties:

    SubnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    IpAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    Region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    VpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    SubnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    IpAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    Region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    VpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    subnet_id string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    ip_address string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    vpc_subnet_private_ip_v1_id string
    The unique private IP address ID.
    subnetId String
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    ipAddress String
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region String
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    vpcSubnetPrivateIpV1Id String
    The unique private IP address ID.
    subnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    ipAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    vpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    subnet_id str
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    ip_address str
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region str
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    vpc_subnet_private_ip_v1_id str
    The unique private IP address ID.
    subnetId String
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    ipAddress String
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region String
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    vpcSubnetPrivateIpV1Id String
    The unique private IP address ID.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcSubnetPrivateIpV1 resource produces the following output properties:

    DeviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    status str
    The private IP address status. The value is ACTIVE or DOWN.
    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
    The provider-assigned unique ID for this managed resource.
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    tenantId String
    The project ID that owns the private IP address.

    Look up Existing VpcSubnetPrivateIpV1 Resource

    Get an existing VpcSubnetPrivateIpV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcSubnetPrivateIpV1State, opts?: CustomResourceOptions): VpcSubnetPrivateIpV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            device_owner: Optional[str] = None,
            ip_address: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            vpc_subnet_private_ip_v1_id: Optional[str] = None) -> VpcSubnetPrivateIpV1
    func GetVpcSubnetPrivateIpV1(ctx *Context, name string, id IDInput, state *VpcSubnetPrivateIpV1State, opts ...ResourceOption) (*VpcSubnetPrivateIpV1, error)
    public static VpcSubnetPrivateIpV1 Get(string name, Input<string> id, VpcSubnetPrivateIpV1State? state, CustomResourceOptions? opts = null)
    public static VpcSubnetPrivateIpV1 get(String name, Output<String> id, VpcSubnetPrivateIpV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcSubnetPrivateIpV1    get:      id: ${id}
    import {
      to = opentelekomcloud_vpc_subnet_private_ip_v1.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DeviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    IpAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    Region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    SubnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    TenantId string
    The project ID that owns the private IP address.
    VpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    DeviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    IpAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    Region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    Status string
    The private IP address status. The value is ACTIVE or DOWN.
    SubnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    TenantId string
    The project ID that owns the private IP address.
    VpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    device_owner string
    The resource using the private IP address. This is empty when the address is unused.
    ip_address string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    subnet_id string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    tenant_id string
    The project ID that owns the private IP address.
    vpc_subnet_private_ip_v1_id string
    The unique private IP address ID.
    deviceOwner String
    The resource using the private IP address. This is empty when the address is unused.
    ipAddress String
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region String
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId String
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    tenantId String
    The project ID that owns the private IP address.
    vpcSubnetPrivateIpV1Id String
    The unique private IP address ID.
    deviceOwner string
    The resource using the private IP address. This is empty when the address is unused.
    ipAddress string
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region string
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    status string
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId string
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    tenantId string
    The project ID that owns the private IP address.
    vpcSubnetPrivateIpV1Id string
    The unique private IP address ID.
    device_owner str
    The resource using the private IP address. This is empty when the address is unused.
    ip_address str
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region str
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    status str
    The private IP address status. The value is ACTIVE or DOWN.
    subnet_id str
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    tenant_id str
    The project ID that owns the private IP address.
    vpc_subnet_private_ip_v1_id str
    The unique private IP address ID.
    deviceOwner String
    The resource using the private IP address. This is empty when the address is unused.
    ipAddress String
    Specifies an available IPv4 address in the subnet. If omitted, OpenTelekomCloud automatically assigns an address. Changing this creates a new resource.
    region String
    Specifies the region in which to create the private IP address. If omitted, the provider-level region is used. Changing this creates a new resource.
    status String
    The private IP address status. The value is ACTIVE or DOWN.
    subnetId String
    Specifies the network ID of the subnet from which the address is assigned. Use the network_id attribute of opentelekomcloud.VpcSubnetV1. Changing this creates a new resource.
    tenantId String
    The project ID that owns the private IP address.
    vpcSubnetPrivateIpV1Id String
    The unique private IP address ID.

    Import

    Private IP addresses can be imported using their ID:

    $ pulumi import opentelekomcloud:index/vpcSubnetPrivateIpV1:VpcSubnetPrivateIpV1 private_ip <private-ip-id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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