Membuat aturan otorisasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateAuthorizationRule |
create |
*Atur Otorisasi.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| AuthorizationRuleName |
string |
Yes |
Nama aturan otorisasi. Nama dapat memiliki panjang hingga 64 karakter. |
test_rule |
| ProjectId |
string |
Yes |
ID proyek yang terkait dengan aturan otorisasi. Jika Anda tidak yakin proyek mana yang harus dikaitkan, Anda dapat mengaitkan proyek default. ID proyek default adalah iprj_system_default. |
iprj_system_default |
| AuthorizationResourceScope |
string |
No |
Cakupan resource otorisasi. Nilai yang valid:
|
global |
| Description |
string |
No |
Deskripsi aturan otorisasi. Deskripsi dapat memiliki panjang hingga 128 karakter. |
this is a test rule |
| ClientToken |
string |
Yes |
Label skenario aturan otorisasi. Label dapat memiliki panjang hingga 64 karakter. |
client-token-example |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| AuthorizationRuleId |
string |
ID aturan otorisasi. |
arrule_01kf143ug06fg7m9f43u7vahxxxx |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"AuthorizationRuleId": "arrule_01kf143ug06fg7m9f43u7vahxxxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.