Last Updated on : 2023-10-09 08:06:21download
Modify the information about the specified policy. Allow action rules and Deny action rules cannot both be empty.
PUT: /v2.0/cloud/iam/policy/{policy_id}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| policy_id | Long | uri | true | The ID of the specified policy. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| name | String | true | The name of the specified policy. | |
| allow_action | List | false | The Allow action, which describes the specific actions allowed. | |
| deny_action | List | false | The Deny action, which describes the specific actions denied. | |
| description | String | true | The description of the specified policy. |
| Parameter name | Type | Description |
|---|---|---|
| result | Object | The modification result. Valid values:
|
| success | Boolean | Indicates whether the request is successful. Valid values:
|
| error_code | String | For more information, see the error codes. |
| error_msg | String | The message that is returned if the request fails. It is empty if the request is successful. |
PUT: v2.0/cloud/iam/policy/1
{
"name": "Policy",
"description": "Description information",
"allow_action": [
"*"
]
}
{
"tid": "168679625111231687",
"result": true,
"t": 1686796251687,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback