Gets a list of all Projects in a compartment.
GET {{baseUrl}}/projects?compartmentId={{compartment_ocid}}&lifecycleState=ACTIVE&limit=10&sortOrder=ASC&sortBy=timeCreated
Returns a list of Projects.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The ID of the compartment in which to list resources. | |
lifecycleState | string | <b>Filter</b> results by the specified lifecycle state. Must be a valid | |
state for the resource type. | |||
displayName | string | A filter to return only resources that match the entire display name given. | |
limit | number | The maximum number of items to return. | |
page | string | 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'. | |
sortBy | string | Specifies the field to sort by. Accepts only one field. | |
By default, when you sort by timeCreated , the results are shown | |||
in descending order. When you sort by displayName , the results are | |||
shown in ascending order. Sort order for the displayName field is case sensitive. | |||
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
{"items":[{"id":"Lorem sit eu Excepteur","compartmentId":"deserunt Ut quis proident laboris","displayName":"cillum deserunt laboris reprehenderit","timeCreated":"1991-09-03T10:26:09.125Z","lifecycleState":"Ut do quis","definedTags":{},"description":"nisi sint","freeformTags":{},"systemTags":{},"timeUpdated":"1984-05-22T13:09:39.647Z"},{"id":"mollit labore ex in","compartmentId":"sunt id Duis eu exercitation","displayName":"magna ipsum dolor","timeCreated":"1941-12-22T14:10:16.579Z","lifecycleState":"anim Excepteur","definedTags":{},"description":"aute","freeformTags":{},"systemTags":{},"timeUpdated":"2017-08-29T08:22:24.133Z"}]}