更新证书

基本信息

该接口主要用于更新证书

请求路径

  1. PUT /openapi/v1/teams/{team_id}/certificates/{certificate_id}

Body 请求体示例

  1. {
  2. "alias": "string",
  3. "private_key": "string",
  4. "certificate": "string",
  5. "certificate_type": "string"
  6. }

请求参数

名称位置类型必选中文名说明
team_idpathstringnone
certificate_idpathstringnone
bodybodyTeamCertificatesCnone

返回结果

状态码状态码含义说明数据模型
200OK成功TeamCertificatesR

模型

TeamCertificatesC

  1. {
  2. "alias": "string",
  3. "private_key": "string",
  4. "certificate": "string",
  5. "certificate_type": "string"
  6. }

属性

名称类型必选约束中文名说明
aliasstringtruenoneAlias证书名称
private_keystringtruenonePrivate key证书
certificatestringtruenoneCertificate证书key
certificate_typestringtruenoneCertificate type证书类型

TeamCertificatesR

  1. {
  2. "alias": "string",
  3. "private_key": "string",
  4. "certificate": "string",
  5. "certificate_type": "string",
  6. "id": 0
  7. }

属性

名称类型必选约束中文名说明
aliasstringtruenoneAlias证书名称
private_keystringtruenonePrivate key证书
certificatestringtruenoneCertificate证书key
certificate_typestringtruenoneCertificate type证书类型
idintegertruenoneIdid