Modifies the name and description of the reserved CIDR block of a vSwitch.
Usage notes
You cannot repeatedly call ModifyVSwitchCidrReservationAttribute within a specific time period.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyVSwitchCidrReservationAttribute | The operation that you want to perform. Set the value to ModifyVSwitchCidrReservationAttribute. |
VSwitchCidrReservationId | String | Yes | vcr-bp1m12saqteraw3rp**** | The ID of the reserved CIDR block. |
VSwitchCidrReservationName | String | No | ReservationName | The new name of the reserved CIDR block. The name must be 2 to 128 characters in length and can contain digits, underscores (_), and hyphens (-). It must start with a letter. |
VSwitchCidrReservationDescription | String | No | ReservationDescription | The new description of the reserved CIDR block. The default value is empty. The description must be 2 to 256 characters in length. It must start with a letter and cannot start with |
RegionId | String | Yes | cn-hangzhou | The ID of the region where the vSwitch is deployed. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyVSwitchCidrReservationAttribute
&VSwitchCidrReservationId=vcr-bp1m12saqteraw3rp****
&VSwitchCidrReservationName=ReservationName
&VSwitchCidrReservationDescription=ReservationDescription
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyVSwitchCidrReservationAttributeResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</ModifyVSwitchCidrReservationAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.CidrReservation | ResourceNotFound.CidrReservation | VSwitchCidrReservation is set to an invalid value. |
400 | IllegalParamFormat | IllegalParamFormat | The parameter format is invalid. |
For a list of error codes, see Service error codes.