Belirtilen bir ilkenin uygulandığı kullanıcılar ve ana bilgisayarlar için izin verilen veya reddedilen komutları ve onay gerektiren komutları yapılandırır.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:SetPolicyCommandConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Bastionhost örneğinin kimliği. Not
Bu parametrenin değerini sorgulamak için DescribeInstances işlemini çağırabilirsiniz. |
bastionhost-cn-78v1ghxxxxx |
| RegionId |
string |
No |
Bastionhost örneğinin bölge kimliği. Not
Bölge kimlikleri ve bölge adları arasındaki eşleme hakkında daha fazla bilgi için Bölgeler ve alanlar konusuna bakın. |
cn-hangzhou |
| PolicyId |
string |
Yes |
Değiştirmek istediğiniz kontrol ilkesinin kimliği. Not
Bu parametrenin değerini sorgulamak için ListPolicies işlemini çağırabilirsiniz. |
45 |
| CommandConfig |
object |
Yes |
Komut denetimi ayarları. Not
Bu parametre yalnızca Linux ana bilgisayarları için geçerlidir. |
|
| Deny |
object |
Yes |
Komut denetimi ayarları. |
|
| AclType |
string |
Yes |
Komut denetimi türü. Geçerli değerler:
Valid values:
|
white |
| Commands |
array |
No |
Komut listesi. Not
AclType, white olarak ayarlanmışsa Commands gereklidir. |
|
|
string |
Yes |
Denetlenecek komutlar. |
["mkdir"] |
|
| Approval |
object |
No |
Komut onayı ayarları. Not
Komut onayı, komut denetimine (beyaz liste veya kara liste) tabi olmayan komutlar için geçerlidir. Komut denetimi ilkeleri, komut onayına göre önceliklidir. |
|
| Commands |
array |
No |
Onay gerektiren komutların listesi. |
|
|
string |
No |
Onay gerektiren komutların listesi. |
["mkdir"] |
|
| ProjectId |
integer |
No |
Proje kimliği. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Alibaba Cloud tarafından istek için oluşturulan benzersiz tanımlayıcı. |
4F6C075F-FC86-476E-943B-097BD4E12948 |
Examples
Success response
JSON format
{
"RequestId": "4F6C075F-FC86-476E-943B-097BD4E12948"
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.