Modifies the attributes of a vSwitch.
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 |
||
| RegionId |
string |
No |
||
| Description |
string |
No |
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. | |
| 400 | InvalidRegionId.NotFound | Specified value of regionId is not supported. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
| 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.