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});
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)
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
})
}
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,
});
});
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());
}
}
configuration:
vpcName:
type: string
default: opentelekomcloud_vpc
vpcCidr:
type: string
default: 192.168.0.0/16
resources:
vpcV1:
type: opentelekomcloud:VpcV1
properties:
cidr: ${vpcCidr}
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",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vpc_with_tags = opentelekomcloud.VpcV1("vpcWithTags",
cidr=var["vpc_cidr"],
tags={
"foo": "bar",
"key": "value",
})
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
})
}
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" },
},
});
});
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());
}
}
resources:
vpcWithTags:
type: opentelekomcloud:VpcV1
properties:
cidr: ${var.vpc_cidr}
tags:
foo: bar
key: value
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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
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
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)
type: opentelekomcloud:VpcV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcV1Args
- 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 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 string
- The unique name of the resource.
- args VpcV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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: &opentelekomcloud.VpcV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VpcV1Id: pulumi.String("string"),
})
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());
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")
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",
});
type: opentelekomcloud:VpcV1
properties:
cidr: string
description: string
name: string
region: string
secondaryCidr: string
tags:
string: string
timeouts:
create: string
delete: string
vpcV1Id: string
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 string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- Secondary
Cidr 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. - 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. - Dictionary<string, string>
- The key/value pairs to associate with the VPC.
- Timeouts
Vpc
V1Timeouts - Vpc
V1Id string
- Cidr string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- Secondary
Cidr 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. - 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. - map[string]string
- The key/value pairs to associate with the VPC.
- Timeouts
Vpc
V1Timeouts Args - Vpc
V1Id string
- cidr String
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - Map<String,String>
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts - vpc
V1Id String
- cidr string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - {[key: string]: string}
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts - vpc
V1Id string
- cidr str
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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. - 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. - Mapping[str, str]
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts Args - vpc_
v1_ strid
- cidr String
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - Map<String>
- The key/value pairs to associate with the VPC.
- timeouts Property Map
- vpc
V1Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcV1 resource produces the following output properties:
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
- 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.
- Cidr string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- Secondary
Cidr 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. - 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. - Status string
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - Dictionary<string, string>
- The key/value pairs to associate with the VPC.
- Timeouts
Vpc
V1Timeouts - Vpc
V1Id string
- Cidr string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- Secondary
Cidr 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. - 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. - Status string
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - map[string]string
- The key/value pairs to associate with the VPC.
- Timeouts
Vpc
V1Timeouts Args - Vpc
V1Id string
- cidr String
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - status String
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - Map<String,String>
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts - vpc
V1Id String
- cidr string
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - status string
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - {[key: string]: string}
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts - vpc
V1Id string
- cidr str
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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. - 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. - status str
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - Mapping[str, str]
- The key/value pairs to associate with the VPC.
- timeouts
Vpc
V1Timeouts Args - vpc_
v1_ strid
- cidr String
- The range of available subnets in the VPC. The value ranges from
10.0.0.0/8
to10.255.255.0/24
,172.16.0.0/12
to172.31.255.0/24
, or192.168.0.0/16
to192.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
- secondary
Cidr 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. - 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. - status String
- The current status of the desired VPC. Can be either
CREATING
,OK
,DOWN
,PENDING_UPDATE
,PENDING_DELETE
orERROR
. - Map<String>
- The key/value pairs to associate with the VPC.
- timeouts Property Map
- vpc
V1Id String
Supporting Types
VpcV1Timeouts, VpcV1TimeoutsArgs
Import
VPCs can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/vpcV1:VpcV1 vpc_v1 7117d38e-4c8f-4624-a505-bd96b97d024c
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.