Deleting the Root Certificate

Function

Deletes the root certificates imported to a third-party software repository and image repository.

Syntax

Operation type: POST

URL: https://{ip}:{port}/certmanager/v1/certificates/delete-cert

Request message body:
{
    "type": type
}

Request Parameters

Table 1 Request parameter

Parameter

Mandatory/Optional

Description

Value

type

Mandatory

Certificate type

The value can be software or image.

  • software: root certificate of a software repository
  • image: root certificate of an image repository

Usage Example

Request:

POST https://10.10.10.10:30035/certmanager/v1/certificates/delete-cert

Request message body:

{
    "type": "software"
}
Response:
{
    "status": "00000000",
    "msg": "delete ca file success"
}

Response status code: 200

Output Description

Table 2 Operation output description

Parameter

Type

Description

status

String

Error code

msg

String

Description