1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.VpcV1

Explore with Pulumi AI

Up-to-date reference of API arguments for VPC service you can get at documentation portal

Manages a VPC v1 resource within OpenTelekomCloud.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const vpcName = config.get("vpcName") || "opentelekomcloud_vpc";
const vpcCidr = config.get("vpcCidr") || "192.168.0.0/16";
const vpcV1 = new opentelekomcloud.VpcV1("vpcV1", {cidr: vpcCidr});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
vpc_name = config.get("vpcName")
if vpc_name is None:
    vpc_name = "opentelekomcloud_vpc"
vpc_cidr = config.get("vpcCidr")
if vpc_cidr is None:
    vpc_cidr = "192.168.0.0/16"
vpc_v1 = opentelekomcloud.VpcV1("vpcV1", cidr=vpc_cidr)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		vpcName := "opentelekomcloud_vpc"
		if param := cfg.Get("vpcName"); param != "" {
			vpcName = param
		}
		vpcCidr := "192.168.0.0/16"
		if param := cfg.Get("vpcCidr"); param != "" {
			vpcCidr = param
		}
		_, err := opentelekomcloud.NewVpcV1(ctx, "vpcV1", &opentelekomcloud.VpcV1Args{
			Cidr: pulumi.String(vpcCidr),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var vpcName = config.Get("vpcName") ?? "opentelekomcloud_vpc";
    var vpcCidr = config.Get("vpcCidr") ?? "192.168.0.0/16";
    var vpcV1 = new Opentelekomcloud.VpcV1("vpcV1", new()
    {
        Cidr = vpcCidr,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
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 config = ctx.config();
        final var vpcName = config.get("vpcName").orElse("opentelekomcloud_vpc");
        final var vpcCidr = config.get("vpcCidr").orElse("192.168.0.0/16");
        var vpcV1 = new VpcV1("vpcV1", VpcV1Args.builder()
            .cidr(vpcCidr)
            .build());

    }
}
Copy
configuration:
  vpcName:
    type: string
    default: opentelekomcloud_vpc
  vpcCidr:
    type: string
    default: 192.168.0.0/16
resources:
  vpcV1:
    type: opentelekomcloud:VpcV1
    properties:
      cidr: ${vpcCidr}
Copy

VPC with tags

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const vpcWithTags = new opentelekomcloud.VpcV1("vpcWithTags", {
    cidr: _var.vpc_cidr,
    tags: {
        foo: "bar",
        key: "value",
    },
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

vpc_with_tags = opentelekomcloud.VpcV1("vpcWithTags",
    cidr=var["vpc_cidr"],
    tags={
        "foo": "bar",
        "key": "value",
    })
Copy
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.NewVpcV1(ctx, "vpcWithTags", &opentelekomcloud.VpcV1Args{
			Cidr: pulumi.Any(_var.Vpc_cidr),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var vpcWithTags = new Opentelekomcloud.VpcV1("vpcWithTags", new()
    {
        Cidr = @var.Vpc_cidr,
        Tags = 
        {
            { "foo", "bar" },
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
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 vpcWithTags = new VpcV1("vpcWithTags", VpcV1Args.builder()
            .cidr(var_.vpc_cidr())
            .tags(Map.ofEntries(
                Map.entry("foo", "bar"),
                Map.entry("key", "value")
            ))
            .build());

    }
}
Copy
resources:
  vpcWithTags:
    type: opentelekomcloud:VpcV1
    properties:
      cidr: ${var.vpc_cidr}
      tags:
        foo: bar
        key: value
Copy

VPC with secondary cidr block

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const vpcSecCidr = new opentelekomcloud.VpcV1("vpcSecCidr", {
    cidr: "192.168.0.0/16",
    description: "description",
    secondaryCidr: "23.9.0.0/16",
    tags: {
        foo: "bar",
        key: "value",
    },
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

vpc_sec_cidr = opentelekomcloud.VpcV1("vpcSecCidr",
    cidr="192.168.0.0/16",
    description="description",
    secondary_cidr="23.9.0.0/16",
    tags={
        "foo": "bar",
        "key": "value",
    })
Copy
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.NewVpcV1(ctx, "vpcSecCidr", &opentelekomcloud.VpcV1Args{
			Cidr:          pulumi.String("192.168.0.0/16"),
			Description:   pulumi.String("description"),
			SecondaryCidr: pulumi.String("23.9.0.0/16"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var vpcSecCidr = new Opentelekomcloud.VpcV1("vpcSecCidr", new()
    {
        Cidr = "192.168.0.0/16",
        Description = "description",
        SecondaryCidr = "23.9.0.0/16",
        Tags = 
        {
            { "foo", "bar" },
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
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 vpcSecCidr = new VpcV1("vpcSecCidr", VpcV1Args.builder()
            .cidr("192.168.0.0/16")
            .description("description")
            .secondaryCidr("23.9.0.0/16")
            .tags(Map.ofEntries(
                Map.entry("foo", "bar"),
                Map.entry("key", "value")
            ))
            .build());

    }
}
Copy
resources:
  vpcSecCidr:
    type: opentelekomcloud:VpcV1
    properties:
      cidr: 192.168.0.0/16
      description: description
      secondaryCidr: 23.9.0.0/16
      tags:
        foo: bar
        key: value
Copy

Create VpcV1 Resource

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

Constructor syntax

new VpcV1(name: string, args: VpcV1Args, opts?: CustomResourceOptions);
@overload
def VpcV1(resource_name: str,
          args: VpcV1Args,
          opts: Optional[ResourceOptions] = None)

@overload
def VpcV1(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          cidr: Optional[str] = None,
          description: Optional[str] = None,
          name: Optional[str] = None,
          region: Optional[str] = None,
          secondary_cidr: Optional[str] = None,
          shared: Optional[bool] = None,
          tags: Optional[Mapping[str, str]] = None,
          timeouts: Optional[VpcV1TimeoutsArgs] = None,
          vpc_v1_id: Optional[str] = None)
func NewVpcV1(ctx *Context, name string, args VpcV1Args, opts ...ResourceOption) (*VpcV1, error)
public VpcV1(string name, VpcV1Args args, CustomResourceOptions? opts = null)
public VpcV1(String name, VpcV1Args args)
public VpcV1(String name, VpcV1Args args, CustomResourceOptions options)
type: opentelekomcloud:VpcV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VpcV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VpcV1Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VpcV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VpcV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VpcV1Args
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 vpcV1Resource = new Opentelekomcloud.VpcV1("vpcV1Resource", new()
{
    Cidr = "string",
    Description = "string",
    Name = "string",
    Region = "string",
    SecondaryCidr = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Opentelekomcloud.Inputs.VpcV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VpcV1Id = "string",
});
Copy
example, err := opentelekomcloud.NewVpcV1(ctx, "vpcV1Resource", &opentelekomcloud.VpcV1Args{
Cidr: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SecondaryCidr: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &.VpcV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VpcV1Id: pulumi.String("string"),
})
Copy
var vpcV1Resource = new VpcV1("vpcV1Resource", VpcV1Args.builder()
    .cidr("string")
    .description("string")
    .name("string")
    .region("string")
    .secondaryCidr("string")
    .tags(Map.of("string", "string"))
    .timeouts(VpcV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vpcV1Id("string")
    .build());
Copy
vpc_v1_resource = opentelekomcloud.VpcV1("vpcV1Resource",
    cidr="string",
    description="string",
    name="string",
    region="string",
    secondary_cidr="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vpc_v1_id="string")
Copy
const vpcV1Resource = new opentelekomcloud.VpcV1("vpcV1Resource", {
    cidr: "string",
    description: "string",
    name: "string",
    region: "string",
    secondaryCidr: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vpcV1Id: "string",
});
Copy
type: opentelekomcloud:VpcV1
properties:
    cidr: string
    description: string
    name: string
    region: string
    secondaryCidr: string
    tags:
        string: string
    timeouts:
        create: string
        delete: string
    vpcV1Id: string
Copy

VpcV1 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 VpcV1 resource accepts the following input properties:

Cidr This property is required. string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
Description string
A description of the VPC.
Name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
Region string
SecondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
Shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

Tags Dictionary<string, string>
The key/value pairs to associate with the VPC.
Timeouts VpcV1Timeouts
VpcV1Id string
Cidr This property is required. string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
Description string
A description of the VPC.
Name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
Region string
SecondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
Shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

Tags map[string]string
The key/value pairs to associate with the VPC.
Timeouts VpcV1TimeoutsArgs
VpcV1Id string
cidr This property is required. String
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description String
A description of the VPC.
name String
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region String
secondaryCidr String
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared Boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

tags Map<String,String>
The key/value pairs to associate with the VPC.
timeouts VpcV1Timeouts
vpcV1Id String
cidr This property is required. string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description string
A description of the VPC.
name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region string
secondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

tags {[key: string]: string}
The key/value pairs to associate with the VPC.
timeouts VpcV1Timeouts
vpcV1Id string
cidr This property is required. str
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description str
A description of the VPC.
name str
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region str
secondary_cidr str
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

tags Mapping[str, str]
The key/value pairs to associate with the VPC.
timeouts VpcV1TimeoutsArgs
vpc_v1_id str
cidr This property is required. String
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description String
A description of the VPC.
name String
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region String
secondaryCidr String
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared Boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

tags Map<String>
The key/value pairs to associate with the VPC.
timeouts Property Map
vpcV1Id String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
id String
The provider-assigned unique ID for this managed resource.
status String
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
id string
The provider-assigned unique ID for this managed resource.
status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
id str
The provider-assigned unique ID for this managed resource.
status str
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
id String
The provider-assigned unique ID for this managed resource.
status String
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.

Look up Existing VpcV1 Resource

Get an existing VpcV1 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?: VpcV1State, opts?: CustomResourceOptions): VpcV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cidr: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        secondary_cidr: Optional[str] = None,
        shared: Optional[bool] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        timeouts: Optional[VpcV1TimeoutsArgs] = None,
        vpc_v1_id: Optional[str] = None) -> VpcV1
func GetVpcV1(ctx *Context, name string, id IDInput, state *VpcV1State, opts ...ResourceOption) (*VpcV1, error)
public static VpcV1 Get(string name, Input<string> id, VpcV1State? state, CustomResourceOptions? opts = null)
public static VpcV1 get(String name, Output<String> id, VpcV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:VpcV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Cidr string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
Description string
A description of the VPC.
Name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
Region string
SecondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
Shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

Status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
Tags Dictionary<string, string>
The key/value pairs to associate with the VPC.
Timeouts VpcV1Timeouts
VpcV1Id string
Cidr string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
Description string
A description of the VPC.
Name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
Region string
SecondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
Shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

Status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
Tags map[string]string
The key/value pairs to associate with the VPC.
Timeouts VpcV1TimeoutsArgs
VpcV1Id string
cidr String
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description String
A description of the VPC.
name String
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region String
secondaryCidr String
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared Boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

status String
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
tags Map<String,String>
The key/value pairs to associate with the VPC.
timeouts VpcV1Timeouts
vpcV1Id String
cidr string
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description string
A description of the VPC.
name string
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region string
secondaryCidr string
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

status string
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
tags {[key: string]: string}
The key/value pairs to associate with the VPC.
timeouts VpcV1Timeouts
vpcV1Id string
cidr str
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description str
A description of the VPC.
name str
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region str
secondary_cidr str
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared bool
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

status str
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
tags Mapping[str, str]
The key/value pairs to associate with the VPC.
timeouts VpcV1TimeoutsArgs
vpc_v1_id str
cidr String
The range of available subnets in the VPC. The value ranges from 10.0.0.0/8 to 10.255.255.0/24, 172.16.0.0/12 to 172.31.255.0/24, or 192.168.0.0/16 to 192.168.255.0/24.
description String
A description of the VPC.
name String
The name of the VPC. The name must be unique for a tenant. The value is a string of no more than 64 characters and can contain digits, letters, underscores (_), and hyphens (-).
region String
secondaryCidr String
Secondary CIDR block that can be added to VPCs. The value cannot contain the following: 100.64.0.0/1, 214.0.0.0/7, 198.18.0.0/15, 169.254.0.0/16, 0.0.0.0/8, 127.0.0.0/8, 240.0.0.0/4, 172.31.0.0/16, 192.168.0.0/16. Currently, only one secondary CIDR block can be added to each VPC.
shared Boolean
Specifies whether the shared SNAT should be used or not. Is also required for cross-tenant sharing. Shared SNAT only avadilable in eu-de region. Deprecated, VPC Shared SNAT End of Life from 01.03.2024, please do not use.

Deprecated: Deprecated

status String
The current status of the desired VPC. Can be either CREATING, OK, DOWN, PENDING_UPDATE, PENDING_DELETE or ERROR.
tags Map<String>
The key/value pairs to associate with the VPC.
timeouts Property Map
vpcV1Id String

Supporting Types

VpcV1Timeouts
, VpcV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

VPCs can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/vpcV1:VpcV1 vpc_v1 7117d38e-4c8f-4624-a505-bd96b97d024c
Copy

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.