> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/inventories/services.md).

# Services

Browse the cloud and application services that your adapters report, filter them with queries, and open a service to see its details.

Service Inventory lists the services that your adapters discover in cloud, container and application platforms, for example a load balancer, an object storage bucket, a function or a database. Use it to answer questions such as which services run in a region, which resource types you have, or which services are not in a healthy deployment status.

Each row is one service record reported by one adapter. OctoXLabs does not merge services from different adapters, so the **Adapters** column of a row shows a single adapter.

### Where the data comes from

The inventory is filled by adapters that provide service data, and it is rebuilt at every discovery. Examples include AWS Services, Microsoft Azure Services, Google Cloud Services, Kubernetes, Lansweeper, UpGuard, VMware Tanzu and Trend Micro Conformity. Services can also come from the file-based adapters for CSV, JSON, XLSX and XML files (see File-based adapters). The full list of adapters that support services is in the adapter pages at <https://docs.octoxlabs.com/adapters>.

To make data appear, connect at least one of these adapters and run a discovery. See Connect an adapter and Discovery and Aggregation.

### Open the inventory

In the left menu, click **Inventories** > **Services**. The page title is **Service Inventory**.

The list shows the data of one discovery. Use the discovery selector next to the search box to look at an earlier discovery. The newest completed discovery is selected by default.

{% hint style="info" %}
You need the permission to view services to see the page and the permission to view service details to open a record. Both are available only when your product licence includes the services module. See Product Licence.
{% endhint %}

### Columns

These columns are shown by default. Use **Columns** > **Edit Columns** to change them (see below).

| Column            | Field              | What it shows                                                                                                                                                                |
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Adapters          | `Adapters`         | The adapter that reported the service. Click the adapter to filter the list by it.                                                                                           |
| Primary Key       | `PrimaryKey`       | The unique ID of the service record. It is always shown. Click it to open the detail page.                                                                                   |
| Name              | `Name`             | The name of the service.                                                                                                                                                     |
| Region            | `Region`           | The region the service runs in.                                                                                                                                              |
| Parent Region     | `ParentRegion`     | The parent of the region, when the source reports one.                                                                                                                       |
| Resource Type     | `ResourceType`     | The kind of resource, shown as a readable label such as Load Balancer, Virtual Machine, Object Storage or Functions.                                                         |
| Service Type      | `ServiceType`      | The service type as reported by the source.                                                                                                                                  |
| Created Date      | `CreatedDate`      | When the service was created.                                                                                                                                                |
| Service Version   | `ServiceVersion`   | The version of the service.                                                                                                                                                  |
| Deployment Status | `DeploymentStatus` | The deployment state, shown with a coloured dot. Known values are pending, updating, deleting, running, failed, stopping, stopped and disabled. An empty value shows as N/A. |

The column picker can also show the **Tags** field, and the fields that a single adapter reports.

Click a value in the **Adapters**, **Tags**, **Region**, **Parent Region**, **Resource Type**, **Service Type**, **Service Version** or **Deployment Status** column to add that value to the query and filter the list. Double-click a cell to copy its value.

### Filter and search

Choose one of three ways to filter the list.

{% tabs %}
{% tab title="Type a query" %}
Write a query in the search box and press Enter. For example, to list running services in a region whose name contains "eu":

```
DeploymentStatus = running AND Region ~ eu
```

The values depend on what your adapters report. The syntax is the same everywhere in OctoXLabs. See OctoXLabs Query Reference for the fields of this inventory.
{% endtab %}

{% tab title="Query Wizard" %}
Click **Query Wizard** to build the query from rows of field, operator and value, then click **Run**.
{% endtab %}

{% tab title="Query AI" %}
Click the **Query** button with the AI icon and describe what you want in plain language. The button appears when you have the permission to use AI and your administrator has set up AI. See AI Configuration.
{% endtab %}
{% endtabs %}

To keep a query, click **Save As** above the search box and give the query a name. Saved queries of this inventory are listed under **Inventories** > **Services** > **Saved Queries**. See Create and Save Queries.

IMAGEHERE: Service Inventory list with a query in the search box, the discovery selector, and the Query Wizard, Actions, Columns and Download buttons.

### Actions on the list

| Button                          | What it does                                                                                                                                                 |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Query Wizard**                | Opens the query builder.                                                                                                                                     |
| **Actions** > **Add Tag**       | Adds a tag to the rows you selected with the check boxes. If no row is selected, a **No assets selected** warning appears. Needs the permission to add tags. |
| **Columns** > **Edit Columns**  | Opens a picker to choose the columns. **PrimaryKey** cannot be removed. Your choice is saved for your user.                                                  |
| **Columns** > **Reset Columns** | Goes back to the default columns listed above.                                                                                                               |
| **Download**                    | Creates a report of the current query and columns in **CSV**, **PDF** or **XLSX** format. Needs report permissions.                                          |

The list shows at most 10,000 records for a query. For larger result sets, use the Report Builder. See Generate a Report.

Above the list, a strip of charts and widgets for this inventory can be changed with **Add Chart/Widget** (up to 4 items). To build your own, see Create a Dashboard Chart.

### Service detail page

Click a **Primary Key** to open the record. The cards at the top show:

* **Service Name**, **Created Date** and **Primary Key**.
* **Service Type** and **Service Version**.
* **Data Source** (the adapter), **Region** and **Resource Type**.
* A card with **Manually Added Tags**, **Tags from Query** and **Notes**, where you can add tags and a note to this service by hand.

Below the cards, use the selector on the right to switch between **Pretty View**, **Raw** and **Dependency Map**. The tabs on the left list **OctoXLabs** (the normalised fields) and one tab for the adapter that reported the service, with the fields as the adapter returned them. Use the search box and the sort options (**A-Z**, **Z-A**, **Default**) to find a field. The discovery selector lets you open the same service in another discovery. For the map, see Dependency Map.

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create and Save Queries</strong></td><td>Build a query once and reuse it in the list, dashboards and reports.</td><td></td></tr><tr><td><strong>Query Reference</strong></td><td>Operators, value types and the fields of every inventory.</td><td></td></tr><tr><td><strong>Web Application Inventory</strong></td><td>See the web applications and APIs that run on top of your services.</td><td></td></tr><tr><td><strong>Generate a Report</strong></td><td>Export the inventory as CSV, PDF or XLSX.</td><td></td></tr></tbody></table>
