Lists all secrets.
GET {{baseUrl}}/secrets?compartmentId={{compartment_ocid}}&sortBy=NAME&sortOrder=DESC
Lists all secrets in the specified vault and compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
name | string | The secret name. | |
limit | string | The maximum number of items to return in a paginated "List" call. | |
page | string | The value of the opc-next-page response header | |
from the previous "List" call. | |||
sortBy | string | The 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. | |||
sortOrder | string | The sort order to use, either ascending (ASC ) or descending (DESC ). | |
vaultId | string | The OCID of the vault. | |
lifecycleState | string | A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive. | |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique 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. | |||
Accept | string |
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"}]