Modifies the basic information of a control policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyPolicy |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance to which the control policy belongs. You can call the DescribeInstances operation to query the instance ID. |
bastionhost-cn-09k1u8mv501 |
| RegionId |
string |
No |
The region ID of the Bastionhost instance to which the control policy belongs. For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| PolicyId |
string |
Yes |
The ID of the control policy. |
7 |
| PolicyName |
string |
No |
The new Policy Name of the control policy. |
test |
| Comment |
string |
No |
The new description of the control policy. |
test |
| Priority |
string |
No |
The new priority of the control policy. Valid values: 1 to 100. A smaller value indicates a higher priority. Default value: 1. |
3 |
| ProjectId |
integer |
No |
The project ID. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
A34F9731-A4EA-5D1D-8445-BAEF782BFFE6 |
Examples
Success response
JSON format
{
"RequestId": "A34F9731-A4EA-5D1D-8445-BAEF782BFFE6"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 400 | PolicyAlreadyExists | The policy already exists. | The policy already exists. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
| 404 | PolicyNotFound | The policy is not found. | The policy is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.