---
parent: /workflows/agents.md
back_out_url: /workflows/agents.md
---

# Workflow 9: Configure OPC UA Server with Tags

> You are at https://api.litmus.io/workflows/configure-opcua-server.md
> Parent: https://api.litmus.io/workflows/agents.md
> If this is the wrong workflow, back out to the index above.

## 9. Configure OPC UA Server with Tags

**UI trigger**: OPC UA -> Import Tags -> Start Server

### Step table

| Step | API Name | Method | Endpoint / GraphQL Operation | Notes | Output |
|------|----------|--------|------------------------------|-------|--------|
| 1 | Get Node Root | `POST` | `{{edgeUrl}}/opcua/v2` -> `GetNodeRoot` | See current OPC UA hierarchy | Existing node tree |
| 2a | Import ALL DH Tags | `POST` | `{{edgeUrl}}/opcua/v2` -> `ImportAllDHTags` | Imports every DeviceHub tag into OPC UA | Nodes created |
| 2b | Import Some DH Tags | `POST` | `{{edgeUrl}}/opcua/v2` -> `ImportSomeDeviceHubTags` | Selective import by device or tag IDs | Nodes created |
| 3 | Start OPC UA Service | `POST` | `{{edgeUrl}}/opcua/v2` -> `StartOPCUAService` | Starts the OPC UA server | Server running |
| 4 | Get Service Configuration | `POST` | `{{edgeUrl}}/opcua/v2` -> `GetServiceConfiguration` | Verify endpoint URL, auth settings | Config object |


---
