ModifyVSwitchAttribute
Description
call the ModifyVSwitchAttribute interface to modify the name and description information of the specified switch.
Request Method
POST
Request Path
/apsara/route/Vpc/ModifyVSwitchAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | This is my vswitch. | description information to be modified by the switch. The description length is 2 to 256 characters and must start with a letter or Chinese, but cannot be http:// or https://. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
VSwitchId | BODY | string | Yes | vsw-25nacdfvue4**** | the ID of the switch. |
VSwitchName | BODY | string | No | VSwitch-1 | the name of the switch to be modified. The name must be 2 to 128 characters in length and must start with a letter or Chinese. It can contain numbers, half-width periods (.), underscores (_), and dashes (-). But you cannot use http:// or https:// start. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the switch belongs. You can obtain the region ID by calling the DescribeRegions interface. |
Ipv6CidrBlock | BODY | integer | No | 10 | the last 8 bits of the switch IPv6 network segment, value:0~255. This parameter supports configuration only when IPv6 is enabled on the VPC to which the switch belongs. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}