The following example shows the configuration of the OPC UA Server
- The OPC UA Server is activated by adding the
OpcUaServerunderServicesand settingEnabledto true. - The server is configured to not allow unsecured connections by configuring the
SecurityPoliciesparameter to includeBasic256Sha256SignandBasic256Sha256SignEncrypt. - Permission to access the server is given to user
User1via the roleOpcUaServerRolewhich grants the function rightsOpcUAServerAccessandOpcUAManageCertificates. - Unauthenticated access is permitted by setting
GuestAuthenticationtofalse.
{
"Devices": [
{
"Name": "Device1",
"Modules": [
{
"Name": "PLC_1",
"TypeIdentifier": {
"OrderNumber": "6ES7 517-3AP00-0AB0",
"Version": "V3.1"
},
"AccessProtection": {
"AccessLevel": "FullAccess"
},
"Services": [
{
"Type": "OpcUaServer",
"Enabled": true,
"Parameters": {
"GuestAuthentication": false,
"SecurityPolicies": [
"Basic256Sha256Sign",
"Basic256Sha256SignEncrypt"
]
}
}
],
"UserManagement": {
"Roles": [
{
"Name": "OpcUaServerRole",
"FunctionRights": [
"OpcUAServerAccess",
"OpcUAManageCertificates"
]
}
],
"Users": [
{
"Name": "User1",
"AssignedRoles": [
"OpcUaServerRole"
]
}
]
}
}
]
}
]
}