Chapter 2. Assessing and filtering your inventory Assessing and filtering your inventory will help you identify and eliminate security, operations, and business risks in your fleet. 2.1. Inventory Application Programming Interface (API) Red Hat Insights provides a set of APIs that you can use to interact with specific Insights for Red Hat Enterprise Linux applications, to obtain system details and recommendations. We have designed our APIs to ensure the security of your data. All Insights APIs are Representational State Transfer (REST) APIs. REST APIs are stateless. Statelessness means that servers do not save client data between requests. Our APIs also use token-based authentication, which provides granular control over access permissions and enhances security. Review the following resources to learn more about how you can use the inventory API to locate information, enact edits, and automate repetitive tasks: Additional Resources For more information about Red Hat Insights API, see the Red Hat Insights API reference guide: API Catalog For more information about getting started with Red Hat Insights API, see the Red Hat Insights API cheat sheet: Insights API cheat sheet For more information about the inventory API, see Managed Inventory: Managed Inventory API 2.2. Refining your view of systems in inventory There are several ways to refine your inventory view to help you focus on the issues and systems that matter the most. You can filter by Name , Status , Operating System , Data Collector , remote host configuration status , Last seen , Workspace , or Tags . Follow the procedure below to filter your systems: Prerequisites You have Inventory Hosts viewer access. Procedure Navigate to Red Hat Insights > RHEL > Inventory page. Click the Name filter drop-down. Choose an option from the drop-down menu, such as Name , Status , Operating System , Data Collector , RHC status , Last seen , Workspace or Tags . Select additional filters within your query. For example, if you chose the Operating System filter, click Filter by operating system in the header to choose a specific version of RHEL. Click the checkbox to the RHEL version you want to filter. Optional: To add multiple filters to your query, click an additional filter (such as Data Collector ). A second drop-down appears to the right of the Data Collector filter, called Filter by data collector . Choose the desired data collector. This first filter then appears just below the header. If desired, choose a second filter. You can apply all 8 available filters to your query. Click Reset filters to clear your query. Additional Resources For information about global filters, see the following: System filtering and groups 2.3. Deleting systems from inventory When a system is obsolete or decommissioned, you might choose to remove it from inventory. Use the following procedure to do so: Prerequisites You have Inventory Hosts administrator access. Procedure Navigate to Red Hat Insights > RHEL > Inventory page. Check the box to the left of the system(s) you want to remove. Click the Delete button to the right of the filter. A Delete from Inventory confirmation dialog box appears. Click Delete to confirm this action. A message box appears in the upper right corner of the screen, stating that the delete operation initiated. When the deletion is complete, a message box confirms that deletion was successful. Caution The selected system(s) will be removed from ALL console.redhat.com applications and services. Note A system might reappear in inventory if data collectors are uploading data from systems that are still registered and subscribed . Refer to the documentation for the specific data collector(s) to determine how to permanently unregister or unsubscribe. Additional resources Unregistering from Red Hat Subscription Management Services

Commands: