活动

天翼云最新优惠活动,涵盖免费试用,产品折扣等,助您降本增效!
热门活动
  • 618智算钜惠季 爆款云主机2核4G限时秒杀,88元/年起!
  • 免费体验DeepSeek,上天翼云息壤 NEW 新老用户均可免费体验2500万Tokens,限时两周
  • 云上钜惠 HOT 爆款云主机全场特惠,更有万元锦鲤券等你来领!
  • 算力套餐 HOT 让算力触手可及
  • 天翼云脑AOne NEW 连接、保护、办公,All-in-One!
  • 中小企业应用上云专场 产品组合下单即享折上9折起,助力企业快速上云
  • 息壤高校钜惠活动 NEW 天翼云息壤杯高校AI大赛,数款产品享受线上订购超值特惠
  • 天翼云电脑专场 HOT 移动办公新选择,爆款4核8G畅享1年3.5折起,快来抢购!
  • 天翼云奖励推广计划 加入成为云推官,推荐新用户注册下单得现金奖励
免费活动
  • 免费试用中心 HOT 多款云产品免费试用,快来开启云上之旅
  • 天翼云用户体验官 NEW 您的洞察,重塑科技边界

智算服务

打造统一的产品能力,实现算网调度、训练推理、技术架构、资源管理一体化智算服务
智算云(DeepSeek专区)
科研助手
  • 算力商城
  • 应用商城
  • 开发机
  • 并行计算
算力互联调度平台
  • 应用市场
  • 算力市场
  • 算力调度推荐
一站式智算服务平台
  • 模型广场
  • 体验中心
  • 服务接入
智算一体机
  • 智算一体机
大模型
  • DeepSeek-R1-昇腾版(671B)
  • DeepSeek-R1-英伟达版(671B)
  • DeepSeek-V3-昇腾版(671B)
  • DeepSeek-R1-Distill-Llama-70B
  • DeepSeek-R1-Distill-Qwen-32B
  • Qwen2-72B-Instruct
  • StableDiffusion-V2.1
  • TeleChat-12B

应用商城

天翼云精选行业优秀合作伙伴及千余款商品,提供一站式云上应用服务
进入甄选商城进入云市场创新解决方案
办公协同
  • WPS云文档
  • 安全邮箱
  • EMM手机管家
  • 智能商业平台
财务管理
  • 工资条
  • 税务风控云
企业应用
  • 翼信息化运维服务
  • 翼视频云归档解决方案
工业能源
  • 智慧工厂_生产流程管理解决方案
  • 智慧工地
建站工具
  • SSL证书
  • 新域名服务
网络工具
  • 翼云加速
灾备迁移
  • 云管家2.0
  • 翼备份
资源管理
  • 全栈混合云敏捷版(软件)
  • 全栈混合云敏捷版(一体机)
行业应用
  • 翼电子教室
  • 翼智慧显示一体化解决方案

合作伙伴

天翼云携手合作伙伴,共创云上生态,合作共赢
天翼云生态合作中心
  • 天翼云生态合作中心
天翼云渠道合作伙伴
  • 天翼云代理渠道合作伙伴
天翼云服务合作伙伴
  • 天翼云集成商交付能力认证
天翼云应用合作伙伴
  • 天翼云云市场合作伙伴
  • 天翼云甄选商城合作伙伴
天翼云技术合作伙伴
  • 天翼云OpenAPI中心
  • 天翼云EasyCoding平台
天翼云培训认证
  • 天翼云学堂
  • 天翼云市场商学院
天翼云合作计划
  • 云汇计划
天翼云东升计划
  • 适配中心
  • 东升计划
  • 适配互认证

开发者

开发者相关功能入口汇聚
技术社区
  • 专栏文章
  • 互动问答
  • 技术视频
资源与工具
  • OpenAPI中心
开放能力
  • EasyCoding敏捷开发平台
培训与认证
  • 天翼云学堂
  • 天翼云认证
魔乐社区
  • 魔乐社区

支持与服务

为您提供全方位支持与服务,全流程技术保障,助您轻松上云,安全无忧
文档与工具
  • 文档中心
  • 新手上云
  • 自助服务
  • OpenAPI中心
定价
  • 价格计算器
  • 定价策略
基础服务
  • 售前咨询
  • 在线支持
  • 在线支持
  • 工单服务
  • 建议与反馈
  • 用户体验官
  • 服务保障
  • 客户公告
  • 会员中心
增值服务
  • 红心服务
  • 首保服务
  • 客户支持计划
  • 专家技术服务
  • 备案管家

了解天翼云

天翼云秉承央企使命,致力于成为数字经济主力军,投身科技强国伟大事业,为用户提供安全、普惠云服务
品牌介绍
  • 关于天翼云
  • 智算云
  • 天翼云4.0
  • 新闻资讯
  • 天翼云APP
基础设施
  • 全球基础设施
  • 信任中心
最佳实践
  • 精选案例
  • 超级探访
  • 云杂志
  • 分析师和白皮书
  • 天翼云·创新直播间
市场活动
  • 2025智能云生态大会
  • 2024智算云生态大会
  • 2023云生态大会
  • 2022云生态大会
  • 天翼云中国行
天翼云
  • 活动
  • 智算服务
  • 产品
  • 解决方案
  • 应用商城
  • 合作伙伴
  • 开发者
  • 支持与服务
  • 了解天翼云
      • 文档
      • 控制中心
      • 备案
      • 管理中心
      文档中心

      密钥管理

      密钥管理

        • 最新动态
        • 产品公告
        • 【产品公告】 关于天翼云密钥管理包周期版本上线的通知
        • 【产品公告】 关于天翼云密钥管理按需版本停止新购的通知
        • 【产品公告】天翼云密钥管理KMS产品旧版openapi下线
        • 产品简介
        • 产品定义
        • 产品优势
        • 功能特性
        • 相关术语解释
        • 应用场景
        • 产品规格
        • 与其他云服务关系
        • 计费说明
        • 计费概述
        • 计费项
        • 续订说明
        • 退订说明
        • 到期与欠费说明
        • 快速入门
        • 注册天翼云账号
        • 开通密钥管理服务
        • 快速接入服务
        • 用户指南
        • 概览
        • 密钥管理
        • 密钥管理概述
        • 创建密钥
        • 导入密钥材料
        • 查看密钥
        • 别名管理
        • 启用禁用密钥
        • 密钥版本管理
        • 删除密钥
        • 对称密钥运算
        • 对称加密概述
        • 在线加密
        • 信封加密
        • 非对称密钥运算
        • 非对称密钥概述
        • 签名验签
        • 非对称密钥加解密
        • 应用接入点
        • 应用接入点概述
        • 管理应用接入点
        • 证书管理
        • 证书管理概述
        • 创建证书
        • 导入密钥和证书
        • 禁用、吊销或删除证书
        • 云产品服务端加密
        • 云产品集成KMS加密概述
        • 支持KMS服务端加密的云产品
        • 权限管理
        • API参考
        • 调用前必知
        • 终端节点
        • 状态码
        • 如何调用API
        • 构造请求
        • 认证鉴权
        • Python调用示例
        • API
        • 密钥管理接口
        • 密钥生命周期管理
        • 创建用户主密钥
        • 启用密钥
        • 禁用密钥
        • 计划删除密钥
        • 取消计划删除密钥
        • 更新密钥描述
        • 查看密钥详情
        • 批量查询密钥信息
        • 密钥删除保护
        • 取消密钥删除保护
        • 别名管理
        • 创建别名
        • 更新别名
        • 删除别名
        • 列出账号在某地域下的所有别名
        • 列出与指定用户主密钥绑定的别名
        • 外部密钥导入
        • 获取导入主密钥材料参数
        • 导入主密钥材料
        • 删除主密钥材料
        • 密钥版本管理
        • 查看密钥版本
        • 列出主密钥的所有密钥版本
        • 更新轮转策略
        • 创建密钥版本
        • 密码运算
        • 在线加密
        • 产生数据密钥(信封加密)
        • 产生无明文返回值的数据密钥(信封加密)
        • 导出数据密钥
        • 产生并导出数据密钥
        • 对称密钥解密
        • 转加密
        • 产生数字签名
        • 验证数字签名
        • 非对称密钥加密
        • 非对称密钥解密
        • 获取非对称密钥公钥
        • 计算hmacSM3
        • 证书管理接口
        • 查询证书列表
        • 创建证书csr
        • 导入证书
        • 查询证书信息
        • 更新证书状态
        • 获取证书
        • 导出证书私钥
        • 删除证书
        • 证书私钥签名
        • 证书公钥验签
        • 证书公钥加密
        • 证书私钥解密
        • 生成随机数
        • 导入pkcs12格式证书
        • 查询UK证书列表
        • 查询UKey证书详情
        • 导入UK证书
        • 删除UK证书
        • 修改UK证书状态
        • 应用接入点管理接口
        • 查询接入点的接口权限列表
        • 查询应用点接入列表
        • 查询接入点的终端节点白名单
        • 查询资源权限列表
        • 查询VPC列表
        • 查询子网列表
        • 查询租户ak列表信息
        • 创建应用接入点
        • 创建租户凭证aksk
        • 关闭接入点权限控制
        • 获取接入点的资源权限详情
        • 检查接入点是否开启权限判断
        • 接口权限变更
        • 禁用租户ak
        • 启用租户ak
        • 删除应用接入点
        • 删除租户ak
        • 添加终端节点白名单
        • 资源权限变更
        • 租户接口权限详情
        • 标签管理接口
        • 查询账号标签列表
        • 修改标签接口
        • 删除标签接口
        • 新增标签接口
        • 资源绑定标签接口
        • 资源解绑标签接口
        • SDK参考
        • 概览
        • 服务SDK
        • 客户端加密SDK(基础版)
        • 安装与配置
        • 核心类与方法
        • 加密算法说明
        • 最佳实践
        • 使用KMS用户主密钥在线加解密数据
        • 使用信封加密技术实现本地大规模数据加解密
        • 云服务通过KMS实现服务端加密
        • 通过KMS实现签名验签
        • 通过密钥轮转加强密钥使用的安全性
        • 视频专区
        • 常见问题
        • 计费类
        • 操作类
        • 管理类
        • 文档下载
        • 用户手册
        • 相关协议
        • 天翼云密钥管理服务协议
        • 天翼云密钥管理服务等级协议
          无相关产品

          本页目录

          帮助中心密钥管理API参考调用前必知状态码
          状态码
          更新时间 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 更新密钥轮转策略失败
          文档反馈

          建议您登录后反馈,可在建议与反馈里查看问题处理进度

          鼠标选中文档,精准反馈问题

          选中存在疑惑的内容,即可快速反馈问题,我们会跟进处理

          知道了

          上一篇 :  终端节点
          下一篇 :  如何调用API
          搜索 关闭
          ©2025 天翼云科技有限公司版权所有 增值电信业务经营许可证A2.B1.B2-20090001
          公司地址:北京市东城区青龙胡同甲1号、3号2幢2层205-32室
          备案 京公网安备11010802043424号 京ICP备 2021034386号
          ©2025天翼云科技有限公司版权所有
          京ICP备 2021034386号
          备案 京公网安备11010802043424号
          增值电信业务经营许可证A2.B1.B2-20090001
          用户协议 隐私政策 法律声明