Delete a KeyPair based on the Alias Name

delete

/oam/services/rest/ssa/api/v1/keypairadmin/keypair

A KeyPair that is currently being made use by an Oauth Identity Domain can never be deleted and a KeyPair under rollover duration cannot be deleted.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Sucessfully deleted entity - KeyPair, detail - Successfully deleted NameOfKeyPair

400 Response

Delete failed for KeyPair NameOfKeyPair. NameOfKeyPair not found
Back to Top

Examples

cURL Sample Request

curl--location--request DELETE 'https://<admin-host>:<admin-port>/oam/services/rest/ssa/api/v1/keypairadmin/keypair?aliasName=NewDomain1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dGVzdDp0ZXN0=' \

cURL Sample Response

Sucessfully deleted entity - KeyPair, detail - Successfully deleted NewDomain1
Back to Top