Mengambil detail kunci API tertentu berdasarkan nama kunci API.
Deskripsi operasi
Deskripsi
Operasi ini mengambil detail kunci API tertentu dengan menggunakan
apiKeyName.Informasi yang dikembalikan mencakup nama, kunci, status, deskripsi, daftar penyimpanan log yang mengizinkan penulisan, pengatur waktu pembuatan, dan pengatur waktu pembaruan kunci API.
log:GetApiKeydianggap sebagai izin sensitif. Gunakan kehati-hatian saat memanggil operasi ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:GetApiKey |
get |
*Project.
|
None | None |
Sintaks permintaan
GET /apikeys/{apiKeyName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| apiKeyName |
string |
Yes |
Nama kunci API. |
demo-apikey-001 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
No |
Nama Proyek. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| apiKeyName |
string |
Nama kunci API. |
demo-apikey-001 |
| apiKey |
string |
Kunci API dalam teks biasa. |
|
| status |
string |
Status. |
Enabled / Disabled |
| description |
string |
Deskripsi. |
test |
| allowedStores |
array |
Daftar penyimpanan log yang mengizinkan penulisan. |
|
|
string |
Nama penyimpanan log. |
test |
|
| createTime |
integer |
Pengatur waktu pembuatan. |
1788420000 |
| updateTime |
integer |
Pengatur waktu pembaruan. |
1788420000 |
Contoh
Respons sukses
JSONformat
{
"apiKeyName": "demo-apikey-001",
"apiKey": "",
"status": "Enabled / Disabled",
"description": "test",
"allowedStores": [
"test"
],
"createTime": 1788420000,
"updateTime": 1788420000
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.