Skip to content

Commit 858cec3

Browse files
harmish-modialexweav
authored andcommitted
addressed comments in r2
1 parent 0de8500 commit 858cec3

File tree

1 file changed

+63
-57
lines changed

1 file changed

+63
-57
lines changed

opcclient/niopcclient.yml

Lines changed: 63 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,14 @@ paths:
268268
schema:
269269
type: array
270270
items:
271-
$ref: '#/definitions/UpdateSessionRequest'
271+
$ref: '#/definitions/UpdateSessionRequest'
272+
example:
273+
- sessionId: 5c39017b236b8b67785c4a1b
274+
name: "Renamed.opcuaserver.com-48010"
275+
monitoringInterval: 5000
276+
- sessionId: zc39017b236b8b67785c4a1b
277+
name: "Renamed.opcuaserver.com-48011"
278+
monitoringInterval: 5000
272279
responses:
273280
200:
274281
description: Partial success
@@ -420,6 +427,11 @@ paths:
420427
type: array
421428
items:
422429
$ref: '#/definitions/MonitoredItemDeleteData'
430+
example:
431+
- id: "6c3907c6236b8b67785c4a1c"
432+
removeTag: false
433+
- id: "zc39017b236b8b67785c4a1b"
434+
removeTag: false
423435
responses:
424436
200:
425437
description: Partial success
@@ -554,8 +566,8 @@ definitions:
554566
items:
555567
$ref: '#/definitions/SessionUserToken'
556568
example:
557-
securityMode: "SIGN_AND_ENCRYPT"
558-
securityPolicy: "Basic256Sha256"
569+
securityMode: "SIGN"
570+
securityPolicy: "Basic256"
559571
certificateInfo:
560572
id: null
561573
name: ""
@@ -577,50 +589,48 @@ definitions:
577589
properties:
578590
id:
579591
type: string
580-
description: unique id for this certificate
592+
description: unique id for this certificate. This can be null if the certificate is not yet saved on the SystemLink server
593+
example: "NI SystemLink OPC UA Connector [1FA889F76A1DEE5DAB2B5880CC6BFE248F12A8EB].der"
581594
name:
582595
type: string
583-
description: file name of the certificate
596+
description: file name of the certificate. This can be empty if the certificate is not yet saved on the SystemLink server
597+
example: "NI SystemLink OPC UA Connector [1FA889F76A1DEE5DAB2B5880CC6BFE248F12A8EB].der"
584598
subjectName:
585599
type: string
586600
description: subject name in the certificate
601+
example: "[email protected], OU=OPC UA, O=One-Way Automation, L=Edmonton, S=Alberta, C=CA, DC=opcuaserver.com"
587602
issuerName:
588603
type: string
589604
description: issuer name in the certificate
605+
example: "[email protected], OU=OPC UA, O=One-Way Automation, L=Edmonton, S=Alberta, C=CA, DC=opcuaserver.com"
590606
validFrom:
591607
type: string
592608
description: time from this certificate is valid
609+
example: "1/24/2018 5:29:36 PM"
593610
validTo:
594611
type: string
595612
description: time till this certificate is valid
613+
example: "1/23/2023 5:29:36 PM"
596614
thumbprint:
597615
type: string
598616
description: thumbprint in the certificate
617+
example: "83A0C843ECC0D3EA7C858CC76D671DC14E2A2DE4"
599618
isCertificateTrusted:
600619
type: boolean
601620
description: 'true, if the certificate is trusted by the SystemLink server'
602-
example:
603-
id: "NI SystemLink OPC UA Connector [1FA889F76A1DEE5DAB2B5880CC6BFE248F12A8EB].der"
604-
name: "NI SystemLink OPC UA Connector [1FA889F76A1DEE5DAB2B5880CC6BFE248F12A8EB].der"
605-
isCertificateTrusted: true
606-
issuerName: "CN=NI SystemLink OPC UA Connector"
607-
subjectName: "CN=NI SystemLink OPC UA Connector"
608-
thumbprint: "1FA889F76A1DEE5DAB2B5880CC6BFE248F12A8EB"
609-
validFrom: "10/31/2018 4:59:04 PM"
610-
validTo: "10/31/2019 4:59:04 PM"
621+
example: true
611622

612623
SessionUserToken:
613624
type: object
614625
description: Information about the user authentication token
615626
properties:
616627
tokenType:
617628
$ref: '#/definitions/UserTokenTypeEnum'
629+
example: USERNAME
618630
userTokenSecurityPolicy:
619631
type: string
620632
description: Security policy to use when communicating the user identification information
621-
example:
622-
tokenType: USERNAME
623-
userTokenSecurityPolicy: "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256"
633+
example: "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256"
624634

625635
NewSessionRequest:
626636
type: object
@@ -629,17 +639,21 @@ definitions:
629639
name:
630640
type: string
631641
description: Name of the OPC UA session
642+
example: "opcuaserver.com-48010"
632643
url:
633644
type: string
634645
description: URL of the OPC UA server
646+
example: "opc.tcp://opcuaserver.com:48010"
635647
monitoringInterval:
636648
type: integer
637649
format: int32
638650
description: 'Publishing interval, in milliseconds, for monitoring nodes. Must be greater than or equal to 1000.'
639651
default: 10000
652+
example: 1000
640653
useDiscoveryCertificate:
641654
type: boolean
642655
description: 'If set to true, the SSL certificate provided by discovery server is used'
656+
example: true
643657
endpoint:
644658
$ref: '#/definitions/SelectedEndpointModel'
645659
required:
@@ -659,72 +673,68 @@ definitions:
659673
tokenType: "USERNAME"
660674
userName: "admin"
661675
password: "admin"
676+
x509CertificateData: []
662677

663678
SelectedEndpointModel:
664679
type: object
665680
description: Information about the selected endpoint
666681
properties:
667682
securityMode:
668683
$ref: '#/definitions/SecurityModeEnum'
684+
example: "SIGN"
669685
securityPolicy:
670686
type: string
671687
description: Security policy used by the endpoint
688+
example: "Basic256"
672689
tokenType:
673690
$ref: '#/definitions/UserTokenTypeEnum'
691+
example: "USERNAME"
674692
userTokenSecurityPolicy:
675693
type: string
676694
description: Security policy used by the endpoint for encrypting the user identification information
677695
default: ''
696+
example: "http://opcfoundation.org/UA/SecurityPolicy#Basic256"
678697
userName:
679698
type: string
680699
description: user name
681700
default: ''
701+
example: admin
682702
password:
683703
type: string
684-
description: password
704+
description: password. Request objects should contain the actual password. Response objects will contain the encrypted password.
685705
default: ''
706+
example: admin
686707
x509CertificateData:
687708
type: string
688709
format: byte
689710
description: certificate to authenticate the user
690711
default: []
712+
example: []
691713
required:
692714
- securityMode
693715
- securityPolicy
694716
- tokenType
695-
example:
696-
securityMode: "SIGN"
697-
securityPolicy: "Basic256"
698-
userTokenSecurityPolicy: "http://opcfoundation.org/UA/SecurityPolicy#Basic256"
699-
tokenType: "USERNAME"
700-
userName: "admin"
701-
password: ""
702-
x509CertificateData: ""
703717

704718
UpdateSessionRequest:
705719
type: object
706720
description: Information about updating the existing session
707721
properties:
708-
sessionId:
709-
type: string
710-
description: session id
711-
name:
712-
type: string
713-
description: New name
714-
monitoringInterval:
715-
type: integer
716-
description: 'New Publishing interval, in milliseconds, for monitoring nodes. Must be greater than or equal to 1000.'
722+
sessionId:
723+
type: string
724+
description: session id
725+
example: 5c39017b236b8b67785c4a1b
726+
name:
727+
type: string
728+
description: New name
729+
example: "Renamed.opcuaserver.com-48010"
730+
monitoringInterval:
731+
type: integer
732+
description: 'New Publishing interval, in milliseconds, for monitoring nodes. Must be greater than or equal to 1000.'
733+
example: 5000
717734
required:
718-
- sessionId
719-
- name
720-
- monitoringInterval
721-
example:
722-
- sessionId: 5c39017b236b8b67785c4a1b
723-
name: "Renamed.opcuaserver.com-48010"
724-
monitoringInterval: 5000
725-
- sessionId: zc39017b236b8b67785c4a1b
726-
name: "Renamed.opcuaserver.com-48011"
727-
monitoringInterval: 5000
735+
- sessionId
736+
- name
737+
- monitoringInterval
728738

729739
SessionResponse:
730740
type: object
@@ -778,7 +788,7 @@ definitions:
778788
tokenType: "USERNAME"
779789
userName: "admin"
780790
password: "AQAAANCMnd8BFdERjHoBwE/Cl+sBAAAAYaA/LG/ktykZHp/tt6PfMAAAAAACAAAAAAAAwAAAABBBBBCZKwgu3/NIN5ScsQiBB4i+AAAAAASAAACgAAAAEBBBBH0QaMIJBh9ZnZLeHQSCZMoIAAAACkct5+OV1pgUAAAAL+ue1DKXQ+b3s1D19HT7716tmHY="
781-
x509CertificateData: ""
791+
x509CertificateData: []
782792

783793
OpcNode:
784794
type: object
@@ -787,26 +797,25 @@ definitions:
787797
id:
788798
type: string
789799
description: NodeId of the node on the OPC UA server
800+
example: "i=87"
790801
displayName:
791802
type: string
792803
description: Display name of the node on the OPC UA server
804+
example: "Views"
793805
browsePath:
794806
type: string
795807
description: Browse path of the node on the OPC UA server
808+
example: "/Views"
796809
isLeaf:
797810
type: boolean
798811
description: If set to true then the node doesn't have any child nodes
812+
example: false
799813
opcNodes:
800814
type: array
801815
description: child nodes of the node
802816
items:
803817
$ref: '#/definitions/OpcNode'
804-
example:
805-
id: "i=87"
806-
displayName: "Views"
807-
browsePath: "/Views"
808-
isLeaf: false
809-
opcNodes:
818+
example:
810819
- browsePath: "/Views/3:AirConditionerView"
811820
displayName: "AirConditionerView"
812821
id: "ns=3;i=5000"
@@ -922,17 +931,14 @@ definitions:
922931
id:
923932
type: string
924933
description: Id of the monitored item to be deleted
934+
example: 6c3907c6236b8b67785c4a1c
925935
removeTag:
926936
type: boolean
927937
description: 'If set to true, then the corresponding tag will be removed from the tag service'
928938
default: false
939+
example: false
929940
required:
930941
- id
931-
example:
932-
- id: "6c3907c6236b8b67785c4a1c"
933-
removeTag: false
934-
- id: "zc39017b236b8b67785c4a1b"
935-
removeTag: false
936942

937943
Error:
938944
description: Contains error information

0 commit comments

Comments
 (0)