Gets a list of all Deployments in a compartment
GET {{baseUrl}}/deployments?compartmentId={{compartment_ocid}}&lifecycleState=&limit=100&page=&sortOrder=ASC&sortBy=timeCreated
Returns a list of deployments.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The ocid of the compartment in which to list resources. | |
gatewayId | null | Filter deployments by the gateway ocid. | |
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: SUCCEEDED
|
| 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":[{"endpoint":"mollit in","pathPrefix":"consectetur pariatur velit officia","lifecycleDetails":"reprehenderit consequat","lifecycleState":"sunt nisi c"},{"endpoint":"laborum reprehe","pathPrefix":"cillum officia ut veniam aliq","lifecycleDetails":"au","lifecycleState":"eu ut"}]}