Lists Named Credential.

GET {{baseUrl}}/namedCredentials?compartmentId=<string>&associatedResource=<string>&type=ORACLE_DB&scope=RESOURCE&name=<string>&page=<string>&limit=10&sortBy=TIMECREATED&sortOrder=ASC

Gets a single named credential specified by the name or all the named credentials in a specific compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The OCID of the compartment.
associatedResourcestringThe resource associated to the named credential.
typestringThe type of database that is associated to the named credential.
scopestringThe scope of named credential.
namestringThe name of the named credential.
pagestringThe page token representing the page from where the next set of paginated results
are retrieved. This is usually retrieved from a previous list call.
limitnumberThe maximum number of records returned in the paginated response.
sortBystringThe field to sort information by. Only one sortOrder can be used. The default sort order
for ‘TIMECREATED’ is descending and the default sort order for ‘NAME’ is ascending.
The ‘NAME’ sort order is case-sensitive.
sortOrderstringThe option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;lifecycleState&quot;:&quot;FAILED&quot;,&quot;lifecycleDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;ORACLE_DB&quot;,&quot;scope&quot;:&quot;RESOURCE&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeUpdated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;definedTags&quot;:{&quot;veniam_683&quot;:{&quot;exc5&quot;:{},&quot;tempor_a&quot;:{},&quot;labore_fff&quot;:{}},&quot;officia_e41&quot;:{&quot;do_667&quot;:{},&quot;in9&quot;:{},&quot;minim993&quot;:{}}},&quot;freeformTags&quot;:{&quot;aute543&quot;:&quot;\u003cstring\u003e&quot;,&quot;quis__&quot;:&quot;\u003cstring\u003e&quot;,&quot;in_b&quot;:&quot;\u003cstring\u003e&quot;,&quot;velit06&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;compartmentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;lifecycleState&quot;:&quot;CREATING&quot;,&quot;lifecycleDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;ORACLE_DB&quot;,&quot;scope&quot;:&quot;RESOURCE&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;timeUpdated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;definedTags&quot;:{&quot;sit5b&quot;:{&quot;dolore_e&quot;:{},&quot;dolore_3be&quot;:{},&quot;auteb&quot;:{}},&quot;nostrud_e&quot;:{&quot;in9a&quot;:{},&quot;dolore_8&quot;:{}}},&quot;freeformTags&quot;:{&quot;eu_4a9&quot;:&quot;\u003cstring\u003e&quot;,&quot;nulla31_&quot;:&quot;\u003cstring\u003e&quot;,&quot;occaecat_c5&quot;:&quot;\u003cstring\u003e&quot;}}]}