1. Packages
  2. Alicloud Provider
  3. API Docs
  4. vpc
  5. Network
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.vpc.Network

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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

    The Network resource accepts the following input properties:

    CidrBlock 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.
    ClassicLinkEnabled bool
    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:// or https://.
    DryRun bool
    Specifies whether to perform a dry run. Valid values:
    EnableIpv6 bool
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    IsDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    ResourceGroupId string

    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?

    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. 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.

    SystemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    SystemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Tags Dictionary<string, string>
    The tags of Vpc.
    UserCidrs List<string>
    A list of user CIDRs.
    VpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    CidrBlock 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.
    ClassicLinkEnabled bool
    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:// or https://.
    DryRun bool
    Specifies whether to perform a dry run. Valid values:
    EnableIpv6 bool
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    IsDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    ResourceGroupId string

    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?

    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. 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.

    SystemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    SystemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Tags map[string]string
    The tags of Vpc.
    UserCidrs []string
    A list of user CIDRs.
    VpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled Boolean
    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:// or https://.
    dryRun Boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 Boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId String
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId String

    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?

    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. 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.

    systemRouteTableDescription String
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName String
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags Map<String,String>
    The tags of Vpc.
    userCidrs List<String>
    A list of user CIDRs.
    vpcName String

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled boolean
    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:// or https://.
    dryRun boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId string

    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?

    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. 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.

    systemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags {[key: string]: string}
    The tags of Vpc.
    userCidrs string[]
    A list of user CIDRs.
    vpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    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_enabled bool
    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:// or https://.
    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:// or https://.
    ipv4_ipam_pool_id str
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6_cidr_block str

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resource_group_id str

    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_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. 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.

    system_route_table_description str
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    system_route_table_name str
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags 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:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled Boolean
    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:// or https://.
    dryRun Boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 Boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId String
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId String

    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?

    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. 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.

    systemRouteTableDescription String
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName String
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags Map<String>
    The tags of Vpc.
    userCidrs List<String>
    A list of user CIDRs.
    vpcName String

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    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:

    CreateTime string
    The creation time of the VPC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6CidrBlocks List<Pulumi.AliCloud.Vpc.Outputs.NetworkIpv6CidrBlock>
    The IPv6 CIDR block information of the VPC.
    RouteTableId string
    The ID of the route table that you want to query.
    RouterId 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.
    RouterTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    Status string
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    CreateTime string
    The creation time of the VPC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv6CidrBlocks []NetworkIpv6CidrBlock
    The IPv6 CIDR block information of the VPC.
    RouteTableId string
    The ID of the route table that you want to query.
    RouterId 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.
    RouterTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    Status string
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    createTime String
    The creation time of the VPC.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6CidrBlocks List<NetworkIpv6CidrBlock>
    The IPv6 CIDR block information of the VPC.
    routeTableId String
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId String
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    status String
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    createTime string
    The creation time of the VPC.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv6CidrBlocks NetworkIpv6CidrBlock[]
    The IPv6 CIDR block information of the VPC.
    routeTableId string
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. 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_blocks Sequence[NetworkIpv6CidrBlock]
    The IPv6 CIDR block information of the VPC.
    route_table_id str
    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_id str
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    status str
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    createTime String
    The creation time of the VPC.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv6CidrBlocks List<Property Map>
    The IPv6 CIDR block information of the VPC.
    routeTableId String
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId String
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. 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.
    The following state arguments are supported:
    CidrBlock 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.
    ClassicLinkEnabled bool
    The status of ClassicLink function.
    CreateTime 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:// or https://.
    DryRun bool
    Specifies whether to perform a dry run. Valid values:
    EnableIpv6 bool
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    Ipv6CidrBlocks List<Pulumi.AliCloud.Vpc.Inputs.NetworkIpv6CidrBlock>
    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), or ChinaMobile (China Mobile).

    IsDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    ResourceGroupId string

    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?

    RouteTableId string
    The ID of the route table that you want to query.
    RouterId 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.
    RouterTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    Status string
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    SystemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    SystemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Tags Dictionary<string, string>
    The tags of Vpc.
    UserCidrs List<string>
    A list of user CIDRs.
    VpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    CidrBlock 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.
    ClassicLinkEnabled bool
    The status of ClassicLink function.
    CreateTime 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:// or https://.
    DryRun bool
    Specifies whether to perform a dry run. Valid values:
    EnableIpv6 bool
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    Ipv6CidrBlocks []NetworkIpv6CidrBlockArgs
    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), or ChinaMobile (China Mobile).

    IsDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    ResourceGroupId string

    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?

    RouteTableId string
    The ID of the route table that you want to query.
    RouterId 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.
    RouterTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    Status string
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    SystemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    SystemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    Tags map[string]string
    The tags of Vpc.
    UserCidrs []string
    A list of user CIDRs.
    VpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled Boolean
    The status of ClassicLink function.
    createTime 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:// or https://.
    dryRun Boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 Boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId String
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    ipv6CidrBlocks List<NetworkIpv6CidrBlock>
    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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId String

    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?

    routeTableId String
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId String
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    status String
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    systemRouteTableDescription String
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName String
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags Map<String,String>
    The tags of Vpc.
    userCidrs List<String>
    A list of user CIDRs.
    vpcName String

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled boolean
    The status of ClassicLink function.
    createTime 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:// or https://.
    dryRun boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId string
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    ipv6CidrBlocks NetworkIpv6CidrBlock[]
    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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId string

    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?

    routeTableId string
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId string
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    status string
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    systemRouteTableDescription string
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName string
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags {[key: string]: string}
    The tags of Vpc.
    userCidrs string[]
    A list of user CIDRs.
    vpcName string

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    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_enabled bool
    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:// or https://.
    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:// or https://.
    ipv4_ipam_pool_id str
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6_cidr_block str

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    ipv6_cidr_blocks Sequence[NetworkIpv6CidrBlockArgs]
    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), or ChinaMobile (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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resource_group_id str

    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_id str
    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_id str
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    status str
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    system_route_table_description str
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    system_route_table_name str
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags 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:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    cidrBlock 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.
    classicLinkEnabled Boolean
    The status of ClassicLink function.
    createTime 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:// or https://.
    dryRun Boolean
    Specifies whether to perform a dry run. Valid values:
    enableIpv6 Boolean
    The name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    ipv4IpamPoolId String
    The ID of the IP Address Manager (IPAM) pool that contains IPv4 addresses.
    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, this parameter is required.

    ipv6CidrBlocks 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), or ChinaMobile (China Mobile).

    isDefault 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.

    Deprecated: Field 'name' has been deprecated since provider version 1.119.0. New field 'vpc_name' instead.

    resourceGroupId String

    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?

    routeTableId String
    The ID of the route table that you want to query.
    routerId 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.
    routerTableId String
    . Field 'router_table_id' has been deprecated from provider version 1.227.1. New field 'route_table_id' instead.

    Deprecated: Field 'router_table_id' has been deprecated since provider version 1.221.0. New field 'route_table_id' instead.

    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. 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.

    status String
    The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
    systemRouteTableDescription String
    The description of the route table. The description must be 1 to 256 characters in length, and cannot start with http:// or https://.
    systemRouteTableName String
    The name of the route table. The name must be 1 to 128 characters in length and cannot start with http:// or https://.
    tags Map<String>
    The tags of Vpc.
    userCidrs List<String>
    A list of user CIDRs.
    vpcName String

    The new name of the VPC. The name must be 1 to 128 characters in length and cannot start with http:// or https://.

    The following arguments will be discarded. Please use new fields as soon as possible:

    Supporting Types

    NetworkIpv6CidrBlock, NetworkIpv6CidrBlockArgs

    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    Ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    ipv6CidrBlock string

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    ipv6_cidr_block str

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (China Mobile).

    ipv6CidrBlock String

    The IPv6 CIDR block of the default VPC.

    NOTE: When EnableIpv6 is set to true, 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), or ChinaMobile (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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi