Deleting a certificate¶
Delete a certificate from IBM Spectrum Protect Plus.
Method and URI¶
To delete a certificate, use a DELETE method with a URI:
DELETE https://{hostname|IPv4}/api/security/certificate/{certificateId}
Tip
To get the {certificateId}
based on the certificate name, follow the instructions in Getting a {certificateId}.
Parameters¶
None.
Data¶
None.
Example¶
Assume that you have a certificate: BlueMachines - Cert S3 Compatible, and you want to delete the certificate. Run the following command:
certificate_id = "1288"
requests.delete('https://' + spp_ipv4 + '/api/security/certificate/'
+ certificate_id,
headers={...}, verify=...)
After you run the Python snippet, ensure that you get a response with the HTTP status of 204 (No Content) and that you no longer see this certificate.