Mengkueri cakupan pengguna yang menjadi sasaran penerapan kebijakan kontrol.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:GetPolicyUserScope |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion Host tempat kebijakan kontrol yang akan dikueri berada. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion Host. |
bastion-xxxx-xx |
| RegionId |
string |
No |
ID Wilayah bastion Host tempat kebijakan kontrol yang akan dikueri berada. Catatan
Untuk informasi lebih lanjut tentang Pemetaan antara ID Wilayah dan nama Wilayah, lihat Regions and zones. |
cn-hangzhou |
| PolicyId |
string |
Yes |
ID kebijakan kontrol yang ingin Anda kueri. Catatan
Anda dapat memanggil operasi ListPolicies untuk mengkueri ID kebijakan kontrol. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| UserScope |
object |
The users to whom the control policy applies. |
|
| ScopeType |
string |
The scope of users to whom the control policy applies.
|
All |
| UserGroupIds |
array |
The user groups to which the control policy applies. |
|
|
string |
The user group IDs. |
["1", "2", "3"] |
|
| UserIds |
array |
The users to whom the control policy applies. |
|
|
string |
The user IDs. |
["1", "2", "3"] |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"UserScope": {
"ScopeType": "All",
"UserGroupIds": [
"[\"1\", \"2\", \"3\"]"
],
"UserIds": [
"[\"1\", \"2\", \"3\"]"
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.