template_categories
Creates, updates, deletes, gets or lists a template_categories resource.
Overview​
| Name | template_categories |
| Type | Resource |
| Id | oci.resource_manager.template_categories |
Fields​
The following fields are returned by SELECT queries:
- list
A list of template categories.
| Name | Datatype | Description |
|---|---|---|
id | string | Unique 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. |
displayName | string | The name of the template category. Not changeable. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | region | opc-request-id | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | OCI 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-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
SELECT examples​
- list
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 }}'
;