alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.Network

Import

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

 $ pulumi import alicloud:vpc/network:Network example vpc-abc123456

Create Network Resource

new Network(name: string, args?: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cidr_block: Optional[str] = None,
            description: Optional[str] = None,
            dry_run: Optional[bool] = None,
            enable_ipv6: Optional[bool] = None,
            name: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            secondary_cidr_blocks: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, Any]] = None,
            user_cidrs: Optional[Sequence[str]] = None,
            vpc_name: Optional[str] = None)
@overload
def Network(resource_name: str,
            args: Optional[NetworkArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewNetwork(ctx *Context, name string, args *NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs? args = null, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: alicloud:vpc:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NetworkArgs
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 NetworkArgs
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 NetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Network Resource Properties

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

Inputs

The Network resource accepts the following input properties:

CidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

Description string

The VPC description. Defaults to null.

DryRun bool

Specifies whether to pre-check this request only. Valid values: true and false.

EnableIpv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

Name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

ResourceGroupId string

The ID of resource group which the VPC belongs.

SecondaryCidrBlocks List<string>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

UserCidrs List<string>

The user cidr blocks of the VPC.

VpcName string

The name of the VPC. Defaults to null.

CidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

Description string

The VPC description. Defaults to null.

DryRun bool

Specifies whether to pre-check this request only. Valid values: true and false.

EnableIpv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

Name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

ResourceGroupId string

The ID of resource group which the VPC belongs.

SecondaryCidrBlocks []string

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

UserCidrs []string

The user cidr blocks of the VPC.

VpcName string

The name of the VPC. Defaults to null.

cidrBlock String

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description String

The VPC description. Defaults to null.

dryRun Boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 Boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

name String

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId String

The ID of resource group which the VPC belongs.

secondaryCidrBlocks List<String>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

tags Map<String,Object>

A mapping of tags to assign to the resource.

userCidrs List<String>

The user cidr blocks of the VPC.

vpcName String

The name of the VPC. Defaults to null.

cidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description string

The VPC description. Defaults to null.

dryRun boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId string

The ID of resource group which the VPC belongs.

secondaryCidrBlocks string[]

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

userCidrs string[]

The user cidr blocks of the VPC.

vpcName string

The name of the VPC. Defaults to null.

cidr_block str

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description str

The VPC description. Defaults to null.

dry_run bool

Specifies whether to pre-check this request only. Valid values: true and false.

enable_ipv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

name str

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resource_group_id str

The ID of resource group which the VPC belongs.

secondary_cidr_blocks Sequence[str]

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

user_cidrs Sequence[str]

The user cidr blocks of the VPC.

vpc_name str

The name of the VPC. Defaults to null.

cidrBlock String

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description String

The VPC description. Defaults to null.

dryRun Boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 Boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

name String

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId String

The ID of resource group which the VPC belongs.

secondaryCidrBlocks List<String>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

tags Map<Any>

A mapping of tags to assign to the resource.

userCidrs List<String>

The user cidr blocks of the VPC.

vpcName String

The name of the VPC. Defaults to null.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

RouteTableId string

The route table ID of the router created by default on VPC creation.

RouterId string

The ID of the router created by default on VPC creation.

RouterTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

Status string

The status of the VPC.

Id string

The provider-assigned unique ID for this managed resource.

Ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

RouteTableId string

The route table ID of the router created by default on VPC creation.

RouterId string

The ID of the router created by default on VPC creation.

RouterTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

Status string

The status of the VPC.

id String

The provider-assigned unique ID for this managed resource.

ipv6CidrBlock String

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

routeTableId String

The route table ID of the router created by default on VPC creation.

routerId String

The ID of the router created by default on VPC creation.

routerTableId String

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

status String

The status of the VPC.

id string

The provider-assigned unique ID for this managed resource.

ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

routeTableId string

The route table ID of the router created by default on VPC creation.

routerId string

The ID of the router created by default on VPC creation.

routerTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

status string

The status of the VPC.

id str

The provider-assigned unique ID for this managed resource.

ipv6_cidr_block str

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

route_table_id str

The route table ID of the router created by default on VPC creation.

router_id str

The ID of the router created by default on VPC creation.

router_table_id str

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

status str

The status of the VPC.

id String

The provider-assigned unique ID for this managed resource.

ipv6CidrBlock String

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

routeTableId String

The route table ID of the router created by default on VPC creation.

routerId String

The ID of the router created by default on VPC creation.

routerTableId String

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

status String

The status of the VPC.

Look up Existing Network Resource

Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cidr_block: Optional[str] = None,
        description: Optional[str] = None,
        dry_run: Optional[bool] = None,
        enable_ipv6: Optional[bool] = None,
        ipv6_cidr_block: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        route_table_id: Optional[str] = None,
        router_id: Optional[str] = None,
        router_table_id: Optional[str] = None,
        secondary_cidr_blocks: Optional[Sequence[str]] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None,
        user_cidrs: Optional[Sequence[str]] = None,
        vpc_name: Optional[str] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
CidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

Description string

The VPC description. Defaults to null.

DryRun bool

Specifies whether to pre-check this request only. Valid values: true and false.

EnableIpv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

Ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

Name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

ResourceGroupId string

The ID of resource group which the VPC belongs.

RouteTableId string

The route table ID of the router created by default on VPC creation.

RouterId string

The ID of the router created by default on VPC creation.

RouterTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

SecondaryCidrBlocks List<string>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

Status string

The status of the VPC.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

UserCidrs List<string>

The user cidr blocks of the VPC.

VpcName string

The name of the VPC. Defaults to null.

CidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

Description string

The VPC description. Defaults to null.

DryRun bool

Specifies whether to pre-check this request only. Valid values: true and false.

EnableIpv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

Ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

Name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

ResourceGroupId string

The ID of resource group which the VPC belongs.

RouteTableId string

The route table ID of the router created by default on VPC creation.

RouterId string

The ID of the router created by default on VPC creation.

RouterTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

SecondaryCidrBlocks []string

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

Status string

The status of the VPC.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

UserCidrs []string

The user cidr blocks of the VPC.

VpcName string

The name of the VPC. Defaults to null.

cidrBlock String

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description String

The VPC description. Defaults to null.

dryRun Boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 Boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

ipv6CidrBlock String

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

name String

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId String

The ID of resource group which the VPC belongs.

routeTableId String

The route table ID of the router created by default on VPC creation.

routerId String

The ID of the router created by default on VPC creation.

routerTableId String

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

secondaryCidrBlocks List<String>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

status String

The status of the VPC.

tags Map<String,Object>

A mapping of tags to assign to the resource.

userCidrs List<String>

The user cidr blocks of the VPC.

vpcName String

The name of the VPC. Defaults to null.

cidrBlock string

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description string

The VPC description. Defaults to null.

dryRun boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

ipv6CidrBlock string

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

name string

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId string

The ID of resource group which the VPC belongs.

routeTableId string

The route table ID of the router created by default on VPC creation.

routerId string

The ID of the router created by default on VPC creation.

routerTableId string

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

secondaryCidrBlocks string[]

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

status string

The status of the VPC.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

userCidrs string[]

The user cidr blocks of the VPC.

vpcName string

The name of the VPC. Defaults to null.

cidr_block str

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description str

The VPC description. Defaults to null.

dry_run bool

Specifies whether to pre-check this request only. Valid values: true and false.

enable_ipv6 bool

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

ipv6_cidr_block str

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

name str

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resource_group_id str

The ID of resource group which the VPC belongs.

route_table_id str

The route table ID of the router created by default on VPC creation.

router_id str

The ID of the router created by default on VPC creation.

router_table_id str

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

secondary_cidr_blocks Sequence[str]

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

status str

The status of the VPC.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

user_cidrs Sequence[str]

The user cidr blocks of the VPC.

vpc_name str

The name of the VPC. Defaults to null.

cidrBlock String

The CIDR block for the VPC. The cidr_block is Optional and default value is 172.16.0.0/12 after v1.119.0+.

description String

The VPC description. Defaults to null.

dryRun Boolean

Specifies whether to pre-check this request only. Valid values: true and false.

enableIpv6 Boolean

Specifies whether to enable the IPv6 CIDR block. Valid values: false (Default): disables IPv6 CIDR blocks. true: enables IPv6 CIDR blocks. If the enable_ipv6 is true, the system will automatically create a free version of an IPv6 gateway for your private network and assign an IPv6 network segment assigned as /56.

ipv6CidrBlock String

(Available in v1.119.0+) ) The ipv6 cidr block of VPC.

name String

Field name has been deprecated from provider version 1.119.0. New field vpc_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.

resourceGroupId String

The ID of resource group which the VPC belongs.

routeTableId String

The route table ID of the router created by default on VPC creation.

routerId String

The ID of the router created by default on VPC creation.

routerTableId String

(Deprecated) It has been deprecated and replaced with route_table_id.

Deprecated:

Attribute router_table_id has been deprecated and replaced with route_table_id.

secondaryCidrBlocks List<String>

Field secondary_cidr_blocks has been deprecated from provider version 1.185.0, and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud.vpc.Ipv4CidrBlock resource cannot be used at the same time.

Deprecated:

Field 'secondary_cidr_blocks' has been deprecated from provider version 1.185.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_ipv4_cidr_block'. secondary_cidr_blocks attributes and alicloud_vpc_ipv4_cidr_block resource cannot be used at the same time.

status String

The status of the VPC.

tags Map<Any>

A mapping of tags to assign to the resource.

userCidrs List<String>

The user cidr blocks of the VPC.

vpcName String

The name of the VPC. Defaults to null.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.