Mengkueri semua ID versi dan label tahap rahasia tertentu.
Deskripsi operasi
-
For more information about the access policy required for a RAM user or RAM role to call this OpenAPI, see Resource Access Management.
-
The version information does not include the secret value. By default, this operation returns only the secret versions that are marked with a version stage.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SecretName |
string |
Yes |
Nama atau Nama Sumber Daya Alibaba Cloud (ARN) rahasia. Catatan
Saat mengakses rahasia yang dimiliki oleh akun Alibaba Cloud lain, Anda harus menentukan ARN rahasia tersebut. ARN rahasia memiliki format |
secret001 |
| IncludeDeprecated |
string |
No |
Apakah akan menyertakan versi rahasia yang tidak memiliki tahap versi dalam tanggapan. Nilai valid:
|
false |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan untuk kueri berhalaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman untuk kueri berhalaman. Nilai default: 20. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| SecretName |
string |
The name of the credential. |
secret001 |
| RequestId |
string |
The ID of the request, which is a unique identifier generated by Alibaba Cloud. You can use this ID to troubleshoot issues. |
5b75d8b1-5b6a-4ec0-8e0c-c08befdfad47 |
| PageSize |
integer |
The number of entries returned on each page. |
10 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| TotalCount |
integer |
The total number of entries. |
1 |
| VersionIds |
object |
||
| VersionId |
array<object> |
A list of version information of the credential. |
|
|
array<object> |
A list of version information of the credential. |
||
| VersionId |
string |
v1 |
|
| CreateTime |
string |
2024-02-21T15:39:26Z |
|
| VersionStages |
object |
||
| VersionStage |
array |
||
|
string |
{"VersionStage": ["ACSCurrent","uStage1"]} |
Contoh
Respons sukses
JSONformat
{
"SecretName": "secret001",
"RequestId": "5b75d8b1-5b6a-4ec0-8e0c-c08befdfad47",
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 1,
"VersionIds": {
"VersionId": [
{
"VersionId": "v1",
"CreateTime": "2024-02-21T15:39:26Z",
"VersionStages": {
"VersionStage": [
"{\"VersionStage\": [\"ACSCurrent\",\"uStage1\"]}"
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | some of the specified parameters "\" is not valid | |
| 500 | InternalFailure | Internal Failure | |
| 403 | Forbidden.NoPermission | This operation is forbidden by permission system | |
| 404 | Forbidden.ResourceNotFound | Resource not found |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.