Menentukan perintah yang dapat atau tidak dapat dijalankan oleh pengguna atau pada aset yang terkait dengan kebijakan, serta perintah yang harus ditinjau.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:SetPolicyCommandConfig |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-78v1ghxxxxx |
| RegionId |
string |
No |
ID wilayah bastion host. Catatan
Untuk informasi lebih lanjut tentang pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-hangzhou |
| PolicyId |
string |
Yes |
ID kebijakan kontrol yang ingin Anda ubah. Catatan
Anda dapat memanggil operasi ListPolicies untuk mengkueri ID kebijakan kontrol. |
45 |
| CommandConfig |
object |
Yes |
Pengaturan kontrol perintah. Catatan
Parameter ini hanya berlaku untuk host Linux. |
|
| Deny |
object |
Yes |
The command control settings. |
|
| AclType |
string |
Yes |
The type of command control. Valid values:
|
white |
| Commands |
array |
No |
The commands to be controlled. Catatan
This parameter is required if AclType is set to white. |
|
|
string |
Yes |
The command to be controlled. |
["mkdir"] |
|
| Approval |
object |
No |
The command approval settings. Catatan
A command approval policy is used to approve the commands that are excluded from a whitelist or blacklist specified in a command control policy. The command control policy takes precedence over the command approval policy in validation. |
|
| Commands |
array |
No |
The commands that can be run only after approval. |
|
|
string |
No |
The command that can be run only after approval. |
["mkdir"] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4F6C075F-FC86-476E-943B-097BD4E12948 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4F6C075F-FC86-476E-943B-097BD4E12948"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 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.