Mengkueri daftar aturan otorisasi pada bastion host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListRules |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-5yd34ol020a |
| RegionId |
string |
No |
ID region dari bastion host. Catatan
Untuk informasi selengkapnya tentang pemetaan antara ID region dan nama region, lihat Region dan zona. |
cn-hangzhou |
| PageNumber |
string |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. Catatan
Kami menyarankan agar Anda tidak mengosongkan parameter ini. |
20 |
| RuleName |
string |
No |
Nama aturan otorisasi yang akan dikueri. Hanya pencocokan tepat yang didukung. |
rule |
| RuleState |
string |
No |
Status aturan otorisasi yang akan dikueri.
|
Enabled |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| Rules |
array<object> |
Aturan otorisasi yang dikembalikan. |
|
|
object |
|||
| Comment |
string |
Keterangan aturan otorisasi. |
comment |
| EffectiveEndTime |
integer |
Waktu berakhirnya masa berlaku aturan otorisasi. Nilai berupa timestamp. Satuan: detik. |
1709258400 |
| EffectiveStartTime |
integer |
Waktu mulai masa berlaku aturan otorisasi. Nilai berupa timestamp. Satuan: detik. |
1685499134 |
| RuleId |
string |
ID aturan otorisasi. |
13 |
| RuleName |
string |
Nama aturan otorisasi. |
rule |
| RuleState |
string |
Status aturan otorisasi.
|
Enabled |
| TotalCount |
integer |
Jumlah total aturan otorisasi yang dikembalikan. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Rules": [
{
"Comment": "comment",
"EffectiveEndTime": 1709258400,
"EffectiveStartTime": 1685499134,
"RuleId": "13",
"RuleName": "rule",
"RuleState": "Enabled"
}
],
"TotalCount": 1
}
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.