Skip to main content

template_categories

Creates, updates, deletes, gets or lists a template_categories resource.

Overview​

Nametemplate_categories
TypeResource
Idoci.resource_manager.template_categories

Fields​

The following fields are returned by SELECT queries:

A list of template categories.

NameDatatypeDescription
idstringUnique identifier for the template category. Possible values are 0 (Quickstarts), 1 (Service), 2 (Architecture), and 3 (Private). Template category labels are displayed in the Console page listing templates. Quickstarts, Service, and Architecture templates (categories 0, 1, and 2) are available in all compartments. Each private template (category 3) is available in the compartment where it was created.
displayNamestringThe name of the template category. Not changeable.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionopc-request-idLists template categories.<br />For more information, see<br />[Listing Template Categories](/iaas/Content/ResourceManager/Tasks/list-template-categories.htm).<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

SELECT examples​

Lists template categories.<br />For more information, see<br />[Listing Template Categories](/iaas/Content/ResourceManager/Tasks/list-template-categories.htm).<br />

SELECT
id,
displayName
FROM oci.resource_manager.template_categories
WHERE region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;