Mengambil informasi tentang aturan otorisasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetAuthorizationRule |
get |
*AuthorizationRule
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| AuthorizationRuleId |
string |
Yes |
ID aturan otorisasi. |
arrule_01kf143ug06fg7m9f43u7vahxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| AuthorizationRule |
object |
Objek aturan otorisasi. |
|
| InstanceId |
string |
ID instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| AuthorizationRuleId |
string |
ID aturan otorisasi. |
arrule_01kf143ug06fg7m9f43u7vahxxxx |
| AuthorizationRuleName |
string |
Nama aturan otorisasi. |
test-name |
| Status |
string |
Status aturan otorisasi. Nilai yang valid:
|
enabled |
| ProjectId |
string |
ID proyek yang terkait dengan aturan otorisasi. |
iprj_system_default |
| AuthorizationResourceScope |
string |
Cakupan sumber daya otorisasi. Nilai yang valid:
|
global |
| AuthorizationRuleCreationType |
string |
Tipe pembuatan aturan otorisasi. Nilai yang valid:
|
user_custom |
| AuthorizationRuleSubjectScope |
string |
Cakupan subjek aturan otorisasi. Nilai yang valid:
|
shared |
| AuthorizationRuleSubjectType |
string |
Tipe subjek yang terkait dengan aturan otorisasi. Berlaku ketika cakupan subjek aturan otorisasi adalah exclusive. Nilai yang valid:
|
user |
| AuthorizationRuleSubjectId |
string |
ID subjek yang terkait dengan aturan otorisasi. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| Description |
string |
Deskripsi aturan otorisasi. |
this is a test |
| CreateTime |
integer |
Waktu pembuatan, dalam format UNIX timestamp, dalam milidetik. |
1652085686179 |
| UpdateTime |
integer |
Waktu pembaruan terakhir, dalam format UNIX timestamp, dalam milidetik. |
1652085686179 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"AuthorizationRule": {
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"AuthorizationRuleId": "arrule_01kf143ug06fg7m9f43u7vahxxxx",
"AuthorizationRuleName": "test-name",
"Status": "enabled",
"ProjectId": "iprj_system_default",
"AuthorizationResourceScope": "global",
"AuthorizationRuleCreationType": "user_custom",
"AuthorizationRuleSubjectScope": "shared",
"AuthorizationRuleSubjectType": "user",
"AuthorizationRuleSubjectId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"Description": "this is a test",
"CreateTime": 1652085686179,
"UpdateTime": 1652085686179
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.