Modifies the basic information about a control policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyPolicy |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the bastion host to which the control policy to modify belongs. Note
You can call the DescribeInstances operation to query the bastion host ID. |
bastionhost-cn-09k1u8mv501 |
| RegionId |
string |
No |
The region ID of the bastion host to which the control policy to modify belongs. Note
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 that you want to modify. |
7 |
| PolicyName |
string |
No |
The new name of the control policy. |
test |
| Comment |
string |
No |
The new remarks of the control policy. |
test |
| Priority |
string |
No |
The priority of the modified control policy. Valid values: 1 to 100. The smaller the value, the higher the priority. Default value: 1. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
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.