CreateVpc
In this article:
CreateVpc#
Description#
Creates a VPC with the specified CIDR block.
Request Parameters#
Required parameters#
CidrBlock — The address range must be specified in the CIDR (X.X.X.X/YY) notation and be within the range from /16 to /28. How to create subnets in a virtual private cloud, see CreateSubnet.
Required: Yes
Optional parameters#
AvailabilityZone — The availability zone.
Required: No
Valid values:
ru-msk-vol51
|ru-msk-comp1p
|ru-msk-vol52
TagSpecification.N — The tags assigned to the resource when it is created.
Type: List of TagSpecification objects
Required: No
Response Elements#
requestId — The request ID.
Type: String
vpc — Information about VPC.
Type: Vpc object
Examples#
c2-ec2 CreateVpc CidrBlock 10.10.10.0/24
c2-ec2 CreateVpc CidrBlock 10.10.10.0/24 AvailabilityZone ru-msk-comp1p
c2-ec2 CreateVpc CidrBlock 10.10.10.0/24 TagSpecification.0.ResourceType vpc \
TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"