Upload a Certificate

post

/ic/api/integration/v1/certificates

Uploads a certificate. If you are using cURL, use the -F option to specify the file to import. The request must contain the following attributes added with the -F option: name, type, category and file. Description is optional.

Request

Query Parameters
Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

204 Response

Successful operation

409 Response

Certificate already exists

500 Response

Server error
Back to Top

Examples

The following example shows how to upload a 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.

The request must contain the following attributes specified with the -F option: name, type, category, and file. Description is optional.

Example: Upload a PGP Public certificate

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "name=TESTPGPPUBLICCERT" -F "description=Type PGP Category PUBLIC Certificate" -F "type=PGP" -F "category=PUBLIC" -F "file=@public.asc" -F "ascii=true" -F "cipher=CAST5" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance

Example: Upload a Draft PGP Public certificate

Note:

Without file attributes, you can upload PGP certificates in Draft state.
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "name=TESTPGPPUBLICCERT" -F "description=Type PGP Category PUBLIC Certificate" -F "type=PGP" -F "category=PUBLIC" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance

Example: Upload a SAML certificate

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "name=TESTSAMLCERT" -F "description=Type SAML Category OWSM Certificate" -F "type=SAML" -F "category=OWSM" -F "file=@saml.crt" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance
Back to Top