Queries the information about the passkeys that are bound to a Resource Access Management (RAM) user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:ListPasskeys |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserPrincipalName |
string |
No |
The logon name of the RAM user. |
test@example.onaliyun.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| Passkeys |
array<object> |
The information about the passkeys. |
|
|
object |
|||
| PasskeyName |
string |
The name of the passkey. |
device1 |
| PasskeyId |
string |
The ID of the passkey. |
PASSKEY-CuZjEHhWcr7GIQOMGvkS |
| CreateDate |
string |
The time when the passkey was created. The value is a timestamp. |
1737450279 |
| LastUseDate |
string |
The time when the passkey was last used. The value is a timestamp. |
1737450390 |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Passkeys": [
{
"PasskeyName": "device1",
"PasskeyId": "PASSKEY-CuZjEHhWcr7GIQOMGvkS",
"CreateDate": "1737450279",
"LastUseDate": "1737450390"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.