Modifies the information of a user group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyUserGroup |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the Bastionhost for which you want to modify the user group information. Note
You can invoke the DescribeInstances operation to obtain this parameter. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
The region ID of the Bastionhost instance for which you want to modify the user group information. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| UserGroupId |
string |
Yes |
The ID of the user group that you want to modify. Note
You can call the ListUserGroups operation to obtain this parameter. |
1 |
| UserGroupName |
string |
No |
The new name of the user group. The name can be up to 128 characters in length. |
TestUserGroup |
| Comment |
string |
No |
The new description of the user group. The description can be up to 500 characters in length. |
comment |
| ProjectId |
integer |
No |
The project ID. |
3 |
When you call this operation, you must add the common request parameters of Alibaba Cloud API in addition to the operation-specific request parameters described in this topic. For more information about common request parameters, see Common parameters. For more information about the request format, see the sample request in this topic.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Examples
Success response
JSON format
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
| 404 | UserGroupNotFound | The user group is not found. | The user group is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.