ValidateTags

Calling this method triggers validation of a list of OPC UA item references.

Method Name: ValidateTags

Payload: The payload takes a list of OPC UA items. The below example shows a case with 3 items. In the case, ExampleItem1 and ExampleItem2 are valid. ExampleItem3 is invalid.

{
  "items" : [
    "ns=3;s=ExampleItem1",
    "ns=3;s=ExampleItem2",
    "ns=3;s=ExampleItem3"
  ]
}

Result The direct method returns a payload, containing the validation results.

StatusCode: 0 means "Good". StatusCode: 2150891520 means "NodeId not defined"

{
    "validItems": [
        "ns=3;s=ExampleItem1",
        "ns=3;s=ExampleItem2"
    ],
    "invalidItems": [
        "ns=3;s=ExampleItem3"
    ],
    "readErrors": [
        "{"statusCode":{"code":0},"namespaceUri":null,"symbolicId":null,"localizedText":null,"additionalInfo":null,"innerResult":null}",
        "{"statusCode":{"code":0},"namespaceUri":null,"symbolicId":null,"localizedText":null,"additionalInfo":null,"innerResult":null}",
        "{"statusCode":{"code":2150891520},"namespaceUri":null,"symbolicId":null,"localizedText":null,"additionalInfo":null,"innerResult":null}"
    ]
}

Last updated

Was this helpful?