Mengkueri semua alias di wilayah saat ini untuk akun saat ini.
Deskripsi operasi
For more information about the access policy required by a RAM user or RAM role to call this API, see Resource Access Management.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman. Nilai valid: 0 hingga 100. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1b57992c-834b-4811-a889-f8bac1ba0353 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| TotalCount |
integer |
The total number of returned aliases. |
1 |
| Aliases |
object |
||
| Alias |
array<object> |
The alias of the user. |
|
|
object |
|||
| KeyId |
string |
The CMK to which the alias belongs. |
key-hzz6**** |
| AliasArn |
string |
The Alibaba Cloud Resource Name (ARN) of the alias. |
acs:kms:cn-hangzhou:123456:alias/ExampleAlias1 |
| AliasName |
string |
The ID of the alias. |
alias/ExampleAlias1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1b57992c-834b-4811-a889-f8bac1ba0353",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"Aliases": {
"Alias": [
{
"KeyId": "key-hzz6****",
"AliasArn": "acs:kms:cn-hangzhou:123456:alias/ExampleAlias1",
"AliasName": "alias/ExampleAlias1"
}
]
}
}
Respons error
JSONformat
//xml response
alias/ExampleAlias1
08c33a6f-4e0a-4a1b-a3fa-7ddfa1****
acs:kms:cn-hangzhou:123456:alias/ExampleAlias1
1
1
10
1b57992c-834b-4811-a889-f8bac1ba0353
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | An invalid value is specified for the parameter. |
| 404 | InvalidAccessKeyId.NotFound | The Access Key ID provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.