ALIYUN::VPC::VSwitchCidrReservation is used to create a reserved CIDR block for a vSwitch.
Syntax
{
"Type": "ALIYUN::VPC::VSwitchCidrReservation",
"Properties": {
"VSwitchCidrReservationType": String,
"VSwitchCidrReservationCidr": String,
"VSwitchCidrReservationDescription": String,
"IpVersion": String,
"VSwitchId": String,
"VSwitchCidrReservationName": String,
"Tags": List,
"VSwitchCidrReservationMask": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
VSwitchCidrReservationType | String | No | No | The type of the reserved CIDR block. | Set the value to prefix. A value of prefix specifies that IP addresses are allocated based on the CIDR block. Note When you allocate or the system allocates a CIDR block for an elastic network interface (ENI), the CIDR block must be allocated from the reserved CIDR block. If the reserved CIDR block is exhausted, the system returns an error. |
VSwitchCidrReservationCidr | String | No | No | The reserved CIDR block. |
Note You must specify VSwitchCidrReservationMask or VSwitchCidrReservationCidr. When you create a reserved CIDR block for a vSwitch, make sure that the reserved CIDR block does not contain the system-reserved IP addresses of the VPC. |
VSwitchCidrReservationDescription | String | No | Yes | The description of the reserved CIDR block. | By default, this property is empty. The description must be 2 to 256 characters in length. It must start with a letter and cannot start with |
IpVersion | String | No | No | The IP version of the reserved CIDR block. | Valid values:
|
VSwitchId | String | Yes | No | The ID of the vSwitch for which you want to create the reserved CIDR block. | None. |
VSwitchCidrReservationName | String | No | Yes | The name of the reserved CIDR block. | The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter. |
Tags | List | No | No | The tags. | You can add up to 20 tags. For more information, see Tags properties. |
VSwitchCidrReservationMask | String | No | No | The subnet mask of the reserved CIDR block. |
|
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The tag value. | You can specify up to 20 tag values. The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot contain |
Key | String | No | No | The tag key. | You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot contain |
Return values
Fn::GetAtt
VSwitchCidrReservationId: the ID of the reserved CIDR block.