Closed kappa-lhirsch closed 4 hours ago
I called the POST API using the service CLI tool (apps add -u <url>
) and it worked just fine. Have you looked at the server log to see if there are any errors reported?
Is there any documentation about the usage of the cli?
The cli which we also publish as a container image (mcr.microsoft.com/iot/industrial-cli:latest) has a help, you can start it in console mode by passing the "console" keyword as first argument. The code is in https://github.com/Azure/Industrial-IoT/blob/main/src/Azure.IIoT.OpcUa.Publisher.Service.Sdk/cli/Program.cs. In essence it is just a CLI on top of the REST api, but not meant for production use, rather for testing/exercising the API.
I noticed some interesting behavior with the API.
First of all I'm still not able to discover servers via the API.
However when i make a PUT call to the endpoints
endpoint https://{{OPC-SERVICEURL}}/registry/v2/endpoints
with the same discoveryUrl
parameter, the endpoint and also the application it belongs to is discovered.
My second question is, how can i connect to an endpoint, because their is no connect route available anymore in version 2.9.9?
Quick comment: Connect happens now automatically when you send your first request. No need to activate/deactivate in 2.9.
Yes there are essentially 3 API calls that support discovery:
(application == server)
You can use the endpoint id (e.g. from List endpoints) in the opc ua service calls.
Describe the bug I use the Industrial Web Api and the publisher module to communicate with my OPC-Server.
Both running Version 2.9.9
When I try to add a application via the API
POST https://{{OPC-SERVICEURL}}/registry/v2/applications
with thediscoveryUrl
parameter. the publisher module is showing the following logs:Although this output seems normal to me, the application does not show up when getting the applications in the registry.
To Reproduce Steps to reproduce the behavior:
Expected behavior The application shows up in the registry