You need to enable JavaScript to run this app.
文档中心
API 网关

API 网关

复制全文
下载 pdf
消费者管理
CheckConsumerCredentialExist - 检查消费者凭证是否存在
复制全文
下载 pdf
CheckConsumerCredentialExist - 检查消费者凭证是否存在
通过消费者凭证配置和所属网关实例 ID 检查消费者凭证是否存在。​
请求说明​
API 网关已在全球多个地域部署服务,旨在为您提供更稳定、低延迟的访问体验。您可以通过查阅 服务地址 文档,根据业务所在地域,选择最合适的接入点。​
  • 请求方式:POST​
  • 请求地址:https://apig.cn-beijing.volcengineapi.com?Action=CheckConsumerCredentialExist&Version=2021-03-03​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CheckConsumerCredentialExist​
要执行的操作,取值:CheckConsumerCredentialExist。​
​
Version string 必选 示例值:2021-03-03​
API的版本,取值:2021-03-03。​
​
GatewayId string 必选 示例值:gd8****​
网关实例 ID。您可以通过 ListGateways 查询网关实例 ID。​
​
CredentialType string 必选 示例值:hmac-auth​
凭证类型,取值:​
  • hmac-auth:HMAC 凭证。​
  • key-auth:API Key 凭证。​
​
HmacAuthCredential object 可选 示例值:-​
HMAC 凭证详情。​
AccessKey string 必选 示例值:APIGND****​
Access key。​
​
SecretKey string 必选 示例值:MmMyZ****​
Secret key。​
​
​
KeyAuthCredential object 可选 示例值:-​
API Key 凭证详情。​
APIKey string 必选 示例值:c4cc2338-d85****​
API key。​
​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
Exist boolean 示例值:true​
消费者凭证是否存在。取值:​
  • true:存在。​
  • false:不存在。​
​
Id string 示例值:credential-cf8t****​
消费者凭证 ID。​
​
ConsumerId string 示例值:consumer-crbc****​
消费者 ID。​
​
​
​
请求示例​
​
POST https://apig.cn-beijing.volcengineapi.com?Action=CheckConsumerCredentialExist&Version=2021-03-03​
Content-Type: application/json​
{​
"GatewayId": "gd8****",​
"CredentialType": "hmac-auth",​
"HmacAuthCredential": {​
"AccessKey": "APIGND****",​
"SecretKey": "MmMyZ****"​
},​
"KeyAuthCredential": {​
"APIKey": "c4cc2338-d85****"​
}​
}​
​
返回示例​
​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "CheckConsumerCredentialExist",​
"Version": "2021-03-03",​
"Service": "apig",​
"Region": "cn-beijing"​
},​
"Result": {​
"Exist": true,​
"Id": "credential-cf8t****",​
"ConsumerId": "consumer-crbc****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidParameter​
The specified parameter %s is invalid.​
请求参数值不合法。请确认参数后重试。​
500​
InternalError​
The request has failed due to an unknown error.​
未知错误。请稍后重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2026.10.28 14:59:50
这个页面对您有帮助吗?
有用
有用
无用
无用