> For the complete documentation index, see [llms.txt](https://docs.cybus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-mount.md). Agents can also search and read this documentation through its [MCP server](https://docs.cybus.io/~gitbook/mcp).

# Cybus::Mount

Decide where an asset lives in a Unified Namespace, and move the asset with all its topics by changing one property.

The **Cybus::Mount** resource places a [Cybus::Asset](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-asset.md) at a node of a [Cybus::Namespace](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-namespace.md), or below a parent asset. The mount decides the topics of the asset. For how the UNS resources work together, see [Namespaces, Models, and Assets](https://docs.cybus.io/2-8-0/unified-namespace/unified-namespace.md).

An asset can also place itself with the [mount](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-asset.md#mount) or [promote](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-asset.md#promote) shorthand. Use a separate Cybus::Mount when a central service places assets that other services declare, so that the factory layout lives in one place.

The asset must already be installed when you install the mount. Install the service that declares the asset first. Endpoints and mappings that reference the asset need the mount, so add them once the mount is installed.

## Mount Properties

| Property                    | Type      | Required     | Default                      |
| --------------------------- | --------- | ------------ | ---------------------------- |
| [asset](#asset)             | `string`  | **Required** |                              |
| [at](#at)                   | `string`  | **Required** |                              |
| [key](#key)                 | `string`  | Optional     | The resource ID of the asset |
| [promote](#promote)         | `boolean` | Optional     | `false`                      |
| [targetState](#targetstate) | `enum`    | Optional     | `enabled`                    |

### asset

The asset to place, by its asset ID across all services. If that ID exists in more than one service, use `srv:<serviceId>/<assetId>`. For an asset in the same service commissioning file, you can use `!ref`.

* **Required**
* Type: `string`

### at

The place of the asset.

* **Required**
* Type: `string`

Use one of the following values:

* A node path, for example `uns:factory/hall2`. With the default `placement: tree-only` policy of the namespace, the node must exist in the tree.
* The ID of a parent asset, to place the asset below it. The asset then gets the base topic of the parent plus its `key`. For example, an asset `motor` with `at: pump01` gets the base topic `factory/hall1/pump01/motor` when `pump01` is mounted at `uns:factory/hall1`. The parent must be mounted.

### key

The topic segment of the asset below the mount point. It must follow the [naming rules](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-namespace.md#naming-rules) of the namespace.

* **Optional**
* Type: `string`
* Default: the resource ID of the asset

### promote

When `true`, the asset promotes the node. Its topics live at the node path itself, without a segment of their own. A node can have one promoted asset. A second one fails the installation with an error that names both.

`key` and `promote` cannot be used together. `promote` works only when `at` is a node path, not a parent asset. The data properties of a promoted asset share the level below the node with its child nodes and other mounts. A data property with the same name as one of them fails the installation.

* **Optional**
* Type: `boolean`
* Default: `false`

### targetState

Whether the resource is active. A disabled mount publishes no `$meta` topic for the asset. The asset keeps its topics, and endpoints that reference it keep publishing.

* **Optional**
* Type: `enum`
  * Allowed values: `enabled`, `disabled`
* Default: `enabled`

## Placement Rules

An asset has one mount per namespace. The following mounts fail the installation:

* A mount that places the asset in a second namespace while other services reference the asset. The error names those services.
* A mount whose topic another mount already uses.
* A mount whose topic is the path of a declared node. To place an asset at the node path itself, use [promote](#promote).

Moving a mount to another node changes the topics of the asset. Its ID, model, and global ID stay the same.

## Removing a Mount

A mount cannot be removed or renamed while an endpoint, mapping, or mount of another service uses its topics. Renaming means changing the resource ID of the mount. The error names the services and resources.

An [asset: grant](https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-asset.md#topics-of-an-asset) of another service follows the asset instead. Removing or renaming the mount then succeeds if the same or another service keeps the asset mounted.

Moving the mount by changing its `at` or `key` is always allowed. Connectware updates the services that depend on it, and the grants follow the asset.

## Example

A central placement service mounts the asset `pump02`, which another service declares, at the node `hall2` of the `factory` namespace:

{% code title="Placement service" lineNumbers="true" %}

```yaml
description: Places assets of other services in the factory namespace

metadata:
  name: plantmounts
  version: 1.0.0

resources:
  pump02Mount:
    type: Cybus::Mount
    properties:
      asset: pump02
      at: 'uns:factory/hall2'
```

{% endcode %}

The topics of `pump02` start with `factory/hall2/pump02`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cybus.io/2-8-0/data-flows/service-commissioning-files/resources/cybus-mount.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
