alicloud.vpc.Network
Explore with Pulumi AI
Provides a VPC Vpc resource.
A VPC instance creates a VPC. You can fully control your own VPC, such as selecting IP address ranges, configuring routing tables, and gateways. You can use Alibaba cloud resources such as cloud servers, apsaradb for RDS, and load balancer in your own VPC.
NOTE: This resource will auto build a router and a route table while it uses
alicloud.vpc.Network
to build a vpc resource.
NOTE: Available since v1.0.0.
Module Support
You can use the existing vpc module to create a VPC and several VSwitches one-click.
For information about VPC Vpc and how to use it, see What is Vpc.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.vpc.Network("default", {
ipv6Isp: "BGP",
description: "test",
cidrBlock: "10.0.0.0/8",
vpcName: name,
enableIpv6: true,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.vpc.Network("default",
ipv6_isp="BGP",
description="test",
cidr_block="10.0.0.0/8",
vpc_name=name,
enable_ipv6=True)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
Ipv6Isp: pulumi.String("BGP"),
Description: pulumi.String("test"),
CidrBlock: pulumi.String("10.0.0.0/8"),
VpcName: pulumi.String(name),
EnableIpv6: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Vpc.Network("default", new()
{
Ipv6Isp = "BGP",
Description = "test",
CidrBlock = "10.0.0.0/8",
VpcName = name,
EnableIpv6 = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
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 name = config.get("name").orElse("terraform-example");
var default_ = new Network("default", NetworkArgs.builder()
.ipv6Isp("BGP")
.description("test")
.cidrBlock("10.0.0.0/8")
.vpcName(name)
.enableIpv6(true)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:vpc:Network
properties:
ipv6Isp: BGP
description: test
cidrBlock: 10.0.0.0/8
vpcName: ${name}
enableIpv6: true
Create Network Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Network(name: string, args?: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
args: Optional[NetworkArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr_block: Optional[str] = None,
classic_link_enabled: Optional[bool] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_ipv6: Optional[bool] = None,
ipv4_ipam_pool_id: Optional[str] = None,
ipv6_cidr_block: Optional[str] = None,
ipv6_isp: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
resource_group_id: Optional[str] = None,
secondary_cidr_blocks: Optional[Sequence[str]] = None,
system_route_table_description: Optional[str] = None,
system_route_table_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
user_cidrs: Optional[Sequence[str]] = None,
vpc_name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplenetworkResourceResourceFromVpcnetwork = new AliCloud.Vpc.Network("examplenetworkResourceResourceFromVpcnetwork", new()
{
CidrBlock = "string",
ClassicLinkEnabled = false,
Description = "string",
DryRun = false,
EnableIpv6 = false,
Ipv4IpamPoolId = "string",
Ipv6CidrBlock = "string",
Ipv6Isp = "string",
IsDefault = false,
ResourceGroupId = "string",
SystemRouteTableDescription = "string",
SystemRouteTableName = "string",
Tags =
{
{ "string", "string" },
},
UserCidrs = new[]
{
"string",
},
VpcName = "string",
});
example, err := vpc.NewNetwork(ctx, "examplenetworkResourceResourceFromVpcnetwork", &vpc.NetworkArgs{
CidrBlock: pulumi.String("string"),
ClassicLinkEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
DryRun: pulumi.Bool(false),
EnableIpv6: pulumi.Bool(false),
Ipv4IpamPoolId: pulumi.String("string"),
Ipv6CidrBlock: pulumi.String("string"),
Ipv6Isp: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
SystemRouteTableDescription: pulumi.String("string"),
SystemRouteTableName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UserCidrs: pulumi.StringArray{
pulumi.String("string"),
},
VpcName: pulumi.String("string"),
})
var examplenetworkResourceResourceFromVpcnetwork = new Network("examplenetworkResourceResourceFromVpcnetwork", NetworkArgs.builder()
.cidrBlock("string")
.classicLinkEnabled(false)
.description("string")
.dryRun(false)
.enableIpv6(false)
.ipv4IpamPoolId("string")
.ipv6CidrBlock("string")
.ipv6Isp("string")
.isDefault(false)
.resourceGroupId("string")
.systemRouteTableDescription("string")
.systemRouteTableName("string")
.tags(Map.of("string", "string"))
.userCidrs("string")
.vpcName("string")
.build());
examplenetwork_resource_resource_from_vpcnetwork = alicloud.vpc.Network("examplenetworkResourceResourceFromVpcnetwork",
cidr_block="string",
classic_link_enabled=False,
description="string",
dry_run=False,
enable_ipv6=False,
ipv4_ipam_pool_id="string",
ipv6_cidr_block="string",
ipv6_isp="string",
is_default=False,
resource_group_id="string",
system_route_table_description="string",
system_route_table_name="string",
tags={
"string": "string",
},
user_cidrs=["string"],
vpc_name="string")
const examplenetworkResourceResourceFromVpcnetwork = new alicloud.vpc.Network("examplenetworkResourceResourceFromVpcnetwork", {
cidrBlock: "string",
classicLinkEnabled: false,
description: "string",
dryRun: false,
enableIpv6: false,
ipv4IpamPoolId: "string",
ipv6CidrBlock: "string",
ipv6Isp: "string",
isDefault: false,
resourceGroupId: "string",
systemRouteTableDescription: "string",
systemRouteTableName: "string",
tags: {
string: "string",
},
userCidrs: ["string"],
vpcName: "string",
});
type: alicloud:vpc:Network
properties:
cidrBlock: string
classicLinkEnabled: false
description: string
dryRun: false
enableIpv6: false
ipv4IpamPoolId: string
ipv6CidrBlock: string
ipv6Isp: string
isDefault: false
resourceGroupId: string
systemRouteTableDescription: string
systemRouteTableName: string
tags:
string: string
userCidrs:
- string
vpcName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Network resource accepts the following input properties:
- Cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- Classic
Link boolEnabled - The status of ClassicLink function.
- Description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - Dry
Run bool - Specifies whether to perform a dry run. Valid values:
- Enable
Ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- Is
Default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- Name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- Secondary
Cidr List<string>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - System
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - System
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Dictionary<string, string>
- The tags of Vpc.
- User
Cidrs List<string> - A list of user CIDRs.
- Vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- Cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- Classic
Link boolEnabled - The status of ClassicLink function.
- Description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - Dry
Run bool - Specifies whether to perform a dry run. Valid values:
- Enable
Ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- Is
Default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- Name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- Secondary
Cidr []stringBlocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - System
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - System
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - map[string]string
- The tags of Vpc.
- User
Cidrs []string - A list of user CIDRs.
- Vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block String - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link BooleanEnabled - The status of ClassicLink function.
- description String
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run Boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 Boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool StringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default Boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name String
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- secondary
Cidr List<String>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - system
Route StringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route StringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Map<String,String>
- The tags of Vpc.
- user
Cidrs List<String> - A list of user CIDRs.
- vpc
Name String The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link booleanEnabled - The status of ClassicLink function.
- description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- secondary
Cidr string[]Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - system
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - {[key: string]: string}
- The tags of Vpc.
- user
Cidrs string[] - A list of user CIDRs.
- vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr_
block str - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic_
link_ boolenabled - The status of ClassicLink function.
- description str
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry_
run bool - Specifies whether to perform a dry run. Valid values:
- enable_
ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4_
ipam_ strpool_ id - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6_
cidr_ strblock The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6_
isp str The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is_
default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- name str
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource_
group_ strid The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- secondary_
cidr_ Sequence[str]blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - system_
route_ strtable_ description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system_
route_ strtable_ name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Mapping[str, str]
- The tags of Vpc.
- user_
cidrs Sequence[str] - A list of user CIDRs.
- vpc_
name str The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block String - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link BooleanEnabled - The status of ClassicLink function.
- description String
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run Boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 Boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool StringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default Boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name String
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- secondary
Cidr List<String>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - system
Route StringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route StringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Map<String>
- The tags of Vpc.
- user
Cidrs List<String> - A list of user CIDRs.
- vpc
Name String The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Create
Time string - The creation time of the VPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Blocks List<Pulumi.Ali Cloud. Vpc. Outputs. Network Ipv6Cidr Block> - The IPv6 CIDR block information of the VPC.
- Route
Table stringId - The ID of the route table that you want to query.
- Router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- Router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- Status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
- Create
Time string - The creation time of the VPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Cidr
Blocks []NetworkIpv6Cidr Block - The IPv6 CIDR block information of the VPC.
- Route
Table stringId - The ID of the route table that you want to query.
- Router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- Router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- Status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
- create
Time String - The creation time of the VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Blocks List<NetworkIpv6Cidr Block> - The IPv6 CIDR block information of the VPC.
- route
Table StringId - The ID of the route table that you want to query.
- router
Id String - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table StringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- status String
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
- create
Time string - The creation time of the VPC.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Blocks NetworkIpv6Cidr Block[] - The IPv6 CIDR block information of the VPC.
- route
Table stringId - The ID of the route table that you want to query.
- router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
- create_
time str - The creation time of the VPC.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_
cidr_ Sequence[Networkblocks Ipv6Cidr Block] - The IPv6 CIDR block information of the VPC.
- route_
table_ strid - The ID of the route table that you want to query.
- router_
id str - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router_
table_ strid - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- status str
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
- create
Time String - The creation time of the VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Cidr
Blocks List<Property Map> - The IPv6 CIDR block information of the VPC.
- route
Table StringId - The ID of the route table that you want to query.
- router
Id String - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table StringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- status String
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available.
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,
classic_link_enabled: Optional[bool] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
dry_run: Optional[bool] = None,
enable_ipv6: Optional[bool] = None,
ipv4_ipam_pool_id: Optional[str] = None,
ipv6_cidr_block: Optional[str] = None,
ipv6_cidr_blocks: Optional[Sequence[NetworkIpv6CidrBlockArgs]] = None,
ipv6_isp: Optional[str] = None,
is_default: Optional[bool] = 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,
system_route_table_description: Optional[str] = None,
system_route_table_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
- Cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- Classic
Link boolEnabled - The status of ClassicLink function.
- Create
Time string - The creation time of the VPC.
- Description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - Dry
Run bool - Specifies whether to perform a dry run. Valid values:
- Enable
Ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Cidr
Blocks List<Pulumi.Ali Cloud. Vpc. Inputs. Network Ipv6Cidr Block> - The IPv6 CIDR block information of the VPC.
- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- Is
Default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- Name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- Route
Table stringId - The ID of the route table that you want to query.
- Router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- Router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- Secondary
Cidr List<string>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - Status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - System
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - System
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Dictionary<string, string>
- The tags of Vpc.
- User
Cidrs List<string> - A list of user CIDRs.
- Vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- Cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- Classic
Link boolEnabled - The status of ClassicLink function.
- Create
Time string - The creation time of the VPC.
- Description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - Dry
Run bool - Specifies whether to perform a dry run. Valid values:
- Enable
Ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Cidr
Blocks []NetworkIpv6Cidr Block Args - The IPv6 CIDR block information of the VPC.
- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- Is
Default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- Name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- Resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- Route
Table stringId - The ID of the route table that you want to query.
- Router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- Router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- Secondary
Cidr []stringBlocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - Status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - System
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - System
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - map[string]string
- The tags of Vpc.
- User
Cidrs []string - A list of user CIDRs.
- Vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block String - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link BooleanEnabled - The status of ClassicLink function.
- create
Time String - The creation time of the VPC.
- description String
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run Boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 Boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool StringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Cidr
Blocks List<NetworkIpv6Cidr Block> - The IPv6 CIDR block information of the VPC.
- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default Boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name String
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- route
Table StringId - The ID of the route table that you want to query.
- router
Id String - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table StringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- secondary
Cidr List<String>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - status String
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - system
Route StringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route StringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Map<String,String>
- The tags of Vpc.
- user
Cidrs List<String> - A list of user CIDRs.
- vpc
Name String The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block string - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link booleanEnabled - The status of ClassicLink function.
- create
Time string - The creation time of the VPC.
- description string
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool stringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Cidr
Blocks NetworkIpv6Cidr Block[] - The IPv6 CIDR block information of the VPC.
- ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name string
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group stringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- route
Table stringId - The ID of the route table that you want to query.
- router
Id string - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table stringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- secondary
Cidr string[]Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - status string
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - system
Route stringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route stringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - {[key: string]: string}
- The tags of Vpc.
- user
Cidrs string[] - A list of user CIDRs.
- vpc
Name string The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr_
block str - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic_
link_ boolenabled - The status of ClassicLink function.
- create_
time str - The creation time of the VPC.
- description str
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry_
run bool - Specifies whether to perform a dry run. Valid values:
- enable_
ipv6 bool - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4_
ipam_ strpool_ id - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6_
cidr_ strblock The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6_
cidr_ Sequence[Networkblocks Ipv6Cidr Block Args] - The IPv6 CIDR block information of the VPC.
- ipv6_
isp str The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is_
default bool - Specifies whether to create the default VPC in the specified region. Valid values:
- name str
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource_
group_ strid The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- route_
table_ strid - The ID of the route table that you want to query.
- router_
id str - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router_
table_ strid - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- secondary_
cidr_ Sequence[str]blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - status str
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - system_
route_ strtable_ description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system_
route_ strtable_ name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Mapping[str, str]
- The tags of Vpc.
- user_
cidrs Sequence[str] - A list of user CIDRs.
- vpc_
name str The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
- cidr
Block String - The CIDR block of the VPC.
- You can specify one of the following CIDR blocks or their subsets as the primary IPv4 CIDR block of the VPC: 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8. These CIDR blocks are standard private CIDR blocks as defined by Request for Comments (RFC) documents. The subnet mask must be 8 to 28 bits in length.
- You can also use a custom CIDR block other than 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, 169.254.0.0/16, and their subnets as the primary IPv4 CIDR block of the VPC.
- classic
Link BooleanEnabled - The status of ClassicLink function.
- create
Time String - The creation time of the VPC.
- description String
- The new description of the VPC. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - dry
Run Boolean - Specifies whether to perform a dry run. Valid values:
- enable
Ipv6 Boolean - The name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - ipv4Ipam
Pool StringId - The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Cidr
Blocks List<Property Map> - The IPv6 CIDR block information of the VPC.
- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).- is
Default Boolean - Specifies whether to create the default VPC in the specified region. Valid values:
- name String
- . Field 'name' has been deprecated from provider version 1.119.0. New field 'vpc_name' instead.
- resource
Group StringId The ID of the resource group to which you want to move the resource.
NOTE: You can use resource groups to facilitate resource grouping and permission management for an Alibaba Cloud. For more information, see What is resource management?
- route
Table StringId - The ID of the route table that you want to query.
- router
Id String - The region ID of the VPC to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list.
- router
Table StringId - . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.
- secondary
Cidr List<String>Blocks - 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 andalicloud.vpc.Ipv4CidrBlock
resource cannot be used at the same time. - status String
- The status of the VPC.
Pending
: The VPC is being configured.Available
: The VPC is available. - system
Route StringTable Description - The description of the route table. The description must be 1 to 256 characters in length, and cannot start with
http://
orhttps://
. - system
Route StringTable Name - The name of the route table. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
. - Map<String>
- The tags of Vpc.
- user
Cidrs List<String> - A list of user CIDRs.
- vpc
Name String The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.The following arguments will be discarded. Please use new fields as soon as possible:
Supporting Types
NetworkIpv6CidrBlock, NetworkIpv6CidrBlockArgs
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
- Ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- Ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
- ipv6Cidr
Block string The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp string
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
- ipv6_
cidr_ strblock The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6_
isp str The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
- ipv6Cidr
Block String The IPv6 CIDR block of the default VPC.
NOTE: When
EnableIpv6
is set totrue
, this parameter is required.- ipv6Isp String
The IPv6 address segment type of the VPC. Value:
BGP
(default): Alibaba Cloud BGP IPv6.ChinaMobile
: China Mobile (single line).ChinaUnicom
: China Unicom (single line).ChinaTelecom
: China Telecom (single line).
NOTE: If a single-line bandwidth whitelist is enabled, this field can be set to
ChinaTelecom
(China Telecom),ChinaUnicom
(China Unicom), orChinaMobile
(China Mobile).
Import
VPC Vpc can be imported using the id, e.g.
$ pulumi import alicloud:vpc/network:Network example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.