Mencantumkan kunci publik SSH yang dikonfigurasi untuk pengguna Host Bastion. Pengguna dapat menggunakan kunci publik ini untuk otentikasi berbasis kunci saat masuk ke host melalui Host Bastion.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListUserPublicKeys |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion tempat pengguna yang kunci publiknya ingin Anda kueri berada. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID instans Host Bastion. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah instans Host Bastion tempat pengguna berada. Catatan
Untuk informasi selengkapnya tentang Pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-shanghai |
| PageNumber |
string |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Catatan
Kami menyarankan Anda untuk tidak mengosongkan parameter ini. |
50 |
| UserId |
string |
No |
ID pengguna yang kunci publiknya ingin Anda kueri. |
2 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| PublicKeys |
array<object> |
The public keys of the user. |
|
|
object |
The public keys of the user. |
||
| FingerPrint |
string |
The fingerprint of the public key. |
d8:7d:b6:27:70:2d:07:fb:c6:b6:66:0a:86:7b:0f:9a |
| PublicKeyId |
string |
The ID of the public key. |
1 |
| PublicKeyName |
string |
The name of the public key. |
Keyname |
| UserId |
string |
The ID of the user to which the public key belongs. |
1 |
| Comment |
string |
The description of the public key. |
comment |
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| TotalCount |
integer |
The total number of public keys. |
5 |
Contoh
Respons sukses
JSONformat
{
"PublicKeys": [
{
"FingerPrint": "d8:7d:b6:27:70:2d:07:fb:c6:b6:66:0a:86:7b:0f:9a",
"PublicKeyId": "1",
"PublicKeyName": "Keyname",
"UserId": "1",
"Comment": "comment"
}
],
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"TotalCount": 5
}
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.