All Products
Search
Document Center

Resource Management:Manage query templates

Last Updated:Jul 17, 2026

Query templates let you save and reuse advanced search statements. Resource Management provides sample templates for common scenarios and supports custom templates tailored to your needs.

Definition of a query template

A query template is a reusable advanced search statement. Two types are available: sample query templates and custom query templates.

  • Sample query templates: Predefined templates for common search scenarios. You can use them directly or modify the query statements to suit your needs. For more information, see Supported sample query templates.

  • Custom query templates: Templates that you create with custom query statements and properties for your specific requirements.

You can modify, duplicate, or delete custom query templates. You cannot rename, edit descriptions of, duplicate, or delete sample query templates. To save changes to a sample query statement, save it as a custom query template.

Create a custom query template

  1. Log on to the Resource Management console.

  2. In the left-side navigation pane, choose Resource Center > Advanced Search.

  3. In the code editor on the Temporary _Query_1 tab, write a query statement. To use a new tab, click the + icon.

    Query statements must follow the Basic SQL syntax.

    The following features are available to help you write query statements:

    • Auto-fill: The Resource Property pane lists supported cloud services, resource types, and properties. Click an item to add it as a query condition.

    • Code hinting and auto-completion: The code editor suggests keywords and properties as you type to help you complete the query statement.

  4. Click Run to run the query and verify the results.

  5. Click Save to save the query statement as a query template.

Note

You can also modify a sample or existing custom query template and click Save As to save it as a new custom query template.

Modify a custom query template

  1. On the Quick Start tab, in the Custom Query Template section, find the template you want to edit and click the More icon in its upper-right corner.

  2. Click Edit Query Template.

  3. In the Edit Query Template dialog box, modify the name and description, and click OK.

    Note

    The query statement cannot be modified in this dialog box. To change it, open the query in the editor, modify it, and click Save.

Duplicate a custom query template

  1. On the Quick Start tab, in the Custom Query Template section, find the template you want to duplicate and click the More icon in its upper-right corner.

  2. Click Duplicate Query Template.

  3. In the Duplicate Query Template dialog box, enter a name and description, and click OK.

    Note

    The query statement cannot be modified during duplication.

Delete a custom query template

  1. On the Quick Start tab, in the Custom Query Template section, find the template you want to delete and click the More icon in its upper-right corner.

  2. Click Delete Query Template.

  3. In the Delete Query Template dialog box, click OK.