狀態碼
更新時間 2023-09-21 09:34:07
最近更新時間: 2023-09-21 09:34:07
分享文章
本產品接口請求的返回狀態碼列表,包含正常和異常狀態碼、狀態碼對應狀態信息、描述等。
| 狀態碼 | 錯誤碼 | 返回信息 | 含義 |
|---|---|---|---|
| 200 | 0 | 成功 | 成功操作 |
| 400 | KMS.0101 | 參數缺失 | 所傳參數缺失 |
| 400 | KMS.0102 | CmkUuid cannot be empty | 主密鑰id不能為空 |
| 400 | KMS.0103 | AliasName cannot be empty | 別名不能為空 |
| 400 | KMS.0104 | Digest cannot be empty | 待簽名值不能為空 |
| 400 | KMS.0105 | KeyVersionId cannot be empty | 請選擇主密鑰版本 |
| 400 | KMS.0106 | Sign algorithm cannot be empty | 請選擇簽名算法 |
| 400 | KMS.0107 | Plaintext can notbe empty | 請輸入需要加密的明文 |
| 400 | KMS.0108 | Ciphertextblob cannot be empty | 請輸入待解密密文 |
| 400 | KMS.0109 | Reencrypt cmkuuid cannot be empty | 請選擇轉加密主密鑰 |
| 400 | KMS.0110 | Asymmetric encrypt need sourceuuid | 非對稱加密需選擇密文對應的主密鑰id |
| 400 | KMS.0111 | Asymmetric encrypt need sourceKeyVersion | 非對稱加密需選擇密文對應的主密鑰版本 |
| 400 | KMS.0112 | DestinationUuid cannot be empty | 轉加密主密鑰不能為空 |
| 400 | KMS.0113 | Protectionlevel cannot be empty | 保護等級不可為空 |
| 400 | KMS.0114 | Algorithm cannot be empty | 加密算法不能為空 |
| 400 | KMS.0115 | Regionid cannot be empty | 資源池id不能為空 |
| 400 | KMS.0116 | Enableautoatocrotatiom cannot be empty | 請選擇是否進行密鑰輪轉 |
| 400 | KMS.0117 | Keyusage can not be empty | 請選擇密鑰用途 |
| 400 | KMS.0118 | Rotationinterval cannot be empty | 請選擇密鑰輪轉周期 |
| 400 | KMS.0119 | Nextrotationdate is empty | 下次輪轉時間為空 |
| 400 | KMS.0120 | Algorithm for import cannot be empty | 選擇導入密鑰加密算法 |
| 400 | KMS.0121 | KeySpec for publickey cannot be empty | 選擇公鑰類型 |
| 400 | KMS.0122 | Pendingwindowindays cannot be empty | 選擇延遲刪除時間 |
| 400 | KMS.0123 | Token cannot be empty | token為空 |
| 400 | KMS.0124 | Encryptenkeymeterial cannot be empty | 密鑰材料不能為空 |
| 400 | KMS.0125 | Sign value cannot be empty | 請輸入簽名值 |
| 400 | KMS.0126 | Keyspec cannot be empty | 加密算法不能為空 |
| 400 | KMS.0127 | Userid cannot be empty | 用戶id不能為空 |
| 400 | KMS.0128 | Request JSON format is illegal | 請求JSON格式非法 |
| 400 | KMS.0129 | The request message is too long | 請求消息太長 |
| 400 | KMS.0130 |
The page size is too large |
單頁數據過多 |
| 400 | KMS.0131 | The public blob can not be empty | 公鑰不能為空 |
| 400 | KMS.0132 | AliasName is too long | 別名長度過長 |
| 400 | KMS.0133 | AliasName is not legal | 別名不合法 |
| 400 | KMS.0134 | Wrappingalgorithm cannot be empty | 算法不能為空 |
| 400 | KMS.0135 | Product cannot be empty | 產品不能為空 |
| 400 | KMS.0136 | Product is not exist | 產品不存在 |
| 400 | KMS.0137 | Messagetype is wrong | 消息格式錯誤 |
| 400 | KMS.0138 | The certificate id is wrong | 證書ID錯誤 |
| 400 | KMS.0139 | Certificate does not match certificate chain | 證書與證書鏈不匹配 |
| 400 | KMS.0140 | Certificate format error | 證書格式錯誤 |
| 400 | KMS.0141 | Certificate algorithm not supported | 證書算法不支持 |
| 400 | KMS.0142 | The privatekey of the certificate cannot be exported | 證書私鑰不可導出 |
| 400 | KMS.0143 | The cert is not availible | 證書不存在 |
| 400 | KMS.0144 | The formate of cert export is wrong | 導出證書格式錯誤 |
| 400 | KMS.0201 | Alias already exists | 別名已存在 |
| 400 | KMS.0202 | The default CMK cannot create an alias | 默認主密鑰不能創建別名 |
| 400 | KMS.0203 | The selection CMK is not available | 選擇主密鑰不可用 |
| 400 | KMS.0204 | The selected CMK is not available for signature and verification | 選擇的主密鑰不可用于簽名驗簽名 |
| 400 | KMS.0205 | The selected CMK is not available for encryption and decryption | 選擇的主密鑰不可用于加密解密 |
| 400 | KMS.0206 | The CMK is disabled | 密鑰不是可用狀態 |
| 400 | KMS.0207 | The CMK cannot be enabled | 密鑰不可啟用 |
| 400 | KMS.0208 | The Cmk has deletion task | 密鑰已有刪除計劃 |
| 400 | KMS.0209 | The CMK has no deletion task | 密鑰無刪除計劃 |
| 400 | KMS.0210 | The CMK cannot be imported | 密鑰不可導入 |
| 400 | KMS.0211 | The CMK does not support automatic rotation | 該密鑰不支持自動輪轉 |
| 400 | KMS.0212 | The selection algorithm is not supported | 選擇算法不支持 |
| 400 | KMS.0213 | The CMK is not a symmetric key | 密鑰不是對稱密鑰 |
| 400 | KMS.0214 | The CMK is not a asymmetric key | 密鑰不是非對稱密鑰 |
| 400 | KMS.0215 | Wrong algorithm format | 算法格式錯誤 |
| 400 | KMS.0216 | Wrong keyusage type | 密鑰用途類型錯誤 |
| 400 | KMS.0217 | Wrong input of parameter format! Please enter true / false | 參數格式輸入有誤!請輸入true/false |
| 400 | KMS.0218 | Wrong protectionlevel | 保護等級錯誤 |
| 400 | KMS.0219 | Wrong ciphertext | 密文有誤 |
| 400 | KMS.0220 | Key length input error,this algorithm only supports AES_256 | 密鑰長度輸入錯誤,該算法僅支持AES_256 |
| 400 | KMS.0221 | Key length input error,this algorithm only supports SM4_128 | 密鑰長度輸入錯誤,該算法僅支持SM4_128 |
| 400 | KMS.0222 | Key length input error,this algorithm only supports RSA_2048 | 密鑰長度輸入錯誤,該算法僅支持RSA_2048 |
| 400 | KMS.0223 | This algorithm only supports AES/SM4 | 目前僅支持AES/SM4算法 |
| 400 | KMS.0224 | Wrong rotationlevel format | 輪轉周期格式不合法 |
| 400 | KMS.0225 | Asymmetric CMK cannot be imported | 非對稱密鑰不可導入 |
| 400 | KMS.0226 | Wrong pendingwindowindays format | 刪除時間不合法 |
| 400 | KMS.0227 | Unsupported keyspec | 不支持的密鑰類型 |
| 400 | KMS.0228 | The number of the CMK rotation of the user has reached the upper limit | 該用戶密鑰輪轉次數已達上限! |
| 400 | KMS.0229 | Failed to execute key rotation. The key has been rotated within 7 days! | 執行密鑰輪轉失敗,該密鑰7天內已執行過輪轉! |
| 400 | KMS.0230 | The current CMK is in the state of pause rotation. Please enable the master key or cancel the plan deletion before operation! | 當前密鑰處于暫停輪轉狀態,請啟用主密鑰或取消計劃刪除后再操作 |
| 400 | KMS.0231 | PageSize exceeds threshold | pagesize超過閾值 |
| 400 | KMS.0232 | Symmetric key can not use to sign or verify | 對稱密鑰不能用于簽名驗簽 |
| 400 | KMS.0233 | This key cannot operation alias | 密鑰不能操作別名 |
| 400 | KMS.0234 | Default key cannot delete alias | 默認密鑰不能刪除別名 |
| 400 | KMS.0235 | WRONG time format | 時間格式錯誤 |
| 400 | KMS.0236 | Wrong algorithm for import | 導入密鑰算法錯誤 |
| 400 | KMS.0237 | Wrong keyspec for import | 算法格式錯誤 |
| 400 | KMS.0238 | The number of asymmetric keys in a region cannot be greater than 50 | 非對稱密鑰不能超過50個 |
| 400 | KMS.0239 | Key decryption failed | 密鑰解密失敗 |
| 400 | KMS.0240 | Cmkuuid is not legal | cmkuuid不合法 |
| 400 | KMS.0241 | Cmk length is wrong | 對稱密鑰長度不合法 |
| 400 | KMS.0242 | Origin type wrong | 密鑰類型格式錯誤 |
| 400 | KMS.0243 | The default CMK cannot update an alias | 默認主密鑰不能創建別名 |
| 400 | KMS.0244 | The destinationKeyId is not a symmetric key | 轉加密密鑰不是對稱密鑰 |
| 400 | KMS.0245 | The Meterial for import is already exist | 密鑰材料已經存在 |
| 400 | KMS.0246 | destinationKeyId cannot use | ID無法使用 |
| 400 | KMS.0247 | Data key ciphertext wrong | 數據密鑰密文錯誤 |
| 400 | KMS.0248 | The cmk already has a meterial | 該密鑰已導入 |
| 400 | KMS.0249 | The length of plaintext exceeds the limit | 加密數據長度超過限制 |
| 400 | KMS.0250 | Asymmetric CMK cannot create datakey | 非對稱主密鑰不能創建數據密鑰 |
| 400 | KMS.0251 | Only support RSA cmk | 只支持RSA類型的密鑰 |
| 400 | KMS.0252 | Plaintext need to be base64 | 非對稱密鑰加密解密的明文需要base64 |
| 400 | KMS.0253 | KeySpec cannot be empty | 密鑰類型不能為空 |
| 400 | KMS0254 | Subject cannot be empty | 證書主體不能為空 |
| 400 | KMS0255 | certificateId cannot be empty | 證書id不能為空 |
| 400 | KMS0256 | status cannot be empty | 證書狀態不能為空 |
| 400 | KMS0257 | the certificate has not been imported | 證書未導入 |
| 400 | KMS0258 | the certificate has been active | 證書已被啟用 |
| 400 | KMS0259 | the certificate has been revoked | 證書已被吊銷 |
| 400 | KMS0260 | the certificate has been inactive | 證書已被禁用 |
| 404 | KMS.0301 | The CMK does not exist or has been deleted | 密鑰不存在或已刪除 |
| 404 | KMS.0302 | The target CMK does not exist | 目標主密鑰不存在 |
| 404 | KMS.0303 | The target alias does not exist | 目標別名不存在 |
| 404 | KMS.0304 | The target CMK does not exist or in illegal status | 目標主密鑰不存在或狀態不合法 |
| 404 | KMS.0305 | The destination cmk does not exist or has been deleted | 密鑰不存在或已刪除 |
| 404 | KMS.0306 | The cmk is not enable | 密鑰不存在或已刪除 |
| 404 | KMS.0307 | DestinationKeyId do not exist | DestinationKeyId不存在 |
| 404 | KMS.0308 | The soucekeyid CMK does not exist | 密鑰不存在 |
| 404 | KMS.0309 | The certificate does not exist or has been deleted | 證書不存在或已刪除 |
| 404 | KMS0310 | The certificate hsa been deleted | 證書已被刪除 |
| 401 | KMS.0401 | Token validation failed | token驗證失敗 |
| 401 | KMS.0402 | Sign wrong | AKSK簽名錯誤 |
| 401 | KMS.0403 | Time format wrong | 時間格式錯誤 |
| 401 | KMS.0404 | Out of time | 超時 |
| 401 | KMS.0405 | You cannot visit the url | 無法訪問 |
| 401 | KMS.0406 | User is freeze | 用戶被凍結 |
| 401 | kms.0407 | Interface counter exceeded | 接口達到訪問次數 |
| 500 | KMS.0501 | There are no rotation tasks to be performed | 沒有待執行的輪轉任務 |
| 500 | KMS.0502 | Failed to delete alias | 刪除別名失敗 |
| 500 | KMS.0503 | Key initialization failed | 密鑰初始化失敗 |
| 500 | KMS.0504 | Key decryption failed | 密鑰解密失敗 |
| 500 | KMS.0505 | HSM failed to create user key | 密碼機創建用戶密鑰失敗 |
| 500 | KMS.0506 | Failed to create delay delete task | 創建延時刪除任務失敗 |
| 500 | KMS.0507 | Failed to send MQ for rotation task | 輪轉任務發送mq失敗 |
| 500 | KMS.0508 | Delay delete task sending MQ failed | 延時刪除任務發送mq失敗 |
| 500 | KMS.0509 | Failed to send MQ for delete key material task | 刪除密鑰材料任務發送mq失敗 |
| 500 | KMS.0510 | Failed to create default CMK | 創建默認主密鑰失敗 |
| 500 | KMS.0511 | Failed to get random key | 獲取隨機密鑰失敗 |
| 500 | KMS.0512 | Failed to create data key | 創建數據密鑰失敗 |
| 500 | KMS.0513 | Data key decryption failed | 數據密鑰解密失敗 |
| 500 | KMS.0514 | CMK encryption failed | 用戶主密鑰加密失敗 |
| 500 | KMS.0515 | Failed to create CMK | 創建用戶密鑰失敗 |
| 500 | KMS.0516 | Key rotation failed! | 執行密鑰輪轉失敗 |
| 500 | KMS.0517 | Failed to execute key rotation policy | 執行密鑰輪轉策略失敗 |
| 500 | KMS.0518 | Failed to update key description | 更新密鑰輪轉策略失敗 |