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

KeyDatatypeRequiredDescription
compartmentIdstringA filter to return only resources that exist in the compartment, identified by OCID.
templateCategoryIdstringUnique identifier of the template category.
Possible values are 0 (Quick Starts), 1 (Service), 2 (Architecture), and 3 (Private).
templateIdstringThe OCID of the template.
displayNamestringA 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.
sortBystringThe 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.
sortOrderstringThe sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC).
limitnumberThe number of items returned in a paginated List call. For information about pagination, see
List Pagination.
pagestringThe value of the opc-next-page response header from the preceding List call.
For information about pagination, see List Pagination.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
Datestring(Required) Current Date
Authorizationstring(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"}]}