Gets a list of all projects in a compartment
GET {{baseUrl}}/projects?compartmentId={{compartment_ocid}}&limit=10&sortOrder=ASC&sortBy=timeCreated
Returns a list of projects.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | The ID of the compartment in which to list resources. | |
lifecycleState | string | Filter to match projects with the given lifecycleState. | |
displayName | string | A filter to return only resources that match the entire display name given. | |
id | string | Filter to find the project with the given identifier. | |
limit | number | The maximum number of items to return. | |
page | string | The position at which to start retrieving results. This must come from the opc-next-page header field of a previous response. | |
sortOrder | string | The sort order to use, either 'ASC' or 'DESC'. | |
sortBy | string | The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. | |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
RESPONSES
status: OK
{"items":[{"compartmentId":"dolore","id":"est fugiat voluptate","lifecycleState":"exercitation cillum mollit","timeCreated":"1965-11-30T06:17:18.038Z","definedTags":{"nisiaf":{"eaab":{}}},"displayName":"laborum officia in","freeformTags":{"sit8f8":"commodo sint Lorem","in_7a7":"nisi do cupidatat ex","nisie":"culpa non irure"},"lifecycleDetails":"proident ut","systemTags":{"laborum_9":{"non_5bb":{}},"cillum8a":{"ipsum1d":{}},"dolor7":{"eu9a":{},"officia_d":{}}},"timeUpdated":"1982-07-29T06:50:51.020Z"},{"compartmentId":"re","id":"sed anim nostrud sit","lifecycleState":"velit ex sed","timeCreated":"2020-02-21T23:40:22.463Z","definedTags":{"consequat_9":{"deserunt_a":{}},"Lorem_a68":{"reprehenderit_91":{},"qui1":{},"enim7b":{},"amet50":{},"nullac55":{}},"laboris_b57":{"nulla3":{},"suntba":{},"nostrud9":{}},"fugiat_e":{"ex2b":{},"reprehenderite_1":{}}},"displayName":"officia","freeformTags":{"dolore_1b":"mollit est consequat Excepteur o","consectetur18":"consequat aliqua","sitd":"pariatur aute commodo nisi"},"lifecycleDetails":"dolore in tempor ut cupidatat","systemTags":{"nisi4f":{"pariatura5":{},"ut_e":{}},"dolor_7ae":{"Excepteur_7":{},"adfc":{},"dolor_0d2":{}},"sint_65":{"magnaa5b":{}}},"timeUpdated":"1963-03-27T11:03:50.584Z"}]}