Configure data source
- Last UpdatedJul 09, 2025
- 1 minute read
- PI System
- Adapter for OPC UA 1.6
- Adapters
To use the OPC UA adapter, you must configure the data source to receive data.
Postman
To configure the data source using Postman:
-
To initialize the configuration, use the PUT method in conjunction with the http://localhost:5590/api/v1/configuration/<componentId>/DataSource REST endpoint.
Note: If you installed the adapter to listen on a non-default port, update 5590 to the port number in use.
-
Copy and paste an example configuration for the data source into the Body section.
For sample JSONs, see the Examples section.
-
Update the example JSON parameters for your environment.
-
Select Send to push the configuration to the adapter.
EdgeCmd
To configure the data source using EdgeCmd:
-
Using a text editor, create an empty text file.
-
Copy and paste an example configuration for the data source into the file.
-
Update the example JSON parameters for your environment.
For sample JSONs, see the Examples section.
-
Save the file. For example, ConfigureDataSource.json.
-
Open a command line session. Change directory to the location of your saved file.
-
Use the following edgecmd command with the name of your JSON file. For this example, we will use ConfigureDataSource.json for the saved file.
edgecmd -port <port number> -cid <componentId> set DataSource -file /.ConfigureDataSource.json
For a list of other REST operations you can perform, like updating or deleting a data source configuration, see the REST URLs section below.
After data source configuration is complete, you must configure data selection to define the streams to collect from the data source.