ListRepositories
GET {{baseUrl}}/repositories?compartmentId={{tenancy_ocid}}&limit=200&sortBy=TIMECREATED&sortOrder=DESC
Lists repositories in the specified compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
id | string | A filter to return the resources for the specified OCID. | |
displayName | string | A filter to return only resources that match the given display name exactly. | |
isImmutable | boolean | A filter to return resources that match the isImmutable value. | |
lifecycleState | string | A filter to return only resources that match the given lifecycle state name exactly. | |
limit | number | For list pagination. The maximum number of results per page, or items to return in a paginated | |
"List" call. For important details about how pagination works, see | |||
List Pagination. |
Example: 50
|
| page
| string | | For list pagination. The value of the opc-next-page
response header from the previous "List"
call. For important details about how pagination works, see
List Pagination.
|
| 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.
Note: In general, some "List" operations (for example, ListInstances
) let you
optionally filter by availability domain if the scope of the resource type is within a
single availability domain. If you call one of these "List" operations without specifying
an availability domain, the resources are grouped by availability domain, then sorted.
|
| sortOrder
| string | | The sort order to use, either ascending (ASC
) or descending (DESC
). The DISPLAYNAME sort order
is case sensitive.
|
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique identifier for the request. | |
If you need to contact Oracle about a particular request, please provide the request ID. | |||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
{"items":[{"id":"ex minim est nisi","displayName":"tempor cupidatat","compartmentId":"ullamco","repositoryType":"Ut pariatur","isImmutable":true,"lifecycleState":"Lorem ex","freeformTags":{},"definedTags":{},"timeCreated":"1996-07-16T13:26:35.710Z","description":"sint consequat do id"},{"id":"quis consequat in","displayName":"mollit aute exercitation consectetur","compartmentId":"eu cupidatat est","repositoryType":"ul","isImmutable":true,"lifecycleState":"dolore mollit nulla incididunt","freeformTags":{},"definedTags":{},"timeCreated":"1964-08-06T10:31:22.771Z","description":"cupidatat ea dolor"}]}