GetDcdnKvStatus - 查询KV状态信息-按Key值

更新时间:

调用GetDcdnKvStatus按Key值查询KV状态信息。

调试

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

授权信息

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

请求参数

名称类型必填描述示例值
Namespacestring

Namespace 名称。

ns1
Keystring

查询的 Key 名称。

key1

返回参数

名称类型描述示例值
object
Completeboolean

配置的 Key 是否已全网生效。

  • true:已全网生效。
  • false:未全网生效。
true
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE73368
Expirestring

配置的 Key 的超时时间(绝对时间戳,如 2023-09-11T15:39:44+08:00),当永久存储时不返回。

2023-09-11T15:39:44+08:00

示例

正常返回示例

JSON格式

{
  "Complete": true,
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "Expire": "2023-09-11T15:39:44+08:00"
}

错误码

HTTP status code错误码错误信息描述
400Invalid.ParameterThe specified parameter is invalid.输入参数无效
400InvalidAccount.MalformedThe specified account is invalid.账号输入不对,比如输入为空
400InvalidNameSpace.MalformedThe specified namespace is invalid.namespace输入不对,比如输入为空
400InvalidKey.MalformedThe specified key is invalid.key输入不对,比如输入为空
400InvalidKey.ExceedsMaximumThe size of the key cannot exceed 512 bytes.key长度不能超过512B
400InvalidValue.ExceedsMaximumThe size of the value cannot exceed 2,000,000 bytes.value长度不能越过2000000B
403InvalidKey.ExceedsCapacityThe maximum capacity of a single namespace cannot exceed 1 GB.namespace容量超过限制,单个namespace最大容量为1G
403Unauthorized.InvalidParametersThe specified authentication parameters are invalid.鉴权参数输入错误
403Unauthorized.InvalidTimeThe specified authentication time is invalid.您输入的鉴权时间参数无效,请检查参数值后重试。
403Unauthorized.InvalidTokenToken authentication failed.您输入的token无效,请检查并输入正确的token后进行重试。
403Unauthorized.InvalidResourceResource authentication failed.资源校验失败
404InvalidAccount.NotFoundThe specified account does not exist.账号不存在,未创建
404InvalidNameSpace.NotFoundThe specified namespace does not exist.namespace不存在
404InvalidKey.NotFoundThe specified key does not exist.请求的key不存在
406InvalidNameSpace.DuplicateThe specified namespace already exists.namespace已存在
406InvalidNameSpace.QuotaFullThe maximum number of namespaces is exceeded.namespace个数超过quota限制
406InvalidKey.QuotaFullThe maximum number of keys is exceeded.key个数超过quota限制
429TooManyRequestsToo many requests are submitted.请求速率过快
429TooQuickRequestsRequest for putting or deleting keys are frequently submitted.key put/delete操作太频繁

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

变更历史

变更时间变更内容概要操作
暂无变更历史