Introduction
This document explains the difference between the Basic and Advanced modes of querying.
Using OpsQL, you can perform advanced search operations to fetch the results. These results help you analyze and make better decisions.
The Advanced Search feature allows you to:
- Quickly and easily build queries.
- Search for resources at the partner or the client level.
Follow these steps to navigate to the Advanced Search query box and build queries:
Log in to OpsRamp.
Navigate to Infrastructure > Search.
From the Infrastructure Search screen, click the search (magnifying glass) icon next to the Home tab. The New View tab is displayed.
Click +Query. The Search box displays the list of resource attributes.
Build a query using the basic query mode.
Basic Query Mode
Select the attribute and the operator from the dynamically populated matching operator list.
Type in (or select) a value from the VALUES dropdown. The values are populated based on the selected attribute and operator.
The query result is displayed.
Click + to add another expression.
The AND logical operator is selected by default. Click and select the desired operator.
Follow the steps mentioned above to form another expression – attribute, operator and value. The query result is displayed.
For more examples, click here.
Advanced Query Mode
Alternatively, use the Advanced Query Mode to start building more complex queries with nested expressions.
Click </> to switch to the Advanced query mode.
As soon as you start typing in the Search box, the available attributes are displayed automatically.
You can search using a keyword / string and then click on search for " “. The keyword search will search for occurrence of that string across multiple fields. The result is displayed.
Example:
Enter a string, Linux and click on search for “Linux”. The search result is displayed. The string “Linux” may occur in one or more fields, like Name, description, OS.
Click here to view the list of attributes.Select the attribute and the operator from the dynamically populated matching operator list and then type in (or select) a value.
Select the logical operators,
ANDorORFollow the steps mentioned above – select the attribute, operator, and value, to add another expression. You can add as many valid expressions as possible.
Click the Search icon or press Enter. The query result is displayed.
Note:
- Your most recent query is added to the Recent Queries list, which shows the query string used for the search.
- To repeat a previous query, click the (magnifying glass) search icon to create a new tab, and then click the tile for that search string. The search results are displayed.
For more information on how to use OpsQL, click here
MY RESOURCES VIEWS
Save your query results as Views to easily preserve complex queries and their results, and update them whenever needed.
The MY RESOURCES VIEWS slide-out is a feature that provides quick and easy access to your saved query views. Instead of typing the same queries over and over, you can just open this slide-out and select a saved view to instantly run that query again. This allows you to save time by easily reusing your frequently accessed queries.
To access the MY RESOURCES VIEWS slide-out:
- Navigate to Infrastructure → Search. The Infrastructure search listing screen is displayed.

- Click on the hamburger icon on the upper-left corner of the screen.
The MY RESOURCES VIEWS slide-out is displayed.
Managing Views
Create and manage (Add, Copy, Set as default, etc.) views from the Infrastructure search screen.
You can do the following actions after performing a search operation:
| Action | Steps/Description | ||||||
|---|---|---|---|---|---|---|---|
| Save a View | After executing a query, you have an option to save the current view. To save the current view:
| ||||||
| Save New View | You can modify an existing query and save the filter criteria and its results as a new view. Follow these steps to do this:
| ||||||
| Update Saved View | You can modify an existing query and save the view. Follow these steps to do this:
| ||||||
| Restore Saved View | This option reverts to the previously saved view. Once you have made changes to a specific query, which is already saved as a view:
| ||||||
| Copy Link | After executing a query, you have an option to copy the Direct link (URL) to the view. To copy a Direct link (URL) to a view:
| ||||||
| Set Favorite | To mark a view as favorite:
| ||||||
| Rename | The Rename option allows you to rename the name of the view. To rename a view:
| ||||||
| Copy | The Copy option allows you to create a copy of a view. To create a copy of a view:
| ||||||
| Set Default View | The Set Default View option allows you to set a view as a default view for the current user. To set a view as a default:
The User default takes first precedence. In the absence of a User default, the Role default is displayed. If no Role default exists, the System default is displayed. | ||||||
| Share | The Share option allows you to share a view with users who are assigned the selected role. To share a view:
Based on the scope of the user, the options appear. For Partner scope:
Note: Only users with Resource View or Resource Manage permission have access to this link. | ||||||
| Remove | The Remove option allows you to remove a view. To remove a view:
| ||||||
| Add Resource | The Add Resource functionality lets you add a resource manually. To add a resource:
| ||||||
| Download resources | The Download Resources functionality lets you download the resources at the client level, in CSV format. To download resources:
|
Attribute Update Policies
Attribute Update Policies automate the process of applying attribute values to resources that match a defined filter query. Instead of updating resource attributes manually one by one, you define a policy once and run it to apply consistent attribute values across all matching resources automatically.
Why use the policy?
Use Attribute Update Policies to:
- Standardize attribute values such as time zone across a large set of resources.
- Enforce consistent attributes across resources as your infrastructure grows or changes.
- Reduce manual effort and the risk of inconsistent resource tagging.
- Prevent attribute overwrites from agent updates or discovery processes, ensuring policy-assigned values remain stable.
You can create, view, update, run, and remove policies from the Attribute Update Policies page, which is accessible from the My Resources Views sidebar under Quick Actions.
Permissions
Following are the permissions required to perform various tasks.
| Category | Permission Type | Permission Value | Task |
|---|---|---|---|
| Account Administration | Devices | Manage and Access to all resources. | To create, update, and delete a policy. |
Access Attribute Update Policies
- Navigate to Infrastructure > Search.
- Click the hamburger menu on the left top corner of the page. The My Resources Views slide-out appears.
- Click Attribute Update Policies under Quick Actions. The Attribute Update Policies page appears.
Add a policy
Follow these steps to add a policy:
Click ADD on the Attribute Update Policies page. The Add Policy page appears.

Enter the following details:

General Details
Field Type Description Policy Name String Enter a unique name that identifies the policy. Force Unassign Checkbox When selected, resources that do not match the filter query will be removed. Resource Filter
Field Type Description Filter Query Query Defines which resources the policy applies to. Click anywhere in the box to open the query builder and construct a query using OpsQL.
Only resources matching this query will receive the attribute updates.Attributes
This section defines the attribute values to apply to all matching resources. Existing attribute values on those resources will be overwritten.
Field Description Attribute Select the attribute to update from the dropdown (for example, Time Zone). Value Select the value to assign to the chosen attribute from the dropdown (for example, Europe/Dublin).
You can select up to a maximum of 5 values.- +ATTRIBUTE: Click to add another attribute-value pair.
- Delete icon: Click the trash icon next to an attribute row to remove that attribute-value pair from the policy.
Click one of the following buttons to complete the action:
- SAVE & RUN: Saves the policy and immediately executes it against all matching resources.
- SAVE Saves the policy without running it. You can run it later using Run now.
- CANCEL Discards all changes and closes the page without saving.
The policy is created and displayed in the listing page.

The listing page has the following columns:
Column Description Policy Name The name assigned to the policy when it was created. Updated By The username or email of the person who last modified the policy. Created Time The date and time when the policy was created. Last Run Time The date and time of the most recent execution of the policy.
Manage policies
You can perform the following actions on any existing policy from the Attribute Update Policies list.
View and Update Policy details
Follow these steps to view and update policy details:
- Navigate to Infrastructure > Search.
- Click the hamburger menu on the left top corner of the page. The My Resources Views slide-out appears.
- Click Attribute Update Policies under Quick Actions. The Attribute Update Policies page appears.
- Search for the policy you want to update.
- Mouse hover over the row and click the three dots (ellipsis) icon.

- Select View Details. Alternatively, you can click on the policy name. The Attribute Update Policy page appears with details including Policy Name, Force Unassign setting, Filter Query, and the list of attribute-value pairs defined.

- Update the fields as required.
- Click one of the following buttons to complete the action:
- SAVE & RUN: Saves the policy and immediately executes it against all matching resources.
- SAVE Saves the policy without running it. You can run it later using Run now.
Run now
Immediately executes the policy. The system evaluates the filter query, identifies all matching resources, and applies the defined attribute values to those resources. The Last Run Time column is updated after execution completes.
Follow these steps to execute the policy:
- Navigate to Infrastructure > Search.
- Click the hamburger menu on the left top corner of the page. The My Resources Views slide-out appears.
- Click Attribute Update Policies under Quick Actions. The Attribute Update Policies page appears.
- Search for the policy you want to execute.
- Mouse hover over the row and click the three dots (ellipsis) icon.
- Select Run now.
Note
Running a policy overwrites existing attribute values on matching resources.View policy logs
Displays the execution history and logs for the policy. Use policy logs to:
- Verify that a policy ran successfully.
- Identify which resources were updated during the last run.
- Investigate errors or unexpected results.
Follow these steps to view the policy logs:
- Navigate to Infrastructure > Search.
- Click the hamburger menu on the left top corner of the page. The My Resources Views slide-out appears.
- Click Attribute Update Policies under Quick Actions. The Attribute Update Policies page appears.
- Search for the policy you want to view and update.
- Mouse hover over the row and click the three dots (ellipsis) icon.
The View Policy Logs option is also available at the right top corner of the policy details page. - Select View policy logs. The logs listing page appears.

See [Activty] for more information.
Remove
Warning
Permanently deletes the policy. This action cannot be undone.Note
Removing a policy does not revert attribute values that were previously applied to resources by that policy__.Follow these steps to remove a policy log:
- Navigate to Infrastructure > Search.
- Click the hamburger menu on the left top corner of the page. The My Resources Views slide-out appears.
- Click Attribute Update Policies under Quick Actions. The Attribute Update Policies page appears.
- Search for the policy you want to remove.
- Mouse hover over the row and click the three dots (ellipsis) icon.
- Select Remove. A confirmation dialog box appears.
- Select Remove to remove the policy.
FAQs & troubleshooting
This page answers frequently asked questions about Attribute Update Policies and provides troubleshooting steps for common issues.
FAQs
How many attribute-value pairs can I add to a single policy?
You can add up to 5 attribute-value pairs per policy. If you need to apply more than 5 attributes, create additional policies targeting the same filter query.
Can I run a policy immediately after saving it?
Yes. Click SAVE & RUN instead of SAVE when creating or editing a policy. This saves the policy and runs it immediately. You can also run any saved policy at any time by clicking the three-dot (ellipsis) menu and selecting Run now.
Where can I see which resources were updated by a policy?
Use the View policy logs option from the three-dot menu (⋯) next to a policy. Policy logs show the execution history and the list of resources that were processed during each run.
What happens to resource attributes if I remove a policy? __
Removing a policy deletes the policy definition but does not revert attribute values that were previously applied by that policy. Resources retain any attribute values set by the policy until they are changed or removed through another action.
Can a resource be affected by more than one Attribute Update Policy?__
Yes. If a resource matches the filter query of multiple policies, it can be updated by all of them. If two policies assign different values to the same attribute, the most recently run policy determines the final value.
Troubleshooting
Access denied error when opening the Attribute Update Policies page
You do not have the appropriate permissions. Contact your Administrator.
A policy is saved successfully but attributes are not updated on resources
The policy was saved using SAVE rather than SAVE & RUN, so it has not executed yet.
Click the three-dot (ellipcis) menu next to the policy and select Run now to execute it.
Customize columns
You can select resource attributes and custom attributes for listing from the Column Settings popup window.
Navigate to Infrastructure → Search.
Click the Settings (gear) icon available on the upper-right corner of the resource listing screen to view a list of 100 resource attributes including custom attributes.
Note: A maximum of 100 custom attributes are displayed in the list. You can search for a custom attribute that is not listed but is available under the client.
Search for the resource attribute or custom attribute. The search result can have resource attribute or custom attribute or both.

Select the resource attribute(s)/custom attribute(s) and click UPDATE.
The resource attribute is added as a column in the list.
Scroll to the right of the screen to view the column(s).- The custom attribute is listed as a column, with its value for the resource(s) it is assigned to.

Note:- In case a custom attribute is assigned to one or more resources, you will see the custom attribute value for all those resources.
- Custom attributes are case-sensitive. The custom attribute must be entered in the search field with the exact capitalization as it was originally defined.
- Refreshing the screen will clear all the selected columns. The default columns will be displayed. You can create Views to save the column listing. See Views for more information on saving a view.
- The custom attribute is listed as a column, with its value for the resource(s) it is assigned to.
Filters
Use the Filters option to filter and search.
To filter:
- Click Filters and then select the required attribute.
- Click Filter.
Multi-select capability
This feature is for screens that support multi-select.
You can select multiple items and perform actions.
Search for the items and select the checkbox next to the item.
Click the Actions menu and select the required option.
Note: Depending on the actions performed, there will be limitations. If there is a breach on the limit, then the UI will show you a message.
List of Attributes
Keyword search will search for occurrence of that string across the following fields:
| id | name | ipAddress | make | model | serialNumber |
| hostName | resourceName | dnsName | aliasName | os | description |
| softwareVersion | LocationName | CloudInstance Public Ip | CloudInstance instance Id (Management Object Id) | NetworkInterface Name | NetworkInterface Ip address |
| NetworkInterface Mac address | NetworkInterface description | NetworkInterface aliasIp | custom attribute name | custom attribute value |