Update a Certificate
post
/ic/api/integration/v1/certificates/{id}
Updates properties or file of the certificate with the specified ID.
Request
Path Parameters
-
id(required): string
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
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
Header Parameters
-
X-HTTP-Method-Override(required):
HTTP Method override in the header
Supported Media Types
- multipart/form-data
Root Schema : schema
Type:
Show Source
object
-
certificate: string
(binary)
Certificate properties json file - certificate.json
-
file: string
(binary)
Certificate file
Response
204 Response
Successful operation
404 Response
Certificate not found
500 Response
Server error
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"}