导入根证书
命令格式
操作类型:POST
URL:https://{ip}:{port}/certmanager/v1/certificates/import
请求消息体:
{
    "certName": certname,
    "cert": cert
}
请求参数
参数  | 
类型  | 
参数说明  | 
取值要求  | 
|---|---|---|---|
certName  | 
字符串  | 
导入证书的用途  | 
取值为以下参数之一。 
  | 
cert  | 
字符串  | 
base64编码格式的PEM根证书  | 
  | 
使用样例
请求样例:
POST https://10.10.10.10:30035/certmanager/v1/certificates/import
请求消息体:
{
    "certName": "software",
    "cert": "xxxxxxxxxxxxxxxxxxx..."
}
响应样例:
{
    "status": "00000000",
    "msg": "import certificate success"
}
响应状态码:200
输出说明
参数  | 
类型  | 
参数说明  | 
|---|---|---|
status  | 
字符串  | 
错误码  | 
msg  | 
字符串  | 
描述信息  | 
父主题: 配置接口
