Gets a list of all APIs in a compartment
GET {{baseUrl}}/apis?compartmentId={{compartment_ocid}}&lifecycleState=&limit=100&page=&sortOrder=ASC&sortBy=timeCreated
Returns a list of APIs.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The ocid of the compartment in which to list resources. | |
displayName | null | A user-friendly name. Does not have to be unique, and it's changeable. |
Example: My new resource
|
| lifecycleState
| null | | A filter to return only resources that match the given lifecycle state.
Example: ACTIVE
|
| limit
| number | | The maximum number of items to return. |
| page
| null | | The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
| sortOrder
| string | | The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value. |
| sortBy
| string | | The field to sort by. You can provide one sort order (sortOrder
).
Default order for timeCreated
is descending. Default order for
displayName
is ascending. The displayName
sort order is case
sensitive.
|
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | null | The client request id for tracing. | |
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
{"items":[{"compartmentId":"ut dolor minim fugiat in","id":"culpa laborum","definedTags":{},"displayName":"tempor","freeformTags":{},"lifecycleDetails":"Ut eu occaecat esse id","lifecycleState":"FAILED","specificationType":"eiusmod fugiat dolor velit esse","timeCreated":"1974-08-11T02:28:58.820Z","timeUpdated":"1982-11-11T13:44:51.181Z","validationResults":[{"name":"et velit","result":"ERROR"},{"name":"laboris nisi","result":"WARNING"}]},{"compartmentId":"aliqua amet anim labore","id":"reprehenderit","definedTags":{},"displayName":"proident in nulla veniam","freeformTags":{},"lifecycleDetails":"laborum aute ex","lifecycleState":"ACTIVE","specificationType":"dolor laborum","timeCreated":"1963-03-10T18:28:38.159Z","timeUpdated":"1983-02-27T19:41:30.477Z","validationResults":[{"name":"laboris cupidatat","result":"FAILED"},{"name":"sunt aliqua magna","result":"FAILED"}]}]}