Retrieve Certificates
/ic/api/integration/v1/certificates
Request
-
expand: string
Includes additional details about the certificates in the response.
-
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.
-
limit: integer(int32)
Use with the offset parameter for paginating through the returned results. The limit is the maximum number of items to return at one time. For example, offset=3&limit=16 indicates to list certificates starting at the 4th item, and the list will contain 16 items.
-
offset: integer(int32)
Use with the limit parameter for paginating through the returned results. The offset is the starting point from which to return records. For example, offset=3&limit=16 indicates to list certificates starting at the 4th item, and the list will contain 16 items.
-
orderBy: string
Lists certificates ordered by name, or expiry.
Valid values:
- name: Order certificates by certificate name. Example: orderBy=name.
- expiry: Order certificates by later expiry date. Example: orderBy=expiry.
- expiry:asc: Order certificates by sooner expiry date. Example: orderBy=expiry:asc
-
q: string
Filters certificates by name, status, and type.
Valid parameters:
- name: Name of the certificate. Supports exact matches or contains. For example:
- To retrieve certificates that are an exact match in the certificate name, specify:
q={name:'My Certificate Name'}
. - To retrieve all certificates that contain the specified string in the certificate name, specify:
q={name: /Oracle/}
- To retrieve certificates that are an exact match in the certificate name, specify:
- status: Status of the certificate. Valid values: CONFIGURED, INPROGRESS. INPROGRESS is displayed as Draft in the graphical user interface.
For example, to retrieve all certificates that contain PGP and have the status configured, specify:
{name : /PGP/, status : 'CONFIGURED'}
- type: Type of the certificate.
Valid values: DIGITALSIGNATURE, PGP, SAML, SIGNKEY, X509.
- name: Name of the certificate. Supports exact matches or contains. For example:
-
return: string
API returns a minimal or full view of the response.
There's no request body for this operation.
Back to TopResponse
- application/json; charset=utf-8, application/vnd.oracle.resource+json;type=collection
200 Response
object
-
hasMore: boolean
Flag to Check if More Records Exists
-
items: array
items
List of Certificates
-
limit: integer
(int32)
Limit of Records to be Displayed
-
totalResults: integer
(int32)
Total Results
object
-
asciiArmored: boolean
ASCII-Armor encryption flag. Valid only for type - PGP and category - PUBLIC
-
cipherAlgorithm: string
Cipher algorithm. Valid only for type - PGP and category - PUBLIC
-
content: array
content
-
created: string
(date-time)
Certificate created date
-
createdBy: string
Certificate created by
-
description: string
Certificate description
-
expires: string
(date-time)
Certificate expiry date
-
hash: string
-
installedType: string
Certificate installed by. Ex - USER
-
issued: string
(date-time)
Certificate issued date
-
keyPasswords: string
Key password(s). Valid only for type - X509 and category - IDENTITY
-
keystore: string
Keystore
-
keyStoreDescription: string
Keystore description
-
keystorePassword: string
Keystore password. Valid only for type - X509 and category - IDENTITY
-
lastUpdated: string
(date-time)
Certificate updated date
-
lastUpdatedBy: string
Certificate updated by
-
metaData: object
metaData
Additional Properties Allowed: additionalProperties
-
name: string
Certificate alias name
-
passPhrase: string
Private key password. Valid only for type - PGP & SIGNKEY and category - PRIVATE
-
secretOCID: string
-
status: string
Certificate status. Ex. - CONFIGURED or INPROGRESS
-
type: string
Certificate type. Valid values - DIGITALSIGNATURE, PGP, SAML, SIGNKEY & X509
-
typeDescription: string
Certificate type description
400 Response
500 Response
Examples
The following example shows how to get details of certificates by submitting a GET 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: Get certificates that contain PGP and have the status CONFIGURED
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" --data-urlencode "q={name: /PGP/, status: 'CONFIGURED'}" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance
Example: Paginate through returned certificates
Pagination is done with limit and offset. In this example, we list certificates starting at the fourth item. The list contains 16 items.
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" -d "offset=3&limit=16" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance
Example: Get certificates ordered by the expiry date in descending order
curl -G -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" -d "orderBy=expiry" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance
Example: Get all certificates
curl -X GET -H 'Authorization: Bearer access_token' -H "Accept:application/json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/certificates?integrationInstance=service-instance