ListProjects
GET {{baseUrl}}/projects?compartmentId={{compartment_ocid}}&id=cillum consectetur labore dolor&displayName=cillum consectetur labore dolor&lifecycleState=ACTIVE&createdBy=cillum consectetur labore dolor&limit=10&sortOrder=ASC&sortBy=timeCreated
Lists projects in the specified compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) <b>Filter</b> results by the OCID of the compartment. | |
id | string | <b>Filter</b> results by OCID. Must be an OCID of the correct type for the resource type. | |
displayName | string | <b>Filter</b> results by its user-friendly name. | |
lifecycleState | string | <b>Filter</b> results by the specified lifecycle state. Must be a valid | |
state for the resource type. | |||
createdBy | string | <b>Filter</b> results by the OCID of the user who created the resource. | |
limit | number | For list pagination. The maximum number of results per page, | |
or items to return in a paginated "List" call. | |||
1 is the minimum, 1000 is the maximum. | |||
See List Pagination. |
Example: 500
|
| page
| string | | For list pagination. The value of the opc-next-page
response
header from the previous "List" call.
See List Pagination.
|
| sortOrder
| string | | Specifies sort order to use, either ASC
(ascending) or DESC
(descending).
|
| 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 | Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. | |
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
[{"id":"sunt non","timeCreated":"1959-08-15T05:07:21.869Z","displayName":"laboris occaecat","createdBy":"id Ut eiusmod cupidatat tempor","compartmentId":"sint sit Duis do","lifecycleState":"ACTIVE","definedTags":{},"description":"ex anim","freeformTags":{}},{"id":"dolore amet","timeCreated":"1996-12-15T06:12:41.260Z","displayName":"elit et minim Lorem","createdBy":"nisi id et in amet","compartmentId":"elit consectetur et","lifecycleState":"ACTIVE","definedTags":{},"description":"proident exercitation ullamco mollit","freeformTags":{}}]