Viewing and managing system inventory
Use the Red Hat Lightspeed inventory application to help you to track and manage your infrastructure
Abstract
Chapter 1. Inventory overview
Use the inventory service to view and track all registered Red Hat Enterprise Linux systems in your organization through the Hybrid Cloud Console. You can access system details, monitor health and staleness, organize systems into workspaces, and export inventory data for reporting and analysis.
Access inventory through the Hybrid Cloud Console or the Managed inventory API to track and manage your infrastructure.
1.1. Inventory data governance
Red Hat Lightspeed collects minimal system metadata for analysis while providing data obfuscation, redaction, and automatic retention controls.
Red Hat Lightspeed helps to identify and address operational and vulnerability risks, before they result in system downtime. This functionality requires that Red Hat Lightspeed collects small pieces of system metadata for processing and analysis. Here is how we ensure the security of your data:
- Red Hat Lightspeed collects only the minimum system metadata needed to analyze and identify issues for supported platforms.
- Before data is sent to Red Hat, you have the option to inspect and redact your data.
- Data is encrypted throughout the process, with a customizable collection schedule. Red Hat data collection rules are signed, and the signature is verified before proceeding.
- Only one uploaded data set is stored at a time for each cluster, host, or instance.
1.1.1. Data obfuscation
You have full control over the data collected by Red Hat Lightspeed. It is possible to anonymize the data by obfuscating IP addresses, Media Access Control (MAC) addresses, and hostnames in the insights-client.
1.1.2. Data redaction
You can exclude specific data from the insights-client collection process by using data redaction commands in the command line interface. This method can be used to ensure personally identifiable information (PII) is not collected. However, data redaction reduces the quantity and quality of system recommendations.
1.1.3. Data retention
The insights-client collects and uploads your data once a day by using the default configuration. The collected data is kept for 24 hours for analysis. Data is replaced by new uploads from the insights-client every day. Data is automatically deleted after 14 days if there is no upload from the insights-client.
Results from the analysis are retained for historical reporting purposes and might be used by Red Hat as input for feature enhancements.
1.2. Data collectors for inventory
Data collectors upload system information to Red Hat Hybrid Cloud Console. Systems are deduplicated so that they display only one time in inventory, helping you track reporting services and troubleshoot collection issues.
Each system registered in inventory gets its data from one of many data collectors. Data collectors run on a regular cadence and synchronize their collected data with the Red Hat Hybrid Cloud Console.
A system can be reported by one or more collectors. When multiple collectors provide information for the same system, inventory uses a deduplication mechanism to merge the information. This process ensures that systems are displayed only once in inventory.
The following data collectors upload system information to the Red Hat Hybrid Cloud Console:
- Red Hat Lightspeed
- Red Hat Lightspeed registers and aggregates system data. By default, it runs daily on each system and uploads the system data to the Red Hat Hybrid Cloud Console for processing. The data that Red Hat Lightspeed collects is used to formulate all the recommendations Red Hat Lightspeed provides.
- Red Hat Subscription Manager (RHSM)
- The subscription-manager tool runs daily to provide a list of all systems in your organization that are registered with Red Hat. Note that unless Red Hat Lightspeed is also enabled, data collected by Subscription Manager alone does not provide recommendations.
- remote host configuration (rhc)
- Use the rhc client to register systems to Red Hat Lightspeed and Red Hat Subscription Manager, and to also configure Red Hat Lightspeed connections for all RHEL systems in your organization. The rhc client also makes it easy to find system issues and to fix them with the playbooks generated by Red Hat Lightspeed from any remediation plans that you created.
- Red Hat Discovery tool
- The Discovery tool scans systems for Red Hat software installations and provides a report to the Red Hat Hybrid Cloud Console for inclusion in inventory. You can run this tool manually.
- Red Hat Satellite
Satellite provides an integration with the Red Hat Hybrid Cloud Console. When configured, Satellite uploads its inventory of registered systems daily and synchronizes it with the inventory application. This includes all systems registered with Satellite and Capsule servers.
NoteData collected and reported by the Subscription manager and Satellite alone will NOT result in analysis and recommendations. Red Hat Lightspeed must also be enabled.
1.2.1. Identify which data collector is reporting to inventory
View data collector name, status, and last upload time for each system. Use this information to troubleshoot collection issues and verify which services are actively reporting inventory data.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with at least one of the following roles:
- Inventory Hosts viewer
- RHEL viewer
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click the system you want to view.
- You will notice that you are in the General information tab. Remain in that tab and scroll to the bottom of the page.
Reference the Data collectors card at the bottom of the page. There you will see the data collector(s) Name, Status and Last upload details.
NoteYou can also filter your systems by data collectors in the inventory Systems page, as outlined in Refining your view of systems in inventory.
Additional resources
- This content is not included.Registering RHEL systems and configuring client tools with Red Hat Lightspeed
- Refining your view of systems in inventory
- This content is not included.Red Hat Satellite
- Red Hat Subscription Manager (RHSM)
- Getting started with the Subscriptions Service
- Red Hat Discovery tool
- Remote host configuration and management (rhc)
1.3. System facts
System facts are the metadata that data collectors gather about your RHEL systems. Red Hat Lightspeed uses system facts to analyze system health, identify issues, and generate recommendations for optimization and security.
insights-client uses system facts to populate inventory data in Red Hat Lightspeed and to update existing data. Red Hat Lightspeed also uses system facts to analyze system performance and to create recommendations for services such as Advisor or remediations.
1.4. Red Hat Lightspeed analysis and monitoring
Red Hat Lightspeed performs initial and daily system analyses to monitor status, identify issues, and flag systems for deletion based on staleness criteria.
When you register systems, Red Hat Lightspeed performs an initial analysis and then runs daily analyses to monitor your system status. Red Hat Lightspeed stores the status information in inventory. You can view the system details from the Inventory Systems page in the Hybrid Cloud Console.
Red Hat Lightspeed analysis results can include alerts that identify issues in your systems, and recommendations about how to resolve those issues.
Red Hat Lightspeed also monitors for system staleness by using specific staleness criteria to flag systems that are not reporting regularly. If systems do not report for a specified period of time, Red Hat Lightspeed flags them for deletion.
Chapter 2. Assess and filter your inventory
Use inventory assessment and filtering to identify and eliminate security, operations, and business risks in your fleet.
2.1. Red Hat Lightspeed inventory APIs
Red Hat Lightspeed provides REST APIs with token-based authentication to enable secure programmatic access to inventory data, recommendations, and system details. These secure REST APIs support integration with automation tools and custom workflows.
All Red Hat Lightspeed APIs are Representational State Transfer (REST) APIs. REST APIs are stateless, meaning servers do not save client data between requests. Token-based authentication provides granular control over access permissions and enhances security.
2.2. Refine your view of systems in inventory
Filter inventory systems by name, status, operating system, data collector, RHC status, last seen, workspace, or tags. This helps you quickly locate systems of interest and manage specific infrastructure subsets.
There are several ways to refine your inventory view to help you focus on the issues and systems that matter the most. Using the following steps, you can filter your systems inventory by several criteria, including:
- Name
- Status
- operating system
- Data Collector
- remote host configuration status
- Last seen
- Workspace
- Tags
Prerequisites
You are logged in to the Red Hat Hybrid Cloud Console as a user who is a member of a User Access group with at least one of the following roles:
- Inventory Hosts viewer
- RHEL viewer
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- 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 next 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 is displayed to the right of the Data Collector filter, called Filter by data collector.
- Choose the required data collector. This first filter then is displayed just below the header. To narrow your results further, choose a second filter. You can apply all 8 available filters to your query.
- Click Reset filters to clear your query.
Additional resources
2.3. Assigned system display names
Each system in Red Hat Lightspeed has a display name that is assigned automatically by data collectors or manually by users. Using display names ensures consistent identification and prevents naming conflicts across your infrastructure.
There are two ways to assign a display name to a system:
- Automatically
- Red Hat Lightspeed inventory assigns a display name to the system. Red Hat Lightspeed receives the display name from a data collector, such as Red Hat Subscription Manager (RHSM), and applies it to the system. If a system has an automatically assigned name, a higher-priority data collector can change the display name. A lower-priority data collector cannot change the display name.
- Manually
- You create the display name and manually apply it to the system. If a system has a manually assigned display name, that name persists in the Red Hat Hybrid Cloud Console. Unlike some automatically assigned display names, another application cannot overwrite the display name.
Additional resources
2.4. How data collectors automatically assign display names to systems
To resolve naming conflicts and ensure consistent system identification, data collectors assign display names to systems based on priority. Understanding the priority order helps you troubleshoot why certain display names override others.
A data collector is a specific application or service responsible for sending host information, updates, or system profile data to Red Hat Lightspeed inventory. For example, Red Hat Subscription Manager (RHSM) and Red Hat Satellite act as data collectors for Red Hat Lightspeed.
A data collector can provide a display name to Red Hat Lightspeed during registration or a registration update. If the system has a manually assigned name, the data collector uses that name as the display name. Otherwise, the data collector does not provide a display name, so Red Hat Lightspeed uses the system fully qualified domain name (FQDN) as a display name.
Each data collector that interacts with Red Hat Lightspeed has an assigned priority. Red Hat Lightspeed inventory uses the display name provided by the data collector with the highest priority. That means that the display name reported by a higher-priority data collector overrides the display name set by a data collector with a lower priority.
Red Hat Lightspeed ignores a display name provided by a lower-priority data collector if a higher-priority data collector has already set the display name. The system always shows the display name from the highest priority data collector and ignores the rest.
The following table shows the data collectors in order of priority.
| Priority | Data Collector | Description |
|---|---|---|
| 1 |
Red Hat Lightspeed UI, | Manually assigned display names have the highest priority. |
| 2 |
|
These RHSM data collectors mirror display names from RHSM to Red Hat Lightspeed. |
| 3 | default (any other data collector) | Default priority for all non-specific data collectors that provide a display name, such as Red Hat Discovery Tool or Satellite. |
| 4 | no data collector | If no data collector provides a display name, Red Hat Lightspeed automatically assigns the Fully Qualified Domain Name (FQDN) as the system display name. |
Additional resources
2.5. Manually assign system display names
You can assign custom display names to systems by using the UI, the insights-client, or the API. This ensures consistent naming across your infrastructure and prevents automatic naming conflicts.
System display names assigned through a data collector, such as during registration with Subscription Manager, receive the highest priority. This means that lower-priority data collectors cannot override names that you set manually.
You can assign display names by using three methods:
- Red Hat Lightspeed UI - Use the web interface to assign display names to individual systems.
-
insights-client - Use the
insights-clientcommand-line tool to set display names on systems. - Inventory API - Use the API to programmatically assign display names for automation and bulk operations.
If you manually assign a name to a system outside of the data collectors (for example, by using the hostname command at the command line), Red Hat Lightspeed automatically uses the assigned name as its display name in inventory. If you want to use a different display name for the system within Red Hat Lightspeed, then manually assign the different display name. The system retains its original hostname, but is displayed in inventory with the assigned display name.
2.6. Assign a system display name in the Red Hat Lightspeed UI
Assign a custom display name to ensure consistent naming and prevent automatic name conflicts. Manually assigned display names receive the highest priority and cannot be overridden by data collectors.
Procedure
On the Hybrid Cloud Console, navigate to This content is not included. → .
- The Systems page displays a list of all of the systems in your environment.
- Click the options icon (⋮) for the system for which you want to set the display name.
- Select Edit display name from the drop-down menu.
- In the Edit display name dialog box, enter the name you want to assign to the system.
- Click Save.
Verification
Verify that the system displays the new custom display name in the inventory list.
2.7. Assign a system display name using the insights-client
Use the insights-client command-line tool to set a custom display name for a system. This ensures consistent naming across your infrastructure and automates assignment during deployment.
With the insights-client, you can set the system display name on the system itself. This method is useful for automating display name assignment during system configuration or deployment.
Procedure
-
Use the
insights-clientto set the system display name by using the instructions in Change the host display name.
Additional resources
2.8. Assign a system display name using the inventory API
Use the inventory API to programmatically set custom display names for systems to enable automation and bulk operations.
Procedure
-
Issue the
PATCH /hosts/{host_id_list}API call to set the display name. -
For detailed information about using this API call, see the
hostssection in the Red Hat Lightspeed host inventory API catalog.
Additional resources
2.9. Tag systems that connect through the Red Hat Lightspeed proxy
Systems that connect through the Red Hat Lightspeed proxy are highlighted with the insights-proxy tag in Red Hat Lightspeed inventory. Use this tag to verify proxy routing in disconnected environments and manage connectivity from a central location.
Red Hat Lightspeed automatically detects and tags proxy-connected systems. To view all proxy-connected systems or identify which systems route through a specific proxy instance, filter your inventory by insights-proxy.
When you use the configure-client.sh script to configure systems to use the Red Hat Lightspeed proxy, the script uses the Red Hat Lightspeed system tagging capability to identify the proxy server on the client systems.
The script adds an entry in the /etc/insights-client/tags.yaml file on the client system that tags the proxy server. The entry takes the following format:
insights-proxy: <rhproxy-hostname>
For example, a client system that connects to the server myproxy.example.com could have the following line added to the tags.yaml file. In this example, myproxy.example.com has the hostname myproxy-example in Red Hat Lightspeed inventory.
insights-proxy: myproxy-example
When a client system uses a proxy server to communicate with Red Hat Lightspeed, you can view the proxy server in inventory in the Red Hat Hybrid Cloud Console. The Filter by tags filter displays the proxy server tag grouped under the insights-client heading. You can select the proxy server tag to view the client systems connected to it.
After you configure the client system to use a proxy server, insights-client must perform an upload to Red Hat Lightspeed before the server can be identified by tag in inventory.
If the proxy server for a client changes, re-run the configure-client.sh script. The script correctly handles the reconfiguration entry in the /etc/insights-client/tags.yaml file.
To disable the proxy connection, remove the proxy configuration from the client. Removing the configuration also removes the proxy connection tags from inventory.
After you remove the proxy configuration from the client, insights-client must perform an upload to Red Hat Lightspeed before its system tags are updated in inventory.
Additional resources
2.9.1. View proxy-connected client systems using tags
Identify systems connected through the Red Hat Lightspeed proxy by using the insights-proxy tag. This helps you verify proxy configuration, troubleshoot connectivity issues, and monitor which systems route through specific proxy instances.
Once you have configured an insights-client system to use a proxy server, you can identify the system by its tag in the Red Hat Hybrid Cloud Console. The insights-proxy tag also indicates the Red Hat Lightspeed proxy to which the system is connected.
Prerequisites
- You have user permissions for the client systems in inventory.
- The client systems are configured to communicate with Red Hat Lightspeed through the proxy server. For more information about the configuration script, see This content is not included.Configure client systems.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → . The list of systems is displayed.
- Select the client system you want to view. The client system name displays in a pop-up.
-
Click the tag icon to the right of the system name. The tag icon links to a list of all system tags associated with the selected client system. This list includes the
insights-proxytag, along with the Red Hat Lightspeed proxy server hostname that the system uses.
2.9.2. View proxy-connected systems using the Red Hat Lightspeed API
Use the inventory API to identify Red Hat Lightspeed proxy servers and query which client systems use specific proxy servers. This enables you to track system routing and monitor proxy-based connectivity to Red Hat Lightspeed.
For step-by-step instructions about how to authenticate and query the inventory API, download the This content is not included.Red Hat Lightspeed API Cheat Sheet.
You must have login access to developers.redhat.com to access the API cheat sheet.
For information about how to make API calls, see Make API calls.
Prerequisites
- You have authenticated to the inventory API.
Procedure
To obtain a list of deployed Red Hat Lightspeed proxy servers in your environment, use the following API call:
GET /api/inventory/v1/tags?search=insights-client/insights-proxy
To view the list of insights-client systems configured to use a specific proxy server, use the following API call. Substitute the name of the proxy server for
<rhproxy-hostname>.GET /api/inventory/v1/hosts?tags=insights-client/insights-proxy=<rhproxy-hostname>
2.9.3. Disable the proxy connection on connected client systems
Disable the proxy connection when systems no longer require proxy access through the Red Hat Lightspeed proxy. After removing the configuration, insights-client must perform an upload before the system’s tags are updated in inventory.
Removing the client system configuration removes the system tags that connect to the proxy server.
Prerequisites
- The client system is currently configured to communicate with Red Hat Lightspeed through the Red Hat Lightspeed proxy.
Procedure
- Follow the steps in This content is not included.Remove the proxy configuration from client systems to remove the proxy configuration from the client system.
- Wait for insights-client to perform an upload to Red Hat Lightspeed.
Verification
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click the client system that you removed the proxy configuration from.
-
Verify that the
insights-proxytag is no longer displayed in the system’s tag list.
2.10. Image-based systems in inventory
Red Hat Lightspeed inventory provides a unified view of RPM, image mode, and OSTree-based systems to enable streamlined system management. Image-based system filters enable identification and monitoring of image mode and OSTree deployments with access to deployment-specific metadata.
Red Hat Lightspeed unifies all system types into a single, streamlined view. You can view and manage RPM (package mode), image mode, and OSTree-based systems from the same inventory page. Red Hat Lightspeed includes filters that enable you to select and display only image-based systems.
You can connect an image-based system to Red Hat Lightspeed in the following ways:
- Connect automatically during image building
- Use remote host configuration (rhc) to connect manually
- Use Red Hat Satellite to register the system
Image-based systems display additional metadata in inventory, including:
- Booted image digest
- Staged image information
- Available updates
- Rollback image details
Additional resources
2.11. Automatically connect image-based systems during image building
Embed an activation key in image-based RHEL systems to automatically connect to Red Hat Lightspeed on first boot. This eliminates manual registration steps and ensures that image-based RHEL systems have immediate inventory visibility.
Procedure
- To connect an image-based system to Red Hat Lightspeed, add an activation key to your build configuration by using the sample code and examples that are provided in the Content from gitlab.com is not included.Fedora/CentOS bootc project git repository.
2.12. Manually connect an image-based RHEL system by using rhc
Manually connect an image-based RHEL system to Red Hat Lightspeed by using the rhc command with an activation key and Organization ID. This registers the system in inventory and grants Red Hat Lightspeed service access whether the system connects directly to Red Hat services or through a proxy server.
Prerequisites
- You have Organization Administrator permissions.
- You have an Organization ID.
- You have a terminal window open and you are logged in to the system on the command line as root or have sudo permissions.
- The rhc client is installed on the system. See The rhc client.
- You have an activation key for rhc. See Getting started with activation keys on the Red Hat Hybrid Cloud Console.
Procedure
Use the following rhc command to register your system to Red Hat Lightspeed.
# rhc connect --activation-key=<activation_key> --organization=<organization_ID>
Where: *
<activation_key>is your activation key *<organization_ID>is your Organization ID
Verification
- In the Red Hat Hybrid Cloud Console, navigate to This content is not included. → .
- Verify that your image-based system is displayed in the inventory list.
- Optional: Use the Image-based system filter to view only image-based systems.
2.13. Register image-based systems by using Red Hat Satellite
Register image-based RHEL systems with Satellite by using your preferred method to enable centralized management and Red Hat Lightspeed monitoring.
Procedure
- For information about registering systems, see This content is not included.Registering hosts to Satellite.
For information about using global registration, see This content is not included.Registering hosts by using global registration.
ImportantMake sure that Red Hat Lightspeed registration is enabled in Satellite before you generate the registration command. Select → → and make sure that Set up Red Hat Lightspeed is enabled.
2.14. View image-based systems in inventory
Use the Image-based system filter to view image-based systems in inventory and verify their bootc image sources and deployment status.
To show details for a system, click the system name. The System Details page includes the image URL and its corresponding hash value.
The bootc panel on the System Details page shows information about the following:
- Booted image
- Booted image digest
- Staged image
- Staged image digest
- Available image
- Available image digest
- Rollback image
- Rollback image digest
Prerequisites
You are logged in to the Red Hat Hybrid Cloud Console as a user who is a member of a User Access group with at least one of the following roles:
- inventory-host-read
- inventory-groups-read
RHEL viewer
For more information about how to configure User Access permissions, see This content is not included.User Access Configuration Guide for Role-based Access Control (RBAC).
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Select Filter by System type from the filter drop-down, and then select Image-based system to display all image-based systems in inventory.
- Click the name of the system you want to view. The System Details page for that system is displayed.
2.15. Add an image-based system to a workspace
Add an image-based RHEL system to a workspace to organize and manage systems according to your environment requirements.
Prerequisites
- You have created a workspace in inventory.
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who has one of the following roles:
- Workspace administrator
- RHEL administrator
- RHEL operator
- inventory:groups:write and inventory:groups:read permissions for that particular workspace
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → and select a workspace.
- Click Add systems. The Add systems dialog box is displayed.
- Use the filters to locate the system you want to add.
- Select the checkbox next to the name of the system you want to add.
- Click Add systems. The console responds with a success message.
- Click Refresh to view the system in the workspace.
2.16. Delete systems from inventory
Remove obsolete or decommissioned systems from inventory to maintain an accurate record of your active infrastructure.
Use the following procedure to remove obsolete or decommissioned systems from inventory.
Deleting a system removes it from ALL console.redhat.com applications and services.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with the Inventory Hosts administrator role.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Check the box to the left of the systems that you want to remove.
- Click Delete to the right of the filter. A Delete from Inventory confirmation dialog box is displayed.
- Click Delete to confirm this action.
Verification
A message box is displayed in the upper right corner of the screen, stating that the delete operation initiated. When the deletion is complete, a message box confirms that the deletion was successful.
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
Chapter 3. Manage user permissions for Red Hat Lightspeed services
Manage user permissions to control access to Red Hat Lightspeed applications. Use the User Access feature to apply role-based access control (RBAC). Red Hat provides predefined groups and roles to help Organization Administrators manage user permissions.
3.1. User Access overview
You can simplify access management in the Red Hat Hybrid Cloud Console by using role-based access control (RBAC). The User Access feature assigns specific permissions to roles instead of individual users, which are then inherited when roles are assigned to user groups.
You can also create custom groups and roles to provide more fine-tuned control over specific features of Red Hat Lightspeed to suit the needs of your organization.
If you are an Organization Administrator, you can use the User Access feature under → in the Hybrid Cloud Console to:
- Control user permissions and organize roles.
- Create groups that include roles and their corresponding permissions.
- Assign users to these groups, allowing them to inherit the permissions associated with their group’s roles.
3.2. Predefined groups in User Access
The two predefined groups available in User Access, Default access and Default admin access provide different baseline privilege levels for users in your organization. You can also create custom groups to align permissions with specific personas, job functions, or teams in your organization.
- The Default access group
- By default, the Default access group is assigned many granular predefined roles, so that group members have basic visibility. Because all users in your organization are members of the Default access group, they inherit all permissions assigned to that group. The Default access group is automatically updated by Red Hat.
If your Organization Administrator modifies the Default access group, for example, by removing roles to restrict access to specific applications or to use the consolidated roles, the group is automatically renamed to Custom default access. Once converted, this group is no longer automatically updated by Red Hat.
- The Default admin access group
- The Default admin access group contains only users who have Organization Administrator permissions. This group is automatically maintained, and users and roles in this group cannot be changed.
The Default admin access group includes many (but not all) predefined roles that provide update and delete permissions. The roles in this group usually include administrator in their names.
To view the roles included in the Default access or Default admin access group, log in to the Hybrid Cloud Console, navigate to Groups in User Access, and select the group.
Additional resources
3.3. Predefined roles assigned to groups
Understand how predefined roles in Red Hat Hybrid Cloud Console bundle permissions across multiple Red Hat Lightspeed applications to align with common user personas. Use predefined roles to reduce administrative effort, or create custom roles for more fine-tuned control over specific features.
The predefined roles are a starting point to help you control and manage user permissions. You can then use these roles to create custom roles that are tailored to your specific use cases and organization. For example, you can use the predefined granular roles to create custom roles that provide more fine-tuned control over specific features of Red Hat Lightspeed.
By default, Red Hat provides a set of consolidated roles and a set of granular roles in the Red Hat Hybrid Cloud Console User Access UI. The consolidated roles significantly reduce the administrative effort required to manage user permissions, while the granular roles provide more fine-tuned control over specific features of Red Hat Lightspeed.
You can use the predefined consolidated and granular roles in User Access simultaneously, but using consolidated roles can significantly reduce the administrative effort.
- Select from the predefined consolidated roles library
The Red Hat Hybrid Cloud Console provides three predefined, consolidated User Access roles to help you manage user permissions to Red Hat Lightspeed applications and services that run on registered Red Hat Enterprise Linux systems. These roles help simplify how the Organization Administrator creates groups and permissions for various levels of access to the Red Hat Lightspeed services. If you want to reduce the administrative effort required to manage user permissions and your use case aligns with the permissions included in these roles, select from the consolidated roles library.
The consolidated roles are as follows:
RHEL viewer: The RHEL viewer role provides users visibility without the ability to make changes. It allows read-only access to Red Hat Lightspeed. You can view system configurations, compliance reports, inventory data, patch information, vulnerabilities, and overall resource states and activities. The only action permitted with this role is to generate activation keys.
RHEL operator: The RHEL operator role allows active management of your Red Hat Lightspeed environment. With this role, you can edit system configurations, inventory details, policies, and notification/integration settings. The RHEL operator role allows many of the RHEL administrator role functions, but it is restricted from editing compliance policies, content source templates, policies, or tasks. In addition, the RHEL operator role cannot execute remediation plans.
RHEL administrator: The RHEL administrator role provides comprehensive administrative privileges across your RHEL systems and Red Hat Lightspeed. With this role, you can manage system configurations, inventory, compliance policies, notifications, patch management, remediations, malware detection, and advisor recommendations. The role can also view and modify all vulnerability settings.
ImportantTo use the consolidated roles effectively, you might need to remove the granular RHEL roles from the Default access group to prevent permission conflicts. This action automatically changes the name of the predefined Default access group to Custom default access group, after which, it is no longer automatically updated by Red Hat.
See Predefined User Access roles for a list of the roles included in the Default admin access group and a reference table that lists most of the predefined groups and roles that are available in the Red Hat Hybrid Cloud Console and the permissions included in each role.
- Granular roles
- The granular roles are specific roles for individual services that allow for fine-tuned control over specific features of Red Hat Lightspeed, for example, Inventory Hosts administrator or Compliance viewer. If you want to have more control over specific features of Red Hat Lightspeed and your use case does not align with the permissions included in the consolidated roles, use the granular predefined roles.
Across the Red Hat Lightspeed product documentation, the Prerequisites section for each procedure lists which predefined roles provide the permissions needed to use the features in that procedure. For example, if a procedure requires permissions to create and view remediations, the Prerequisites section for that procedure lists the Remediations user or other valid role as a recommended predefined role to use for that procedure.
3.4. Check your permissions
Verify your current permissions and the roles or groups assigned to you in the Red Hat Hybrid Cloud Console. Check your permissions to troubleshoot access issues or understand your level of access to Red Hat Lightspeed applications.
Only users with the Organization Administrator role can view the permissions of other users in the User Access settings and manage user permissions to Red Hat Lightspeed services. For more information, see the Configure user permissions section.
Prerequisites
- You are logged in to the Red Hat Hybrid Cloud Console.
Procedure
- Click the Settings icon (⚙), then navigate to This content is not included. → → .
- Optional: If you require additional permissions, use the Red Hat Hybrid Cloud Console Virtual Assistant to ask "Contact my Organization Administrator". The assistant sends an email to the Organization Administrator on your behalf.
Verification
All of the applications that you have permissions to access are listed on this page and are grouped by product, for example, RHEL, OpenShift Container Platform, and Ansible Automation Platform.
You can also filter your permissions by application, for example, by advisor, cost management, inventory, and remediations.
3.5. Configure user permissions
If you are an Organization Administrator, you can view and manage user permissions for all users in your organization. Control access to Red Hat Lightspeed and other Red Hat Hybrid Cloud Console services through the User Access interface.
If you are not an Organization Administrator, you are unable to complete this task. However, you can check your own permissions for different applications by navigating to This content is not included. → → . Contact your Organization Administrator to request more permissions.
Prerequisites
- You have logged in to the Red Hat Hybrid Cloud Console as an Organization Administrator, or you have the required administrator User Access role permissions.
Procedure
- Click the Settings icon (⚙), then navigate to This content is not included. → → .
Verification
From here, you can create and manage:
- This content is not included. → → → to determine permissions to Red Hat Lightspeed services and features
- This content is not included. → → → to include one or more roles to align with a specific persona, job function, or team in your organization
- This content is not included. → → → and their assignment to groups to inherit permissions from the roles assigned to those groups
Additional resources
3.6. User Access roles for permissions to the inventory service
Understand the predefined roles that control access to the inventory service of Red Hat Lightspeed. Use these role definitions to assign appropriate permissions to users based on their responsibilities.
The following roles enable standard or enhanced access to inventory features:
Table 3.1. Permissions provided by the User Access roles
| User Access role | Grants permissions to … | Included in the Default access group |
|---|---|---|
| Inventory administrator | Do any available operations against any Inventory resource:
(* denotes all permissions on all resources) | |
| Inventory Hosts administrator | Read and edit Inventory Hosts data:
| |
| Inventory Hosts viewer | Read Inventory Hosts data:
| X |
| RHEL administrator | Do any available operations against any Inventory resource:
| |
| RHEL operator |
Note The RHEL operator role is restricted from editing compliance policies, content source templates, policies, or tasks. Also, the RHEL operator role cannot execute remediation plans. | |
| RHEL viewer |
Note Cannot perform actions other than generating activation keys. | |
| Workspaces administrator | Read and edit Workspaces data:
| |
| Workspaces viewer | Read Workspaces data:
| X |
3.7. User Access permissions for workspace access
Control workspace access with custom User Access roles that define permissions for specific workspaces. Workspaces group systems by location, department, or purpose, with each system belonging to only one workspace, ensuring users access only relevant systems.
Workspaces support role-based access control (User Access) to restrict system visibility and management based on user roles and group membership. Use User Access settings to set custom permissions on workspaces according to user role.
- Workspace access roles
You can create and modify a workspace if you are an Organization Administrator or your user account is a member of a group with at least the following role permissions:
- Workspace administrator - This role is automatically included in the Default access group and cannot be removed from it. Users with this role can modify any workspace. Provide this role only to those users who are entitled to access the entire system inventory.
RHEL administrator
NoteTo use workspaces and the User Access feature to restrict access to specific systems, that user must either have Default admin access, or have both the Workspace administrator and the User Access administrator roles.
- Workspace-level permissions
Workspace users have group-level User Access permissions. A user cannot view the systems inside the workspace without inventory:hosts:read permissions. Custom permissions include the following:
inventory:groups:read
- View workspace details page
inventory:groups:write
- Rename the workspace
- Add systems to the workspace
- Remove systems from the workspace
- System-level permissions
Systems users have system-level User Access permissions. They can perform the following workspace operations:
inventory:hosts:read
- View all the systems in the workspace and their details, or view the Ungrouped Hosts system-generated workspace
- View information about the systems for other Red Hat Lightspeed services
inventory:hosts:write
- Rename the system
- Delete the system
- Managing user access to workspaces
-
If you do not have access to workspaces, when you go to the → page, you will see the message
Workspace access permissions needed.
Be aware that you can still view the workspace name assigned to the system for which you have read access, even if you do not have access to the workspace itself. To view the workspace that contains the system, you need to have at least the Workspaces Viewer role, the RHEL viewer role, or have Workspace view permissions assigned. Before making changes in the User Access settings UI, review the list of known limitations in the User Scenarios section of the documentation.
- Inventory permissions
The four inventory permissions available for workspace access include:
- inventory:hosts:read - Allows users to view systems (needed to view systems both inside and outside the workspace).
- inventory:hosts:write - Allows users to rename or delete systems.
- inventory:groups:read - Allows users to view workspaces and general information (not including systems in them).
- inventory:groups:write - Allows users to edit workspace membership (add and remove systems from workspaces).
- Example access scenarios
The following examples describe different access patterns for workspace permissions:
- To allow users to only see systems in specific workspaces, but to not see systems that do not belong to any workspaces, select only those workspaces.
- To allow users to see systems in specific workspaces and any systems that do not belong to any workspaces, select those workspaces for all permissions and select Ungrouped Hosts for inventory:hosts permissions.
- To allow users to see everything in the inventory, you do not need to create a custom role.
- To give a group of system administrators the same access to workspaces A, B, and C, create a single custom role and assign permissions to those three workspaces. However, if you want to give different users access to different workspaces, create a separate custom role for each workspace.
Additional resources
3.7.1. Create custom User Access roles for workspaces
Create custom User Access roles to restrict user access to specific workspaces and implement team-based system isolation. Using RBAC roles in Red Hat Lightspeed can help you to maintain granular controls over inventory permissions.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator or who has User Access administrator permissions.
- You have created at least one workspace and added systems to it.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → . The Identity & Access Management main page is displayed.
- Click Create role. The Create Role wizard is displayed.
Select whether you want to create a new role, or copy an existing role.
- To create a new role, select create a role from scratch.
- To copy an existing role, select Copy an existing role. A list of roles is displayed. Select the role you want to copy, and then click Next.
- Name the new role. You can optionally add a description.
- Click Next. The Add permissions page is displayed.
- The Applications filter is displayed by default. Click the Filter by application drop-down list and select inventory to display all the available inventory permissions.
Select the inventory permissions that you need. Here are some examples:
- To give a user full access to the workspace and all systems in that workspace, select all four permissions.
- To give a user full access to the systems inside a workspace without granting workspace editing access, select inventory:hosts:read, inventory:hosts:write, and inventory:groups:read, but do not select inventory:groups:write.
- To give a user full access to the Ungrouped Hosts workspace, select all four permissions.
- Click Next. The Define workspace access page is displayed.
- Click the drop-down arrow next to each permission in the list, and then select the workspaces you want to apply to those permissions. You must select at least one workspace for each permission.
- Click Next. The Review details page is displayed.
- Review the permissions for the custom role and click Submit.
Next steps
- Repeat this process for each workspace or for each group of users that requires specific workspace access.
3.7.2. Assign custom User Access roles to users
Create a User Access group and assign custom workspace roles to users to control access to specific workspaces. This implements team-based access restrictions and maintains centralized permission management.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator or who has User Access administrator permissions.
- You have created a custom User Access role for workspaces.
Procedure
- At the top right of the screen, click the Settings icon (⚙), and then click User Access.
- In the left navigation menu, click → .
- Click Create group. The Create group wizard displays the Name and description page.
- Add a group name. Optionally, add a description for the group.
- Click Next. The Add roles page is displayed.
- Select the custom role you created, and then click Next. The Add members page is displayed.
- Select the users to whom you want to assign the custom role.
- Click Next. The Add service accounts page is displayed.
- Optional: If you want to assign a service account or accounts to the selected users, select one or more service accounts from the list.
- Click Next. Review the details of your selections and click Submit.
Next steps
Repeat this procedure for each custom role that you want to assign to one or more users.
Additional resources
3.7.3. Configure user access to limit workspace permissions
Remove the Inventory Hosts administrator role from the Default access group to enforce workspace restrictions defined in custom roles. Without this step, all users retain full inventory access through the Default access group regardless of custom role assignments.
The Default access group assigns the Inventory Hosts administrator role to all organization users by default, granting permissions to view and edit all hosts.
After you create and assign a custom role, all users in your organization still have unrestricted access to inventory because they still have the Inventory Hosts administrator role assigned. Default access group permissions apply in addition to custom role permissions.
To restrict the default permissions whereby all users can view and edit all hosts, edit the Default access group to remove the Inventory Hosts administrator role.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator or who has User Access administrator permissions.
- You have created custom User Access roles for workspace access.
- You have assigned custom roles to users or groups.
Procedure
- At the top right of the screen, click the Settings icon (⚙), and then click User Access.
- In the left navigation menu, click → . The list of User Access groups opens.
- Click the Default access group. The list of roles is displayed.
- Select the checkbox for the Inventory Hosts administrator role.
- Click the options icon (⋮) at the far right of the row. The Remove role option is displayed.
- Click Remove role. The Remove role dialog box is displayed.
- Click the Remove role button. If you have never edited the Default access group before, a warning message is displayed.
- Select the I understand, and I want to continue checkbox, and then click Continue.
Verification
After you have finished configuring access, specific users within your organization have full inventory access, and others have limited inventory access based on their assigned custom roles.
Additional resources
3.7.4. Configure Inventory Hosts administrator access
After removing the Inventory Hosts administrator role from the Default access group, create a new User Access group. Assign the Inventory Hosts administrator role to this group to ensure authorized users retain full administrative access.
After you edit the Default access group to remove the Inventory Hosts administrator role, you might want to create a User Access group of users who should have Inventory Hosts administrator permissions.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator or who has User Access administrator permissions.
- You have removed the Inventory Hosts administrator role from the Default access group.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → , which you will also find under the Settings icon (⚙).
- Click Create group. The Create group wizard is displayed.
- Enter a name and a description for the group. The description is optional and can be used to provide context for other administrators.
- Click Next. The Add roles page is displayed.
- Select the Inventory Hosts administrator role from the list of roles.
- Click Next. The Add members page is displayed.
- Select the users to whom you want to assign the role, and then click Next. The Add service accounts page is displayed.
- Optional: If you want to assign a service account or accounts to the selected users, select one or more service accounts from the list.
- Click Next. The Review details page is displayed.
- Review the details of your selections, and click Submit.
3.8. Workspace access control scenarios
Workspace access control supports two common organizational needs: isolating infrastructure between multiple IT teams, and restricting users to ungrouped systems only. Understanding these patterns and their limitations helps you to plan effective workspace configurations.
Use custom User Access roles to restrict users to viewing only the systems in specific workspaces while preventing them from accessing other workspaces or ungrouped systems in your organization.
3.8.1. Common workspace access patterns
Organizations typically implement workspace access control in two scenarios:
- Multiple teams managing separate infrastructure
- Different IT teams manage distinct sets of systems and should not access each other’s infrastructure. Each team gets its own workspace with restricted access.
- Restricted access to ungrouped systems
- Users need access to systems in a specific workspace but should not view ungrouped systems that appear in the Default workspace.
3.8.2. Known limitations
- Users who are Organization Administrators (members of the Default admin access group) will always have full access to systems and workspaces.
- A user without permission on the system will not be able to add it to a Remediation. However, if an existing Remediation with active systems was created in the past, the user will still be able to run it, even if the permissions have been removed on that system for the current user.
Before enabling workspaces in your organization, review your Notifications configuration to ensure that only appropriate groups of users receive Email notifications. If you do not review your Notifications configuration, users might receive alerts triggered by systems outside of their workspace permission scope.
3.8.3. Configure workspace access for multiple IT teams
Create separate workspaces and custom User Access roles to isolate system access between different IT teams in your organization. This ensures each team can only view and manage their own assigned systems.
This procedure outlines a scenario for when you might need to configure separate workspace access for multiple IT teams. In this scenario, two different IT teams working for the same company share the same Red Hat Lightspeed organization within their Red Hat account.
Each IT team must have complete control of their systems on the Red Hat Hybrid Cloud Console, but should not be able to see or modify the systems belonging to the other team. All users within the same team have the same level of access on both their workspaces and their systems. Access levels can be adjusted as needed.
Regular users of both IT teams will not be able to see or modify systems that are not part of any workspaces. Organization Administrators, or anyone with Workspace administrator and Inventory Hosts administrator roles, have access to the entire inventory. Any other users without those roles cannot access the entire inventory.
By default, Organization Administrators (who are members of the Default admin access group) on the Red Hat Hybrid Cloud Console always have read and write access to all workspaces and read and write access to all systems, regardless of how permissions are defined for the workspace objects and systems assigned to them.
These users are the only ones who can configure user access for workspaces. If any regular users need to manage user access, the administrators can grant them Workspace admin and Inventory Hosts admin roles separately.
By default, users who are not Organization Administrators are assigned the Inventory Hosts administrator role from the Default access group. The Default access group gives these users inventory:hosts:read and inventory:hosts:write access across the entire inventory. Those permissions grant read and write permissions on all systems and all workspaces.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group), or who has the RHEL administrator role, or who has both the Workspace administrator and Inventory Hosts administrator roles.
In this scenario, it is assumed that your users all still have access to all systems through the Inventory Hosts administrator role assigned from the Default access group. This role allows users to see all systems, whether or not they are grouped into workspaces. The procedure removes this role to restrict access.
Systems not assigned to any workspace appear in the Ungrouped Hosts workspace. To view them, users need inventory:hosts:read permissions for ungrouped systems, or the Inventory Hosts administrator role. For more information, see Configure Inventory Hosts administrator access.
Procedure
On the Hybrid Cloud Console, navigate to This content is not included. → and click Create workspace to create two separate workspaces:
- Workspace 1: IT team A - Systems
Workspace 2: IT team B - Systems
NoteThis example shows two workspaces, but you can create as many as you need.
- Add systems to the workspaces by clicking in each workspace and selecting Add systems.
To create custom roles for different workspaces, navigate to This content is not included. → , and click Create role:
- Name your role. For example, name the role IT team A - Role. Click Next.
Select the permissions to grant for the workspace and its systems:
- inventory:groups:read
- inventory:groups:write
- inventory:hosts:read
- inventory:hosts:write
- Click Next.
- Choose the workspaces to which you want to grant the permissions. For example, assign the role IT team A - Role to the workspace IT team A - Systems for each permission.
- Click Next.
- Review the details of the role and click Submit.
- Repeat sub-steps a-f to create a second custom role called IT team B - Role and assign it to the workspace IT team B - Systems.
- Optional: To grant your users access to ungrouped systems, edit the custom roles you created in step 3 and add the Ungrouped Hosts workspace to the Group definition of the host permissions.
To create User Access groups to assign the custom roles to users, navigate to This content is not included. → and click Create group. Name the group, select the newly created role, and select the users to whom you want to give the role.
NoteFor example, two IT groups would have the following permissions: IT team A - user group with IT team A - role, and IT team B - user group with IT team B - role.
- To remove the Inventory Hosts administrator role from the Default access group, navigate to This content is not included. → and select the Default access group. Remove the Inventory Hosts administrator role from this group.
- Optional: If your users are also members of additional User Access groups, review those groups and remove the Inventory Hosts administrator role from them as needed.
Verification
Once the role has been removed, the User Access controls behave as expected: Users given custom roles to limit their views to certain workspaces and systems only see those workspaces and systems.
Next steps
If you have more than two IT groups, you can create as many custom roles and user groups as you need.
- To grant the same users access to multiple workspaces, select more than one workspace when defining permissions within the same custom role.
Additional resources
3.8.4. Configure access to ungrouped systems only
Create a custom User Access role that grants users access to ungrouped systems while restricting access to systems organized in workspaces. This ensures specific teams can manage only systems that are not yet assigned to any workspace.
This procedure outlines a scenario for when you might need to restrict user access to ungrouped systems only. In this scenario, an admin wants to give a group of users access to ungrouped systems, but not to systems in workspaces. Ungrouped Hosts is a system-generated workspace that automatically contains all systems that are not part of any other workspace.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group), or who has the RHEL administrator role, or who has both the Workspace administrator and Inventory Hosts administrator roles.
Procedure
On the Hybrid Cloud Console, navigate to This content is not included. → and click Create role to create a custom role. The Create Role wizard is displayed.
- Set the role name and description and click Next.
- Add the inventory:hosts permissions and click Next.
- Configure both of the permissions to apply to the Group definition named Ungrouped Hosts. Click Next.
- Review the details of the role and click Submit.
Add the custom role to an RBAC group:
- After you create the custom role, navigate to This content is not included. → and click Create group to create a User Access (RBAC) group.
Name the group, select the new custom role, and select the users to whom you want to assign this role.
NoteThese steps only work when the users do not have the Inventory Hosts administrator role assigned from the Default access group. To check this, navigate to This content is not included. → and click the Default access group at the top. If that role is in the group, remove it, because that role gives users access to the whole inventory, including both ungrouped and grouped hosts.
Verification
After you remove the role, the selected set of users only has access to ungrouped systems in your inventory.
Chapter 4. Export inventory data
Download system inventory lists and data in CSV or JSON format for offline analysis and reporting.
4.1. Export service features and functionality
Use the Red Hat Lightspeed export service to export system inventory data to CSV or JSON format. With the exported data, you can perform offline analysis, integrate with external tools, and create custom reporting workflows. Exported files are retained for 7 days.
The export service runs asynchronously in the background, allowing you to continue working while your export request is processed. You can export data by using either the UI or the Export API, and choose between CSV or JSON output formats based on your analysis needs.
The service is available in both the Red Hat Lightspeed UI and through the Export Service API.
The exported content includes the following information about each system in your inventory:
-
host_id -
fqdn(Fully Qualified Domain Name) -
display_name -
group_id -
group_name -
state -
os_release -
updated -
subscription_manager_id -
satellite_id -
tags -
host_type
The export service currently exports information about all systems in your inventory. Support for filters will be available in a future release.
The inventory export service works differently from the export function in other services, such as advisor. Some of the differences are:
- The inventory export operates asynchronously
- Exports the entire inventory to one continuous file (no pagination in the export file)
- Retains generated files for 7 days
- Uses token-based service accounts for authorization when you use the Export Service API
Your RBAC User Access permissions affect the system information you can export. You must have inventory:hosts:read permission for a system to export system information.
Additional resources
4.2. Inventory data files
The inventory export process creates a zip file that includes the data file, a manifest, and metadata. The export archive file helps you verify export completion and understand the data structure.
The zip file contains the following files:
id.suffix-
The export data file, with the file name format of
id.jsonfor JSON files, orid.csvfor CSV files. For example:f26a57ac-1efc-4831-9c26-c818b6060ddf.json. README.md- The export manifest for the JSON or CSV file, which lists the downloaded files, any errors, and instructions for obtaining help.
meta.json- Describes the export operation requester, date, organization ID, and file metadata, for example, the filename of the JSON or CSV file.
4.3. Export system inventory from the Red Hat Lightspeed UI
Export inventory data directly from the Red Hat Lightspeed UI to download system information in CSV or JSON format. Use the exported data for offline analysis, reporting, or integration with external tools.
The inventory data export service works differently from the export service for other Red Hat Lightspeed services, such as advisor. The UI export feature initiates the export request and automatically downloads the file to your browser when the export completes.
Prerequisites
RBAC permissions for the systems you want to view and export
- Inventory:hosts:read (inventory:hosts:read * for all systems in inventory)
- A User Access role for workspaces. For more information about User Access roles, see This content is not included.User access to workspaces.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → . The list of systems is displayed.
- Click Export next to the options icon (⋮). The drop-down menu is displayed.
-
Select Export to CSV or Export to JSON. A status message displays:
Preparing export. Once complete, your download will start automatically.
Verification
When the download completes, a browser window automatically opens to display the results. If you stay on the Systems page after you request the download, status messages from Red Hat Lightspeed appear with updates on the progress of the export operation.
Additional resources
4.4. Export Service API
The Export Service API is an asynchronous REST API. You can use the Export Service API to export inventory data in JSON or CSV format. You can also integrate with external tools, automate workflows, and process inventory data offline.
The REST API entry point for the Export Service is:
https://console.redhat.com/api/export/v1
The API supports the GET, POST, and DELETE HTTP methods and offers the following operations:
- POST /exports — Submit an export request
- GET /exports — List all exports
- GET /exports/id — Download a specific export file
- DELETE /exports/id — Delete a specific export file
- GET /exports/id/status — Check the status of an export request
The API works asynchronously. You submit a POST /exports request to initiate the export and receive a reply with a unique ID for that export. You can then use that ID to monitor the progress of the export operation with the GET /exports/id/status request. When the generated export is complete, you can download it (GET /exports/id) or delete it (DELETE /exports/id).
Successful requests return the following HTTP response codes:
- 200 — Success
- 202 — Successfully deleted (for the DELETE method)
The server retains generated export files for 7 days.
Additional resources
- This content is not included.Consoledot Export Service API
- This content is not included.Detail of consoledot Export Service - Public API
- Content from swagger.io is not included.OpenAPI Specification
- Transition of Red Hat Hybrid Cloud Console APIs from basic authentication to token-based authentication via service accounts (Red Hat Knowledgebase)
4.5. Export system inventory by using the Export Service API
Use the Export Service API to programmatically export inventory data by submitting requests, monitoring progress, and downloading completed files. First, obtain an export ID by using POST /exports, then use that ID in all subsequent operations.
Prerequisites
- Token-based service account with the appropriate permissions for your systems
RBAC permissions for the systems you want to view and export
- Inventory:hosts:read (inventory:hosts:read * for all systems in inventory)
- A User Access role for workspaces. For more information about User Access roles, see This content is not included.User access to workspaces.
Procedure
Create a request for the export service, or use this sample request code:
{ "name": "Inventory Export", "format": "json", "sources": [ { "application": "urn:redhat:application:inventory", "resource": "urn:redhat:application:inventory:export:systems" } ] }NoteYou can request CSV or JSON as your export format.
On the Red Hat Hybrid Cloud Console, navigate to the This content is not included.API documentation page.
NoteYou can use the API documentation to experiment and run queries against the API before writing your own custom client or using the APIs in your automation.
- Select POST /exports.
- Remove the existing sample code in the Request Body window and paste the request code into the window.
- Click Execute. This request initiates the export process. The curl request and server response appear, along with the result codes for the POST operation.
- Look for the id field in the server response. Copy and save the string value for id. Use this value for id in your requests.
- Optional: Issue the GET /exports request. The server returns the curl request, request URL, and response codes.
- Optional: To request the status of the export request, issue the GET /exports/id/status request.
- When the export has completed, issue the GET /exports/id request, with the ID string that you copied in place of id. The server returns a link to download the export file (the payload).
- Click Download File. When the download completes, a notification message displays in your browser.
Click the browser notification to locate the downloaded zip file.
NoteThe server retains export files for 7 days.
- Optional: To delete exported files, issue the DELETE /exports/id request.
Additional resources
4.6. Inventory export service for multiple data sources
You can export data from multiple Red Hat Lightspeed services such as inventory and notifications in a single request. Consolidating the data from multiple sources eliminates the need for separate export operations.
The inventory export service supports multi-service exports within a single API request. This capability reduces the number of manual export operations required when you need data from multiple services.
To request multiple services, include the source information for each service in your POST /exports request, as in the following example:
{
"name": "Inventory Export multiple sources",
"format": "json",
"sources": [
{
"application": "urn:redhat:application:inventory",
"resource": "urn:redhat:application:inventory:export:systems",
"filters": {}
},
{
"application": "urn:redhat:application:notifications",
"resource": "urn:redhat:application:notifications:export:events",
"filters": {}
}
]
}
The POST /exports request returns a unique export ID. When the export completes, the GET /exports request returns a ZIP file containing separate JSON or CSV files for each requested service.
4.7. Automate inventory export by using Ansible playbooks
Use an Ansible playbook to automate inventory exports on a schedule. Red Hat Lightspeed provides a generic playbook that uses token-based service accounts for authentication.
Procedure
- Navigate to the Content from github.com is not included.insights-inventory-export GitHub repository.
- Download the inventory-export.yml playbook.
- Run the playbook. The playbook does everything from requesting the export id, to requesting download status, to requesting the downloaded payload.
Chapter 5. Systems lifecycle in the inventory application
Monitor system lifecycle states and configure custom staleness thresholds to control when systems are marked stale or deleted from inventory.
5.1. System lifecycle states
Systems follow a lifecycle with fresh, stale, and stale warning states based on reporting activity to maintain an accurate inventory.
5.1.1. System lifecycle overview
A system is a Red Hat Enterprise Linux (RHEL) host that is managed by the Red Hat Lightspeed inventory in the Red Hat Hybrid Cloud Console. System activity is automatically monitored by Red Hat.
All systems registered with inventory follow a lifecycle with three states: fresh, stale, and stale warning. The lifecycle states determine when a system is eligible for automatic deletion.
The state depends on the last time a data collector reported the system to inventory. Systems are automatically deleted if they do not report within a given time frame. This deletion mechanism maintains an accurate inventory.
5.1.2. State descriptions
The following list shows a description of each state:
Fresh
The default configuration requires systems to communicate with Red Hat daily. A system with the status of fresh is active and is regularly reported to the inventory application. The status is reported by one of the data collectors described in section 1.2. Most systems are in this state during typical operations.
Stale
A system with the status of stale has NOT been reported to the inventory application in the last 24 hours. A system can become stale due to inactivity, a lack of updates, disconnection, or decommissioning without proper retirement processes.
Stale warning
A system with the status of stale warning has NOT been reported to the inventory application in the last 30 days. When a system reaches this state, it is flagged for automatic deletion. After a system is removed from inventory, it is no longer displayed in the inventory application. Red Hat Lightspeed data analysis results are no longer available.
5.1.3. Monitoring and events
The System became stale event highlights potential system maintenance issues. This event can automatically trigger actions, such as notifying administrators or initiating the first steps to diagnose and reactivate Red Hat Lightspeed on the system.
5.2. Inventory system state
View the current system state in inventory to monitor your system lifecycle status and to identify systems that require attention. Your assigned RBAC permissions determine how you view the system state.
You can view system states by using one of the following methods:
- Viewer access - If you have Inventory Hosts viewer access, you can view system states on the Systems page by filtering by status.
- Administrator access - If you have Inventory Hosts administrator access, you can view system state from the Dashboard and access detailed system information.
Additional resources
5.3. Determine system state when you have viewer access
View system state and monitor health by filtering multiple systems or checking individual system details. Filtering identifies stale systems quickly. Individual system views display status indicators, color coding, and deletion countdown.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with at least the Inventory Hosts viewer role.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
Choose one of the following methods:
To filter multiple systems by state:
- Click the Filter drop-down list, and select Status.
- Click the Filter by status drop-down, and choose the states you want to include in your query.
Click Reset filters to clear your query.
To view an individual system’s detailed state:
- Click a system name from the list.
- Scroll to the bottom of the system details page.
Check the System status box. The state is either Active or Stale.
- If the state is Stale, a warning icon is displayed at the top of the system page in the Last seen field, and the field is highlighted in brown.
- If the system remains in Stale state for the configured period, the state changes to Stale warning. The Last seen field shows a warning indicator that the system is at risk of deletion.
- If the system has a stale warning icon in the Last seen field, click the icon to view when the system will be deleted from inventory. For example, "System scheduled for removal in 11 days."
5.4. Determine system state using administrator access
View system state from the dashboard and access detailed system information to monitor system lifecycle status and identify systems requiring attention. You need Inventory Hosts administrator RBAC permissions to access detailed system information.
Prerequisites
- You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with the Inventory Hosts administrator role.
Procedure
- On the Hybrid Cloud Console, navigate to the This content is not included.Red Hat Lightspeed dashboard page.
- Go to the top left of the screen where you can examine the total number of systems that are registered with Red Hat Lightspeed.
- After the total number, towards the right side of this value, you will see the number of stale systems and the number of systems to be removed.
Click either:
- The stale systems link.
- The systems to be removed link, if applicable.
Verification
The inventory page opens with detailed system information.
5.5. Modify system staleness and deletion time limits in inventory
Modify system staleness and deletion time limits to prevent active offline systems from being deleted.
By default, system states have the following time limits:
- Systems are labeled stale if they are not reported in 1 day. A warning icon is displayed at the top of the Systems page in the Last seen: field.
- Systems are labeled stale warning if they are not reported within 7 days. In this case, the Last seen: field is displayed with a warning indicator, indicating the system is at risk of deletion.
- Systems that are not reported in 30 days are deleted.
There are situations where a system is offline for an extended time period but is still in use. For example, test environments are often kept offline except when testing. Submarines or Internet of Things (IoT) devices can be out of range of communication for extended time periods. You can modify the system staleness and deletion time limits to ensure that systems that are offline but still active do not get deleted. Staleness and deletion settings get applied to all of your systems.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with at least one of the following roles:
- Organization staleness and deletion administrator
- RHEL administrator
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → → .
- Click Edit. The drop-down arrows next to each value are now enabled.
Click the arrow next to the value that you want to change and then select a new value.
NoteThe system stale warning value must be less than the system deletion value.
- Optional: To revert to the default values for the organization, click Reset.
Click Save.
NoteSetting the system deletion maximum time to less than the current maximum time deletes systems that have been stale for longer than the new maximum time.
Additional resources
5.6. Custom staleness and deletion limits for the Host Inventory API
The Red Hat Lightspeed Host Inventory API provides custom staleness and deletion limit configurations to override default values. These configurations prevent the premature automatic deletion of offline systems that remain in active use.
When you do not have custom staleness and deletion settings configured for your system, Red Hat Lightspeed uses the default values to determine whether the system is in a stale state, or whether it should be automatically deleted.
- Default staleness and deletion limits
- By default, if a system has been stale for at least 30 days, it becomes subject to automatic deletion. A scheduled system process runs hourly to automatically delete stale hosts from inventory if they have reached their deletion limit.
Additional resources
5.6.1. System staleness properties
Staleness properties define time thresholds that control system lifecycle state transitions and automatic deletion. Custom staleness configurations prevent the premature deletion of offline systems that remain in active use.
Staleness properties control the length of time allowed between system states. These properties are configured through the Red Hat Lightspeed Host Inventory API by using the /api/inventory/v1/account/staleness endpoint.
A staleness object is a JSON payload that defines values for system staleness properties. Staleness configurations apply to all systems in the inventory.
- Staleness object properties
A staleness object contains the following properties:
-
conventional_time_to_stale— the time period of inactivity before the system entersstale_warningstatus. Default: 29 hours (104400 seconds). -
conventional_time_to_stale_warning— the time period duringstale_warningstatus. Default: 7 days (604800 seconds). -
conventional_time_to_delete— the time remaining before the system is deleted from the database. Default: 30 days (2592000 seconds).
-
- Customization and constraints
Custom staleness configurations override the default values for these properties.
When setting custom values, note that the UI displays staleness times in days, but the API uses seconds.
The value of conventional_time_to_stale must be lower than the conventional_time_to_stale_warning. The value of conventional_time_to_stale_warning must be lower than the conventional_time_to_delete value.
Using the Red Hat Lightspeed API to set custom staleness and deletion limits can lead to non-standard outcomes. If you experience unexpected results, revert to the default staleness and deletion limits for your systems.
Additional resources
5.6.2. Available API operations
The Managed Inventory API provides operations to manage custom staleness and deletion values for your system inventory.
The Managed Inventory API offers the following operations:
- GET /account/staleness — Reads the custom staleness and deletion values set in your system inventory
- GET /account/staleness/defaults — Returns the default staleness values that are used when custom staleness is not set
- POST /account/staleness — Set custom staleness and deletion values for your system inventory
- PATCH /account/staleness — Update your custom staleness and deletion values
- DELETE /account/staleness — Delete your custom staleness values
The first time you create a custom configuration, use the POST operation to create the configuration. Once you have created a custom configuration, you can use the PATCH operation to change the values. If you remove the configuration with DELETE, the system reverts to the default staleness configuration.
5.6.3. Check default staleness values by using the API Catalog
Retrieve default staleness configuration values by using the Red Hat Lightspeed API Catalog with sample code in your preferred programming language. The default configuration values help you understand baseline system lifecycle settings.
Prerequisites
- You have the programming language you want to use (for example, Python) installed on your system.
- You have a service account set up and configured for authentication in the application or system that will be performing the API calls. For more information about authentication, see Configure Authentication with Red Hat Lightspeed APIs.
- You have an access token that you obtained from your service account or from an offline access token.
-
You have the
staleness:staleness:readRBAC permission.
Procedure
- Open the This content is not included.Red Hat Lightspeed API Catalog in a web browser.
- Select Managed Inventory from the catalog.
Under the Operations list, locate and expand the GET /account/staleness/defaults operation.
The expanded operation displays:
-
Operation description and required RBAC permissions, such as
staleness:staleness:read Expected response codes and their meanings, such as:
- 200: Successfully read the staleness account
- 400: Invalid request
- Sample request and response format
-
Operation description and required RBAC permissions, such as
- In the code sample panel on the right, select your preferred programming language from the dropdown list (for example, Python).
Review the generated sample code. The code includes:
- The complete API endpoint URL
- Required headers (Authorization with Bearer token, Content-Type)
- The GET request method
- JSON response handling
Copy the sample code and paste it into a file. For example, create a Python file named
get_staleness.py:import requests url = "https://console.redhat.com/api/inventory/v1/account/staleness/defaults" headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.get(url, headers=headers) print(response.json())-
Replace
<token>with your access token. Run your code:
$ python get_staleness.py
Verification
- Verify that the server returns a response code of 200, indicating a successful API call.
Review the returned data, which looks similar to the following:
{ "id": "system_default", "org_id": "7931872", "conventional_time_to_stale": 104400, "conventional_time_to_stale_warning": 604800, "conventional_time_to_delete": 1209600, "created": null, "updated": null }TipIf the code returns a response other than 200, refer to Response Codes to determine how the API call failed and how to remedy the reason for the failure.
5.6.4. Check default values by using the Legacy API documentation
Retrieve default staleness configuration values by using the Legacy API documentation interface in the Red Hat Hybrid Cloud Console. This helps you understand baseline system lifecycle settings.
Prerequisites
- You are logged in to the Hybrid Cloud Console.
- You have the necessary permissions to perform the queries.
-
You have the
staleness:staleness:readRBAC permission.
Procedure
- On the Hybrid Cloud Console, navigate to the This content is not included.API documentation page.
Select Managed Inventory from the list of services.
- The Detail page opens and shows the Insights Host Inventory REST Interface operations (Servers This content is not included.https://console.redhat.com/api/inventory/v1 - API server).
Click the drop-down arrow next to the GET /accounts/staleness/defaults operation.
- The GET request does not need input, and the message No parameters is displayed.
Click Try It Out.
- The page displays the format of a successful server response.
- Click Execute.
Verification
-
Verify that the page displays a
curlrequest to the server, the request URL, and the server response with the default staleness configuration values. -
Optional: To copy the
curlrequest, click the clipboard icon on the right side of thecurlrequest. To copy the server response, click the clipboard icon in the top right corner. - Optional: To download the server response as a JSON file, click Download.
Optional: To clear the server response and retry the command, click Clear.
NoteIf the server returns a response of 403 or another unsuccessful response, verify that you have the correct RBAC permissions and retry the request.
5.6.5. Create a custom staleness object with the Red Hat Lightspeed API
To prevent the premature deletion of offline systems, you can create custom staleness configuration values by using the API Catalog. You can define staleness thresholds and deletion timing to align with your network maintenance schedules.
Prerequisites
- You have the programming language you want to use (for example, Python) installed on your system.
- You have a service account set up and configured for authentication in the application or system that will be performing the API calls. For more information about authentication, see Configure Authentication with Red Hat Lightspeed APIs.
- You have an access token that you obtained from your service account or from an offline access token.
-
You have the
staleness:staleness:writeUser Access permission.
Procedure
- Open the This content is not included.Red Hat Lightspeed API Catalog in a web browser.
- Select Managed Inventory from the catalog. The Red Hat Lightspeed Host Inventory REST Interface page opens.
- Click the drop-down arrow next to the POST /account/staleness operation. The description for the operation includes parameters you can use to refine your API call and expected responses from the server. In addition, the panel on the right side of the page generates an example API call for the POST request in multiple languages.
- In the panel, click the drop-down and select the language you prefer (for example, Python) from the list of options. The panel displays sample code for the POST request, formatted in Python syntax.
Copy the sample code and paste it into a Python code file where you want to call the POST request. For example:
import requests url = "https://console.redhat.com/account/staleness" payload = { "conventional_time_to_delete": 1, "conventional_time_to_stale": 1, "conventional_time_to_stale_warning": 1, } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json())- Add the custom staleness times you want to use in seconds in place of the values of 1 shown in the sample. Remember that a value of 1 in the API equals one second, not one day.
- Paste your access token for authentication in place of <token>.
- Run your code.
Verification
If the server returns a response of 201, your API call was successful.
5.6.6. Create a custom staleness object by using the legacy API documentation
Create custom staleness configuration values by using the Legacy API documentation to control system state transitions in inventory.
Prerequisites
You are logged in to the Red Hat Hybrid Cloud Console as one of the following:
- An Organization Administrator (member of the Default admin access group)
-
A user with the
staleness:staleness:writeUser Access permission
Procedure
- On the Hybrid Cloud Console, navigate to the This content is not included.API documentation page. The API Documentation page opens.
- Select Managed Inventory from the list of services. A page titled Insights Host Inventory REST Interface operations (Servers This content is not included.https://console.redhat.com/api/inventory/v1 - API server) opens.
- Click the drop-down arrow next to the POST /accounts/staleness operation.
- Click Try It Out. The page displays the format of a successful server response.
- Add custom staleness values in place of the number 1 for each parameter in the request body. Remember that the value of 1 in the API equals 1 second, not 1 day.
-
Click Execute. The page displays a
curlrequest to the server, the request URL, and the server response. -
To copy the
curlrequest to the clipboard, click the clipboard icon on the right side of thecurlrequest. - To copy the server response to the clipboard, click the clipboard icon in the top right corner.
To download the server response as a JSON file, click Download.
NoteIf the server returns a response of 403 or another unsuccessful response, verify you have the correct RBAC permissions. Then retry the request.
Optional: To clear the server response and retry the command, click Clear.
Chapter 6. Manage systems with workspaces
Workspaces can group your systems for easier management, filtering across applications, and user access control. Using workspaces can help enhance your operational efficiency and security.
6.1. Workspace characteristics
Workspaces in Red Hat Lightspeed organize systems based on criteria such as environment, application, or team ownership. You can use workspaces to streamline workflows and control user access.
In Red Hat Lightspeed, workspaces are only for systems. Each system can belong to only one workspace. Systems that are not assigned to a specific workspace are automatically grouped in the Ungrouped Hosts workspace.
Additional resources
6.2. Workspace limits and restrictions
Each organization can have up to 120 workspaces. Workspaces follow naming, structural, and assignment rules that help ensure efficient system organization and access control.
6.2.1. Organization workspace limit
Each organization can create up to 120 workspaces.
This limit includes both workspaces with systems and empty workspaces.
TipIf this limit is reached, delete existing workspaces to free up capacity.
The default Ungrouped Hosts workspace does not count toward this limit.
6.2.2. Workspace naming restrictions
- Workspace names must be unique within your organization.
- Workspace names can consist of lowercase letters, numbers, spaces, hyphens (-), and underscores (_).
Workspace names cannot contain special symbols such as dots (.) or ampersands (&).
ImportantIf your RHEL machine groups include special symbols in their names, you cannot create workspaces with matching names.
6.2.3. Workspace structure restrictions
- Workspaces cannot be nested.
6.2.4. System assignment restrictions
- Each system can belong to only one workspace at a time.
- Unassigned systems are automatically grouped in the Ungrouped Hosts workspace.
6.3. Create a workspace
On the Red Hat Hybrid Cloud Console, you can create a workspace to organize systems by environment, team, application type, or location. This enables you to filter system views across applications, control user access to specific systems, and streamline operational workflows.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who has one of the following roles:
- Workspace administrator
- RHEL administrator
- RHEL operator
You have read Workspace limits and restrictions.
ImportantEach organization can create up to 120 workspaces. If you reach this limit, an error occurs, and you must delete existing workspaces before creating new ones.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click Create workspace. The Create workspace dialog box is displayed.
- Type a name for the workspace in the Workspace name field. Names can consist of lowercase letters, numbers, spaces, hyphens (-), and underscores (_).
- Click Create. The new workspace is displayed in the list of workspaces.
6.4. Create a workspace and add a system from the Inventory page
Create a new workspace and add a system to it in a single operation from the Inventory Systems page. This lets you quickly organize a specific system without creating the workspace separately first.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or is a member of a group that has one of the following roles:
- Workspace administrator
- RHEL administrator
- RHEL operator
- inventory:groups:write and inventory:groups:read permissions for that particular workspace
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → . The list of systems in your inventory is displayed.
- Locate the system that you want to add.
- Click the options icon (⋮) on the far right side of the system listing.
- Select Add to workspace from the menu. The Add to workspace dialog box is displayed.
- Click Create a new workspace. The Create workspace dialog box is displayed.
- Type a name for the new workspace in the Name field and click Create. The Inventory page is displayed and shows a status (success or failure) message.
6.5. Add systems to an existing workspace
Add systems to an existing workspace in the Red Hat Hybrid Cloud Console to organize them by team, environment, or application. You can also use workspaces to control user access to groups of systems.
Each system can belong to only one workspace. To move a system to a different workspace, you must first remove it from its current workspace and then assign it to the new workspace.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who is a member of a group with at least one of the following role permissions:
- Workspace administrator
- RHEL administrator
- inventory:groups:write and inventory:groups:read permissions for that particular workspace
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click the name of the group to which you want to add systems.
- On the Systems tab, click Add systems. The Add systems dialog box displays and shows the systems available for you to view in inventory.
Select the systems you want to add to the workspace.
NoteMake sure that all the systems you have selected are ungrouped, or you will not be able to proceed.
- When you have finished selecting systems, click Add systems.
Verification
The Workspaces page displays and includes the systems you added to the workspace.
6.6. Remove systems from the workspace
Remove systems from a Red Hat Lightspeed workspace when they no longer belong to maintain accurate organization and proper access control. Removed systems automatically move to the Ungrouped Hosts workspace.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who is a member of a group with at least one of the following role permissions:
- Workspace administrator
- RHEL administrator
- RHEL operator
- inventory:groups:write permissions for that particular workspace
Removed systems move to the Ungrouped Hosts workspace. To view them there, you need inventory:hosts:read permissions for ungrouped systems, or the Inventory Hosts administrator role.
NoteIf you need to grant users these permissions, see Configure Inventory Hosts administrator access.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Select the workspace that contains the systems that you want to remove.
- Locate the system that you want to remove from the workspace.
- Click the More options icon (⋮) on the far right side of the system listing.
Select Remove from workspace from the menu. The Remove from workspace? dialog box is displayed.
NoteTo remove multiple systems from the workspace at once, select each system you want to remove, and then select Remove from workspace from the More options menu (the options icon (⋮)) in the toolbar.
- Click Remove.
Verification
The Workspaces page displays the updated workspace with a success or failure status message.
Additional resources
6.7. Rename a workspace
On the Hybrid Cloud Console, you can rename a workspace to better reflect its purpose. You might need to do this when team ownership changes or system groupings are reorganized.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who has one of the following roles:
- Workspace administrator
- RHEL administrator
- RHEL operator
- inventory:groups:write permissions for that particular workspace
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click the Workspace actions drop-down menu in the upper right corner of the Workspaces page.
- Select Rename from the drop-down menu. The Rename workspace dialog box is displayed.
- Type the new name into the Name field, and click Save.
Verification
The Workspaces page shows the renamed workspace in the list of workspaces.
6.8. Delete the workspace
On the Hybrid Cloud Console, you can delete a workspace when you no longer need it to organize systems. This helps you manage workspace capacity and stay within the organization limit.
Before you delete a workspace, make sure that the workspace does not contain any systems. You can only delete empty workspaces. If you attempt to delete a workspace that still contains systems, Red Hat Lightspeed returns a warning message.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is an Organization Administrator (member of the Default admin access group) or who has one of the following roles:
- Workspace administrator
- RHEL administrator
- RHEL operator
- inventory:groups:write permissions for that particular workspace
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Click the options icon (⋮) on the far right side of the listing for the workspace you want to delete.
- Select Delete from the menu. The Delete workspace dialog box is displayed.
- Select the checkbox to acknowledge that the delete operation cannot be undone. Click Delete.
Verification
The Workspaces page shows an updated list of workspaces and a status (success or failure) message.
You can also delete the workspace from within the page for the workspace itself. Navigate to the workspace and click the Actions drop-down menu and then select Delete.
6.9. Troubleshoot workspace creation errors
Diagnose and resolve workspace creation errors such as workspace limits, permission issues, or duplicate name conflicts to successfully create and manage workspaces.
Common workspace creation errors include:
- Workspace limit reached: Your organization has reached the maximum limit of 120 workspaces. Free up capacity by deleting empty workspaces, merging similar workspaces, or removing systems before deletion.
- Permission errors: You do not have the required permissions to view or create workspaces. Contact your organization administrator to request the Workspace administrator role.
- Duplicate name errors: Workspace names must be unique within your organization. Choose a different name that consists of lowercase letters, numbers, spaces, hyphens (-), and underscores (_).
Procedure
If you see "Failed to create workspace" or "Workspace limit reached (120/120)", free up workspace capacity by using one of the following methods:
- Delete empty workspaces: On the Hybrid Cloud Console, navigate to This content is not included. → , identify workspaces that contain no systems, and delete the ones you no longer need. For details, see Deleting workspaces.
- Merge workspaces: Review your existing workspaces to identify those with similar user groups and role bindings. Move systems from many workspaces into a single workspace and delete the now-empty workspaces.
Remove systems before deleting: Before deleting a workspace that has systems, remove the systems from the workspace or move them to another workspace. Systems removed from a workspace automatically move to the Ungrouped Hosts workspace.
After you delete one or more workspaces, retry creating the new workspace.
- If you see "Workspace access permissions needed", contact your organization administrator to request the Workspace administrator role. For details about workspace permissions, see User access to workspaces.
- If you see an error that a workspace name already exists, choose a different name for your workspace.
6.10. Additional resources
Chapter 7. Configure notifications for inventory events
Configure email and integration notifications to receive alerts when inventory events that you are interested in occur in your organization.
7.1. Inventory event types
The inventory service triggers event types for validation errors, system registration, deletion, and staleness changes. This enables automated notifications, monitoring, and workflow integration based on inventory activity.
7.1.1. Event types
The four inventory service events are as follows:
- Validation error
When data in a payload from
insights-clientis not valid (corrupted data, incorrect values, or other issues) a Validation error event is triggered. The validation process includes the following steps:-
insights-clientruns on the system and generates a payload. -
insights-clientuploads the payload to the Hybrid Cloud Console. - The Hybrid Cloud Console receives the payload and validates it. The validation event triggers at this step. A validation error means that the payload cannot be processed, and that the console and Red Hat Lightspeed services cannot use its data.
-
- New system registered
- When you register a new system in inventory, a New system registered event is triggered.
- System deleted
- When a system is removed from inventory (either manually or when it becomes stale and Red Hat Lightspeed automatically removes it), a System deleted event is triggered.
- System became stale
When a system changes state from active to inactive (stale),a System became stale event is triggered. The Hybrid Cloud Console and Red Hat Lightspeed scan for system staleness every hour, and trigger staleness events for inactive systems. By default, Red Hat Lightspeed marks a system as stale if it remains inactive for 1 day. If the system remains inactive for 30 days, Red Hat Lightspeed marks the system as stale warning and schedules it for deletion.
A system can become stale due to inactivity, a lack of updates, disconnection, or decommissioning without proper retirement processes. This event indicates potential system maintenance issues.
7.1.2. Notifications
You can configure notifications for inventory events by using the Notifications service in the Red Hat Hybrid Cloud Console. The Notifications service enables you to configure responses to these events for your account. You can send email notifications to groups of users, or you can forward events to third-party applications, such as Splunk, ServiceNow, Event-Driven Ansible, Slack, Microsoft Teams, or Google Chat. You can also forward notifications by using a generic webhook with the Integrations service.
To receive Notifications emails, users must subscribe to email notifications in their user preferences. Users may choose to receive each email notification individually, or they may subscribe to a daily digest email.
The New system registered, System became stale, and System deleted events are particularly useful for driving automation, and for integrating Red Hat Lightspeed into your operational workflows. For example, you can configure these events to automatically launch compliance or malware checks, validate systems assignments to Workspaces, update external CMDB records, or continuously monitor your RHEL environment.
7.2. Set up organization notifications for inventory events
Configure behavior groups to receive notifications when inventory events occur across your organization. This enables centralized monitoring, automated workflows, and team-based alert routing for inventory changes.
Make sure that you configure third-party system integrations in the Red Hat Hybrid Cloud Console, as well as any behavior groups that should receive inventory notifications. For more information about third-party system integrations, see Integrating the Red Hat Hybrid Cloud Console with third-party applications.
Prerequisites
You are logged in to the Hybrid Cloud Console as a user who is a member of a User Access group with at least one of the following roles:
- Notifications Administrator
- RHEL administrator
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → → .
- In the Configuration tab, select the Service filter.
- Click Filter by service, and then select Inventory from the drop-down list. The inventory events appear in the list of events.
- Select the event type you want to configure (for example, New system registered).
- To configure the event type, click the Edit (pencil) icon at the far right of the event type. A drop-down list displays the list of available behavior groups configured in your organization.
- Select the checkboxes next to the behavior groups you want to configure for the Inventory event type.
- When you have finished selecting behavior groups, click the checkmark next to the list of behavior groups to save your selections.
7.3. Set up user email notifications for inventory events
Configure user email preferences to receive notifications about inventory events such as system registration and deletion. This enables you to monitor inventory changes and respond quickly to system lifecycle events.
Make sure to configure email preferences for each user to receive email notifications. For more information about how to set up user preferences, see Configuring user preferences for email notifications.
Prerequisites
- You are a member of a user group that receives email notifications as part of a behavior group.
- The behavior group is configured to trigger email notifications for your systems and to send those notifications to the user group to which you belong.
Procedure
- On the Hybrid Cloud Console, navigate to This content is not included. → .
- Select Inventory from the list of services. The list of available notifications for Inventory is displayed.
- Click the checkbox next to each type of notification you want to receive, or click Select All to receive all notifications for all Inventory events.
Click Save.
NoteConfiguring instant notifications might result in a large volume of email messages.