调用ModifyVSwitchCidrReservationAttribute接口修改交换机预留网段的名称和描述信息。

使用说明

ModifyVSwitchCidrReservationAttribute接口不支持在同一个交换机中并发修改预留网段的名称和描述信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ModifyVSwitchCidrReservationAttribute

系统规定参数。取值:ModifyVSwitchCidrReservationAttribute

VSwitchCidrReservationId String vcr-bp1m12saqteraw3rp****

要修改的交换机预留网段的实例ID。

VSwitchCidrReservationName String ReservationName

要修改的交换机预留网段的名称。

名称长度为2~128个字符,以英文字母或中文开头,可包含数字、下划线(_)和短划线(-)。

VSwitchCidrReservationDescription String ReservationDescription

要修改的交换机预留网段的描述信息。不填则为空,默认值为空。

描述长度为2~256个字符,以英文字母或中文开头,不能以http://https://开头。

RegionId String cn-hangzhou

交换机所在的地域ID。

您可以通过调用DescribeRegions接口获取地域ID。

返回数据

名称 类型 示例值 描述
RequestId String 54B48E3D-DF70-471B-AA93-08E683A1B45

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ModifyVSwitchCidrReservationAttribute
&VSwitchCidrReservationId=vcr-bp1m12saqteraw3rp****
&VSwitchCidrReservationName=ReservationName
&VSwitchCidrReservationDescription=ReservationDescription
&RegionId=cn-hangzhou
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyVSwitchCidrReservationAttributeResponse>
    <RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</ModifyVSwitchCidrReservationAttributeResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

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

错误码

HttpCode 错误码 错误信息 描述
400 ResourceNotFound.CidrReservation ResourceNotFound.CidrReservation 您指定的 VSwitchCidrReservation 不存在,请确认 VSwitchCidrReservation的状态是否可用。
400 IllegalParamFormat IllegalParamFormat 参数格式不正确

访问错误中心查看更多错误码。