Memperbarui kebijakan izin.
Deskripsi operasi
You can update the role-based access control (RBAC) permissions, accessible resources, access control rules, and description of a permission policy. You cannot update the name or scope of a permission policy.
Updating a permission policy affects all application access points (AAPs) that are bound to the permission policy. Exercise caution when you perform this operation.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama kebijakan izin yang ingin Anda perbarui. |
policy_test |
| Permissions |
string |
No |
Operasi yang didukung oleh kebijakan yang diperbarui. Nilai valid:
Anda dapat memilih keduanya. |
["RbacPermission/Template/CryptoServiceKeyUser", "RbacPermission/Template/CryptoServiceSecretUser"] |
| Resources |
string |
No |
Kunci dan rahasia yang diizinkan untuk diakses setelah pembaruan.
|
["secret/acs/ram/user/ram-secret", "secret/acs/ram/user/acr-master", "key/key-hzz63d9c8d3dfv8cv****"] |
| AccessControlRules |
string |
No |
Aturan kontrol akses dalam format tertentu. Catatan
Untuk informasi selengkapnya tentang cara mengkueri aturan kontrol akses yang telah dibuat, lihat ListNetworkRules. |
{"NetworkRules":["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]} |
| Description |
string |
No |
Deskripsi. |
policy description |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
f455324b-e229-4066-9f58-9c1cf3fe83a8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "f455324b-e229-4066-9f58-9c1cf3fe83a8"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.