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

KeyDatatypeRequiredDescription
compartmentIdstring(Required) The ID of the compartment in which to list resources.
lifecycleStatestring<b>Filter</b> results by the specified lifecycle state. Must be a valid
state for the resource type.
displayNamestringA filter to return only resources that match the entire display name given.
limitnumberThe maximum number of items to return.
pagestringThe page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
sortOrderstringThe sort order to use, either 'asc' or 'desc'.
sortBystringSpecifies 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

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;id&quot;:&quot;Lorem sit eu Excepteur&quot;,&quot;compartmentId&quot;:&quot;deserunt Ut quis proident laboris&quot;,&quot;displayName&quot;:&quot;cillum deserunt laboris reprehenderit&quot;,&quot;timeCreated&quot;:&quot;1991-09-03T10:26:09.125Z&quot;,&quot;lifecycleState&quot;:&quot;Ut do quis&quot;,&quot;definedTags&quot;:{},&quot;description&quot;:&quot;nisi sint&quot;,&quot;freeformTags&quot;:{},&quot;systemTags&quot;:{},&quot;timeUpdated&quot;:&quot;1984-05-22T13:09:39.647Z&quot;},{&quot;id&quot;:&quot;mollit labore ex in&quot;,&quot;compartmentId&quot;:&quot;sunt id Duis eu exercitation&quot;,&quot;displayName&quot;:&quot;magna ipsum dolor&quot;,&quot;timeCreated&quot;:&quot;1941-12-22T14:10:16.579Z&quot;,&quot;lifecycleState&quot;:&quot;anim Excepteur&quot;,&quot;definedTags&quot;:{},&quot;description&quot;:&quot;aute&quot;,&quot;freeformTags&quot;:{},&quot;systemTags&quot;:{},&quot;timeUpdated&quot;:&quot;2017-08-29T08:22:24.133Z&quot;}]}