Updating User Group Information
Function
This API is provided for the administrator to update user group information.
The API can be called using both the global endpoint and region-specific endpoints.
URI
PATCH /v3/groups/{group_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
group_id |
Yes |
String |
User group ID. For details about how to obtain a user group ID, see Obtaining Account, IAM User, Group, Project, Region, and Agency Information. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
|
X-Auth-Token |
Yes |
String |
Access token issued to a user to bear its identity and permissions. For details about the permissions required by the token, see Actions. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Yes |
Object |
User group information. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
description |
No |
String |
User group description, which must contain less than or equal to 255 characters. Either name or description must be specified. |
|
domain_id |
No |
String |
Account ID. For details about how to obtain the account ID, see Obtaining Account, IAM User, Group, Project, Region, and Agency Information. |
|
name |
No |
String |
User group name, which must contain less than or equal to 64 characters. Either name or description must be specified. |
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
Object |
User group information. |
Example Request
Request for changing the user group name to IAMGroup and description to IAMDescription
PATCH https://iam.myhuaweicloud.eu/v3/groups/{group_id}
{
"group": {
"description": "IAMDescription",
"domain_id": "d78cbac186b744899480f25bd02...",
"name": "IAMGroup"
}
}
Example Response
Status code: 200
The request is successful.
{
"group": {
"description": "IAMDescription",
"links": {
"self": "https://iam.myhuaweicloud.eu/v3/groups/077a4da48a00251f3f9dc0032103400f"
},
"id": "077a4da48a00251f3f9dc0032103400f",
"create_time": 1578969360636,
"domain_id": "d78cbac186b744899480f25bd...",
"name": "IAMGroup"
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The request is successful. |
|
400 |
Invalid parameters. |
|
401 |
Authentication failed. |
|
403 |
Access denied. |
|
404 |
The requested resource cannot be found. |
|
409 |
A resource conflict occurs. |
|
501 |
The API is not available. |
Error Codes
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.