GetApiKey - 获取ApiKey详情
更新时间:
复制 MD 格式
获取API密钥详情。
接口说明
获取 API 密钥详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
gpdb:GetApiKey |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| KeyId |
string |
是 |
API KEY ID。 |
api-xxxxxx |
| RegionId |
string |
否 |
地域 ID。 |
cn-beijing |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| KeyId |
string |
API KEY 的 ID。 |
api-xxxxxxx |
| RequestId |
string |
请求 ID。 |
7565770E-7C45-462D-BA4A-8A5396**** |
| ApiKey |
string |
API KEY 内容。 |
sk-xxxxxxx |
| KeyName |
string |
API KEY 的名字。 |
test api key |
| Description |
string |
描述信息。 |
test api key |
| KeyPrefix |
string |
API KEY 的前缀。 |
sk-1235***** |
| CreateTime |
string |
创建时间。 |
2019-09-08T16:00:00Z |
| AuthServices |
array<object> |
服务 ID。 |
|
|
object |
服务 ID。 |
||
| ServiceType |
string |
服务类型:
|
memory |
| ServiceId |
string |
服务 ID。 |
agdb-2ze8x9278c9iizl |
示例
正常返回示例
JSON格式
{
"KeyId": "api-xxxxxxx",
"RequestId": "7565770E-7C45-462D-BA4A-8A5396****",
"ApiKey": "sk-xxxxxxx",
"KeyName": "test api key",
"Description": "test api key",
"KeyPrefix": "sk-1235*****",
"CreateTime": "2019-09-08T16:00:00Z",
"AuthServices": [
{
"ServiceType": "memory",
"ServiceId": "agdb-2ze8x9278c9iizl"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?