查詢該 apikey 的詳細資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ApiKey |
string |
是 |
明文 ApiKey。 |
6c4b1f0317cd4fd7a5b446d3503d** |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| PageSize |
integer |
否 |
每頁記錄數,取值為 30、50 或 100。 預設值為 30。 |
30 |
| PageNumber |
integer |
否 |
查詢頁碼,預設值為 1。 |
1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F3322AFE-083E-4D77-A074-421301****** |
| Items |
array<object> |
消費者物件列表。 |
|
|
array<object> |
消費者物件。 |
||
| Consumer |
object |
Consumer 資訊。 |
|
| ConsumerId |
string |
c-71qh3pscbd3i |
|
| GwClusterId |
string |
pg-2ze5n62ef4s165*** |
|
| Name |
string |
test |
|
| ConsumerGroupId |
string |
cg-bq6rcdjp02vt |
|
| ConsumerTag |
string |
test |
|
| ApiKey |
string |
*** |
|
| Status |
string |
Enabled |
|
| CreateTime |
string |
2021-07-18T07:32:30Z |
|
| ModifyTime |
string |
2026-04-10T01:48:25Z |
|
| UsageStatistics |
array<object> |
該 Consumer 對應的用量統計記錄。 |
|
|
object |
該 Consumer 對應的用量統計記錄。 |
||
| GwClusterId |
string |
pg-bp1ln7w98yrhzz7i2 |
|
| DimensionType |
string |
Consumer |
|
| DimensionRefId |
string |
c-xxxxxx |
|
| TotalInputToken |
string |
10 |
|
| TotalOutputToken |
string |
10 |
|
| TotalCacheToken |
string |
10 |
|
| TotalCostPoints |
string |
10 |
|
| MonthlyInputToken |
string |
10 |
|
| MonthlyOutputToken |
string |
10 |
|
| MonthlyCacheToken |
string |
10 |
|
| MonthlyCostPoints |
string |
10 |
|
| TotalToken |
string |
10 |
|
| MonthlyToken |
string |
10 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F3322AFE-083E-4D77-A074-421301******",
"Items": [
{
"Consumer": {
"ConsumerId": "c-71qh3pscbd3i",
"GwClusterId": "pg-2ze5n62ef4s165***",
"Name": "test",
"ConsumerGroupId": "cg-bq6rcdjp02vt",
"ConsumerTag": "test",
"ApiKey": "***",
"Status": "Enabled",
"CreateTime": "2021-07-18T07:32:30Z",
"ModifyTime": "2026-04-10T01:48:25Z"
},
"UsageStatistics": [
{
"GwClusterId": "pg-bp1ln7w98yrhzz7i2",
"DimensionType": "Consumer\n\n",
"DimensionRefId": "c-xxxxxx",
"TotalInputToken": "10",
"TotalOutputToken": "10",
"TotalCacheToken": "10",
"TotalCostPoints": "10",
"MonthlyInputToken": "10",
"MonthlyOutputToken": "10",
"MonthlyCacheToken": "10",
"MonthlyCostPoints": "10",
"TotalToken": "10",
"MonthlyToken": "10"
}
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。