Mengkueri daftar izin ResourceServer dan Scope yang diberikan ke akun saat ini dengan menggunakan pendekatan berbasis kursor.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:ListResourceServersForUser |
list |
*Pengguna.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| NextToken |
string |
No |
Token paginasi. Tetapkan parameter ini ke nilai NextToken yang dikembalikan dalam panggilan API sebelumnya. |
NTxxxxxexample |
| UserId |
string |
Yes |
ID akun. |
user_mkv7rgt4d7i4u7zqtzev2mxxxx |
| MaxResults |
integer |
No |
Jumlah entri per halaman dalam kueri berhalaman. |
20 |
| Filter |
array<object> |
No |
Daftar kondisi filter. |
|
|
object |
No |
Kondisi filter. |
||
| Name |
string |
No |
Nama kondisi filter. |
ApplicationIds |
| Value |
array |
No |
Daftar nilai kondisi filter. |
|
|
string |
No |
Nilai kondisi filter. |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| TotalCount |
integer |
Jumlah total entri dalam daftar. |
100 |
| NextToken |
string |
Token paginasi untuk halaman berikutnya. |
NTxxxexample |
| ResourceServers |
array<object> |
Daftar aplikasi ResourceServer. |
|
|
array<object> |
Informasi aplikasi ResourceServer. |
||
| InstanceId |
string |
ID instans. |
idaas_qsw77zl5vrllwzyrrfwbmpxxxx |
| ApplicationId |
string |
ID aplikasi ResourceServer. |
app_nbsomva32b6utec3hgi7scxxxx |
| ResourceServerScopes |
array<object> |
Daftar izin Scope yang diotorisasi. |
|
|
object |
Informasi izin Scope. |
||
| ResourceServerScopeId |
string |
The ID of the Scope permission. |
ress_nbte4bb3qqqnaq73rlmkqixxxx |
| ResourceServerScopeName |
string |
The name of the Scope permission. |
Read All User |
| HasDirectAuthorization |
boolean |
Indicates whether a direct authorization exists. Valid values:
|
true |
| HasInheritAuthorization |
boolean |
Indicates whether an inherited permission exists. Valid values:
|
false |
| ResourceServerIdentifier |
string |
Pengenal unik ResourceServer. |
urn:idaas:test |
| MaxResults |
integer |
Jumlah entri per halaman dalam kueri berhalaman. |
20 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"TotalCount": 100,
"NextToken": "NTxxxexample",
"ResourceServers": [
{
"InstanceId": "idaas_qsw77zl5vrllwzyrrfwbmpxxxx",
"ApplicationId": "app_nbsomva32b6utec3hgi7scxxxx",
"ResourceServerScopes": [
{
"ResourceServerScopeId": "ress_nbte4bb3qqqnaq73rlmkqixxxx",
"ResourceServerScopeName": "Read All User",
"HasDirectAuthorization": true,
"HasInheritAuthorization": false
}
],
"ResourceServerIdentifier": "urn:idaas:test"
}
],
"MaxResults": 20
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.