Update a Certificate

post

/ic/api/integration/v1/certificates/{id}

Updates properties or file of the certificate with the specified ID.

Request

Path Parameters
  • Certificate composite identifier. The ID consists of the installedType, type, category and the name separated by the | (vertical line) character. Format: installedType%7Ctype%7Ccategory%7Cname. Example: USER%7CPGP%7CPUBLIC%7CTESTPGPPUBLICCERT. When using cURL, substitute the %7C code for the vertical line.
Query Parameters
Header Parameters
Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

204 Response

Successful operation

404 Response

Certificate not found

500 Response

Server error
Back to Top

Examples

The following example shows how to update properties or file of the certificate by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Update PGP Public certificate TESTPGPPUBLICCERT

The id is in the form: installedType%7Ctype%7Ccategory%7Cname. The %7C is the encoded | (vertical line).

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "file=@newpublic.asc" -F "certificate=@certificate.json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates/USER%7CPGP%7CPUBLIC%7CTESTPGPPUBLICCERT?integrationInstance=service-instance

The following example shows the contents of the certificate.json file listed in the cURL command.

{"id":"USER|PGP|PUBLIC|TESTPGPPUBLICCERT","name":"TESTPGPPUBLICCERT","keystore":"PUBLIC","type":"PGP","asciiArmored":false,"cipherAlgorithm":"CAST5"}
Back to Top