All Products
Search
Document Center

Virtual Private Cloud:ModifyVSwitchCidrReservationAttribute

Last Updated:Nov 13, 2024

Modifies the name and description of a CIDR block reserved for a vSwitch.

Operation description

Usage notes

You cannot repeatedly call ModifyVSwitchCidrReservationAttribute within a specific time period.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:ModifyVSwitchCidrReservationAttributeupdate
  • VSwitchCidrReservation
    acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VSwitchCidrReservationIdstringYes

The ID of the reserved CIDR block.

vcr-bp1m12saqteraw3rp****
VSwitchCidrReservationNamestringNo

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

ReservationName
VSwitchCidrReservationDescriptionstringNo

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 http:// or https://.

ReservationDescription
RegionIdstringYes

The ID of the region where the vSwitch is deployed.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The request ID.

RequestIdstring

The request ID.

54B48E3D-DF70-471B-AA93-08E683A1B45

Examples

Sample success responses

JSONformat

{
  "RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45"
}

Error codes

HTTP status codeError codeError messageDescription
400ResourceNotFound.CidrReservationResourceNotFound.CidrReservationThe error message returned because VSwitchCidrReservation is set to an invalid value.
400IllegalParamFormatIllegalParamFormatThe parameter format is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-24The Error code has changed. The request parameters of the API has changedView Change Details