Use the Delete method to delete a credential from the domain credential store.
The following table summarizes the DELETE request parameters.
Name | Description | Type |
---|---|---|
"key" |
Name of the key for the credential that you want to delete. | Query |
"map" |
Name of the map (folder) for the credential that you want to delete. | Query |
Media Types: | application/json |
The response body returns the status of the delete operation, including:
Attribute | Description |
---|---|
"ERROR_CODE" |
If "STATUS" is set to "Failed" , provides the error code. |
"ERROR_MSG" |
If "STATUS" is set to "Failed" , provides the contents of the error message. |
"STATUS" |
Status of operation. For example, "Succeeded" or "Failed" . |
The following example shows how to delete a credential from the credential store by submitting a DELETE request on the REST resource using cURL.
curl -i -X DELETE -u username:password http://myhost:7001/idaas/platform/admin/v1/credential?"key=mykey&map=oracle.wsm.security"
The following shows an example of the response header. For more about the HTTP status codes, see "HTTP Status Codes for HTTP Methods."
HTTP/1.1 200 OK
The following shows an example of the response body in JSON format.
{ "STATUS": "Succeeded" }