CreateConsumer - 创建消费者

更新时间:
复制为 MD 格式

创建消费者。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

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

用户 ID.

c-mqveroemc***

示例

正常返回示例

JSON格式

{
  "RequestId": "CD3FA5F3-FAF3-44CA-AFFF-BAF869******",
  "ApiKey": "6c4b1f0317cd4fd7a5b446d3503d**",
  "KeyType": "ApiKey",
  "ConsumerId": "c-mqveroemc***"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情