Mengubah informasi dasar kebijakan kontrol.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyPolicy |
update |
*Semua sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion tempat kebijakan kontrol berada. Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID instans. |
bastionhost-cn-09k1u8mv501 |
| RegionId |
string |
No |
ID wilayah instans Host Bastion tempat kebijakan kontrol berada. Untuk informasi selengkapnya mengenai pemetaan antara ID wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| PolicyId |
string |
Yes |
ID kebijakan kontrol. |
7 |
| PolicyName |
string |
No |
Nama Kebijakan baru kebijakan kontrol. |
test |
| Comment |
string |
No |
Deskripsi baru kebijakan kontrol. |
test |
| Priority |
string |
No |
Prioritas baru kebijakan kontrol. Nilai valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas yang lebih tinggi. Nilai default: 1. |
3 |
| ProjectId |
integer |
No |
ID proyek. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
A34F9731-A4EA-5D1D-8445-BAEF782BFFE6 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A34F9731-A4EA-5D1D-8445-BAEF782BFFE6"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 400 | PolicyAlreadyExists | The policy already exists. | |
| 500 | InternalError | An unknown error occurred. | |
| 404 | PolicyNotFound | The policy is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.