建立消費者。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| GwClusterId |
string |
是 |
網關執行個體 ID。 |
pg-xxxxxxxxxx |
| Name |
string |
是 |
使用者名稱稱 |
test |
| ConsumerGroupName |
string |
否 |
使用者組 ID. |
cg-p3gk2oh55c** |
| NickName |
string |
否 |
使用者暱稱 |
test |
| KeyType |
string |
否 |
密鑰類型,預設 ApiKey,當前僅支援 ApiKey |
ApiKey |
| RegionId |
string |
否 |
地區 ID。 |
cn-beijing |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
CD3FA5F3-FAF3-44CA-AFFF-BAF869****** |
| ApiKey |
string |
完整 APIKey,僅本次返回 |
6c4b1f0317cd4fd7a5b446d3503d** |
| KeyType |
string |
密鑰類型,預設 ApiKey,當前僅支援 ApiKey |
ApiKey |
| ConsumerId |
string |
使用者識別碼. |
c-mqveroemc*** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "CD3FA5F3-FAF3-44CA-AFFF-BAF869******",
"ApiKey": "6c4b1f0317cd4fd7a5b446d3503d**",
"KeyType": "ApiKey",
"ConsumerId": "c-mqveroemc***"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。