This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - ModifyVSwitchAttribute for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyVSwitchAttribute |
update |
*VSwitch
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VSwitchId |
string |
Yes |
|
|
| VSwitchName |
string |
No |
The name must be 2 to 128 characters in length. It must start with a letter and can contain letters, digits, underscores (_), and hyphens (-). |
|
| RegionId |
string |
No |
DescribeRegions operation to query the most recent list of regions. |
|
| Description |
string |
No |
The description must be 2 to 256 characters in length and cannot start with http:// or https://. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| RequestId |
string |
|
Examples
Success response
JSON format
{
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDescription.Malformed | Invalid description. | |
| 400 | InvalidVSwitchName.Malformed | Specified virtual switch name is not valid. | The vSwitch name is invalid. |
| 400 | InvalidVSwitchDiscription.Malformed | Specified virtual switch description is not valid. | The specified vSwitch description is invalid. |
| 400 | Forbidden.VRouterNotFound | specified virtual switch is not found during access authentication. | |
| 404 | InvalidVSwitchId.NotFound | The specified virtual switch does not exists. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.