Lists all secrets.

GET {{baseUrl}}/secrets?compartmentId={{compartment_ocid}}&sortBy=NAME&sortOrder=DESC

Lists all secrets in the specified vault and compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment.
namestringThe secret name.
limitstringThe maximum number of items to return in a paginated "List" call.
pagestringThe value of the opc-next-page response header
from the previous "List" call.
sortBystringThe field to sort by. You can specify only one sort order. The default order for
TIMECREATED is descending. The default order for NAME is ascending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).
vaultIdstringThe OCID of the vault.
lifecycleStatestringA filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique identifier for the request. If provided, the returned request ID
will include this value. Otherwise, a random request ID will be
generated by the service.
Acceptstring

RESPONSES

status: OK

[{"id":"\u003cstring\u003e","vaultId":"\u003cstring\u003e","secretName":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","lifecycleState":"UPDATING","timeCreated":"\u003cdateTime\u003e","definedTags":{"tempor9f2":{"fugiat_c8":{},"occaecat_7a":{}}},"description":"\u003cstring\u003e","freeformTags":{"veniam_f4":"\u003cstring\u003e","ipsum1b_":"\u003cstring\u003e"},"keyId":"\u003cstring\u003e","lifecycleDetails":"\u003cstring\u003e","timeOfCurrentVersionExpiry":"\u003cdateTime\u003e","timeOfDeletion":"\u003cdateTime\u003e"},{"id":"\u003cstring\u003e","vaultId":"\u003cstring\u003e","secretName":"\u003cstring\u003e","compartmentId":"\u003cstring\u003e","lifecycleState":"CANCELLING_DELETION","timeCreated":"\u003cdateTime\u003e","definedTags":{"minim9":{"dolor9c7":{},"officia20e":{},"nostrud5":{},"deserunt_4":{}},"et7c":{"ullamco_b":{},"sit89b":{}}},"description":"\u003cstring\u003e","freeformTags":{"esse52a":"\u003cstring\u003e","aliquip_c9_":"\u003cstring\u003e"},"keyId":"\u003cstring\u003e","lifecycleDetails":"\u003cstring\u003e","timeOfCurrentVersionExpiry":"\u003cdateTime\u003e","timeOfDeletion":"\u003cdateTime\u003e"}]