Lists templates according to the specified filter.
GET {{baseUrl}}/templates?compartmentId={{compartment_ocid}}&templateCategoryId=ut consectetur&templateId=ut consectetur&displayName=nostrud aliqua&sortBy=TIMECREATED&sortOrder=DESC&limit=328&page=qui cillum anim magna
Lists templates according to the specified filter.
The attributes compartmentId and templateCategoryId are required unless templateId is specified.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
compartmentId | string | A filter to return only resources that exist in the compartment, identified by OCID. | |
templateCategoryId | string | Unique identifier of the template category. | |
Possible values are 0 (Quick Starts), 1 (Service), 2 (Architecture), and 3 (Private). | |||
templateId | string | The OCID of the template. | |
displayName | string | A filter to return only resources that match the given display name exactly. | |
| Use this filter to list a resource by name. | |||
Requires sortBy set to DISPLAYNAME. | |||
| Alternatively, when you know the resource OCID, use the related Get operation. | |||
sortBy | string | The field to use when sorting returned resources. | |
By default, TIMECREATED is ordered descending. | |||
By default, DISPLAYNAME is ordered ascending. Note that you can sort only on one field. | |||
sortOrder | string | The sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC). | |
limit | number | The number of items returned in a paginated List call. For information about pagination, see | |
| List Pagination. | |||
page | string | The value of the opc-next-page response header from the preceding List call. | |
| For information about pagination, see List Pagination. | |||
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, please provide the request ID. | |||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
{"items":[{"compartmentId":"E","description":"deserunt occaecat","displayName":"deserunt","id":"magna sit fugiat","isFreeTier":false,"lifecycleState":"occaecat et","timeCreated":"1956-04-18T15:23:45.171Z"},{"compartmentId":"pariatur in ullamco sit exercitat","description":"id voluptate ut","displayName":"ipsum in ut tempor commodo","id":"aliqua","isFreeTier":true,"lifecycleState":"Excepteur ex ipsum","timeCreated":"1942-05-05T10:17:08.353Z"}]}