調(diào)用GetDcdnKv查詢(xún)Key-Value(KV)對(duì)的某個(gè)Key值。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無(wú)授權(quán)信息透出。
請(qǐng)求參數(shù)
名稱(chēng) | 類(lèi)型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Namespace | string | 是 | Namespace 名稱(chēng)。 | ns1 |
Key | string | 是 | 查詢(xún)的 Key 名稱(chēng)。 | key1 |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"Value": "value1",
"RequestId": "D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C"
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
400 | Invalid.Parameter | The specified parameter is invalid. | 輸入?yún)?shù)無(wú)效 |
400 | InvalidAccount.Malformed | The specified account is invalid. | 賬號(hào)輸入不對(duì),比如輸入為空 |
400 | InvalidNameSpace.Malformed | The specified namespace is invalid. | namespace輸入不對(duì),比如輸入為空 |
400 | InvalidKey.Malformed | The specified key is invalid. | key輸入不對(duì),比如輸入為空 |
400 | InvalidKey.ExceedsMaximum | The size of the key cannot exceed 512 bytes. | key長(zhǎng)度不能超過(guò)512B |
400 | InvalidValue.ExceedsMaximum | The size of the value cannot exceed 2,000,000 bytes. | value長(zhǎng)度不能越過(guò)2000000B |
403 | InvalidKey.ExceedsCapacity | The maximum capacity of a single namespace cannot exceed 1 GB. | namespace容量超過(guò)限制,單個(gè)namespace最大容量為1G |
403 | Unauthorized.InvalidParameters | The specified authentication parameters are invalid. | 鑒權(quán)參數(shù)輸入錯(cuò)誤 |
403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | 您輸入的鑒權(quán)時(shí)間參數(shù)無(wú)效,請(qǐng)檢查參數(shù)值后重試。 |
403 | Unauthorized.InvalidToken | Token authentication failed. | 您輸入的token無(wú)效,請(qǐng)檢查并輸入正確的token后進(jìn)行重試。 |
403 | Unauthorized.InvalidResource | Resource authentication failed. | 資源校驗(yàn)失敗 |
404 | InvalidAccount.NotFound | The specified account does not exist. | 賬號(hào)不存在,未創(chuàng)建 |
404 | InvalidNameSpace.NotFound | The specified namespace does not exist. | namespace不存在 |
404 | InvalidKey.NotFound | The specified key does not exist. | 請(qǐng)求的key不存在 |
406 | InvalidNameSpace.Duplicate | The specified namespace already exists. | namespace已存在 |
406 | InvalidNameSpace.QuotaFull | The maximum number of namespaces is exceeded. | namespace個(gè)數(shù)超過(guò)quota限制 |
406 | InvalidKey.QuotaFull | The maximum number of keys is exceeded. | key個(gè)數(shù)超過(guò)quota限制 |
429 | TooManyRequests | Too many requests are submitted. | 請(qǐng)求速率過(guò)快 |
429 | TooQuickRequests | Request for putting or deleting keys are frequently submitted. | key put/delete操作太頻繁 |
訪問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|
暫無(wú)變更歷史