Web Service Interface (v6.0)
Web Service Interface (v6.0)
Copyright Notice
Notice
Document information is subject to change without notice by Siemens Switzerland
Ltd. Companies, names, and various data used in examples are fictitious unless
otherwise noted. No part of this document may be reproduced or transmitted in any
form or by any means, electronic or mechanical, for any purpose, without the
express written permission of Siemens Switzerland Ltd.
All software described in this document is furnished under a license agreement and
may be used or copied only in accordance with license terms.
For further information, contact your nearest Siemens Switzerland Ltd.
representative.
© Siemens Switzerland Ltd, 2022
Credits
Desigo, Desigo CC, Cerberus DMS, Cerberus PRO, and Sinteso are registered
trademarks of Siemens Switzerland Ltd.
Other product or company names mentioned herein may be the trademarks of their
respective owners.
Edition: 2022-08-02
Document ID: A6V10470112_en_b_60
3
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Table of Contents
5
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
5.2 Number Format .................................................................................................. 40
5.3 Date/Time Format ............................................................................................... 40
5.4 Terminology ........................................................................................................ 40
5.5 Maximum page size ............................................................................................ 41
5.6 Request per system............................................................................................ 41
6 General API Specification ................................................................................ 42
6.1 HTTP Methods ................................................................................................... 42
6.2 Resources .......................................................................................................... 42
6.3 Status Codes ...................................................................................................... 43
6.3.1 HTTP Status Codes ............................................................................ 43
6.3.2 Error Code ........................................................................................... 43
6.4 Encoding ............................................................................................................. 43
6.5 Array in Query Parameter................................................................................... 43
6.6 HTTP caching ..................................................................................................... 43
7 Services ............................................................................................................. 44
7.1 Token Service ..................................................................................................... 44
7.1.1 Logging with Username and Password .............................................. 44
7.1.2 SSO Log in .......................................................................................... 45
7.1.3 Default Logon (Mutual TLS) ................................................................ 46
7.1.4 Logging out ......................................................................................... 47
7.2 Heartbeat Service ............................................................................................... 47
7.2.1 Extending the Lifetime of a Session and its Bearer Token ................. 47
7.3 Event Service ..................................................................................................... 47
7.3.1 Retrieving a List of Events .................................................................. 48
7.3.2 Creating a Subscription for Events (Obsolete) ................................... 50
7.3.3 Creating Channalized Events Subscription ........................................ 51
7.3.4 Modifying a Subscription for Events.................................................... 53
7.3.5 Deleting a Subscription for Events ...................................................... 53
7.4 EventsCommands Service ................................................................................. 53
7.4.1 Executing a Command on an Event ................................................... 53
7.4.2 Bulk Commanding on Events .............................................................. 54
7.5 EventCounter Service......................................................................................... 55
7.5.1 Retrieving Event Counters .................................................................. 55
7.5.2 Creating a Subscription for Event Counters (Obsolete)...................... 57
7.5.3 Creating Channalized Event Counters Subscription ........................... 58
7.5.4 Deleting a Subscription for Event Counters ........................................ 59
7.5.5 Retrieving Event Suppressed objects count ....................................... 59
7.5.6 Creating Channalized Event Supressed Objects Subscription .......... 59
7.5.7 Deleting a Subscription for Supressed Objects .................................. 60
7.6 System Browser Service .................................................................................... 60
7.6.1 Retrieving a List of Views of a System................................................ 61
7.6.2 Retrieving a List of Browser Objects ................................................... 61
7.6.3 Searching for Browser Objects ........................................................... 63
7.6.4 Search multiple Object Ids .................................................................. 65
7.6.5 Creating a Subscription for Changes in the System Browser views
(Obsolete) ........................................................................................... 67
6
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
7.6.6 Creating Channalized Systembrowser Subscription .......................... 68
7.6.7 Deleting a Subscription for Changes in the System Browser views ... 70
7.6.8 Update CNS Node Description ........................................................... 71
7.7 Value Service ..................................................................................................... 71
7.7.1 Retrieving a Value of an Object or Property ....................................... 71
7.7.2 Retrieving Values for a List of Objects or Properties .......................... 73
7.7.3 Creating a Subscription for a Change of a Value (Obsolete) ............. 75
7.7.4 Creating Channalized Value Subscription .......................................... 76
7.7.1 Deleting a Subscription for a Change of a Value ................................ 79
7.8 Property Value Service ....................................................................................... 80
7.8.1 Retrieving Detailed Values for Object or Property Id .......................... 81
7.9 Properties Service .............................................................................................. 84
7.9.1 Retrieving Detailed Values for Object or Property Id .......................... 84
7.9.2 Retrieving Detailed Values for multiple Object or Property Ids bulk
interface .............................................................................................. 87
7.9.1 Retrieving an Image for a Property ..................................................... 89
7.10 Command Service .............................................................................................. 89
7.10.1 Retrieving a List of Commands for a Provided Property .................... 90
7.10.2 Retrieving Lists of Commands for a List of Properties ....................... 92
7.10.3 Executing a Command........................................................................ 96
7.10.4 Bulk Commanding ............................................................................... 96
7.10.5 Bulk Commanding with different pair of property values and command
id ......................................................................................................... 98
7.10.6 Creating a Subscription for a Change of a Command (Obsolete) ...... 99
7.10.7 Push Notification ............................................................................... 100
7.11 Trend Service ................................................................................................... 104
7.11.1 Retrieving a List of All Trend Collector Objects ................................ 104
7.11.2 Retrieving a List of Trend Collector Objects ..................................... 105
7.11.3 Retrieving TrendViewDefinition object details .................................. 105
7.11.4 Create/Update TrendViewDefinition ................................................. 107
7.11.5 Delete TrendViewDefinition .............................................................. 109
7.11.6 Delete TrendLogOnline ..................................................................... 109
7.11.7 Retrieving Borders of a Trend Series ............................................... 110
7.11.8 Retrieving a List of Trends ................................................................ 110
7.11.9 Retrieving a List of Trend Aggregates .............................................. 111
7.12 History Logs Service ........................................................................................ 113
7.12.1 Retrieving Log Tables ....................................................................... 113
7.12.2 Retrieving Columns of a Log Table .................................................. 114
7.12.3 Retrieving Condition Filter Operators for a Column .......................... 115
7.12.4 Retrieving Enum Values for a Column .............................................. 115
7.12.5 Retrieving Data for Table .................................................................. 116
7.12.6 Discarding a Snapshot of a Log Table .............................................. 120
7.12.7 Validating Condition Filter ................................................................. 121
7.12.8 Retrieving Child Data for a Parent Table .......................................... 122
7.12.9 Cancel Report Processing ................................................................ 123
7.13 Diagnostics Service .......................................................................................... 124
7.13.1 Test Reachability of the Web Service Interface ................................ 124
7
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
7.14 Language Service ............................................................................................. 124
7.14.1 Retrieving the Language of the Logged in User ............................... 124
7.15 Image Service ................................................................................................... 124
7.15.1 Retrieving an Image .......................................................................... 125
7.16 Tables Service .................................................................................................. 125
7.16.1 Retrieving a Table or an Entry of a Table ......................................... 126
7.16.2 Retrieving a Subtable of a Table ....................................................... 127
7.16.3 Retrieving a Subtable of a Table for given row of table .................... 127
7.16.4 Retrieving Subgroups with filter ........................................................ 128
7.16.5 Retrieving Image from Global Text Table ......................................... 130
7.16.6 Retrieving Text From Global Text Table ........................................... 131
7.16.7 Retrieving all Language Text from Global Text Table ...................... 132
7.16.8 Retrieving Nested Text From Global Text Table .............................. 133
7.16.9 Retrieving Text From a Local Text Table .......................................... 134
7.16.10 Retrieving All Language Text From a Local Text Table .................... 135
7.16.11 Retrieving an Image for an Entry of a Table ..................................... 136
7.16.12 Retrieving an Entry of a Table .......................................................... 136
7.17 Systems Service ............................................................................................... 137
7.17.1 Retrieving list of installed languages (same order) as installed in
project ............................................................................................... 137
7.17.2 Retrieving list of all available systems with list of installed languages.137
7.17.3 Retrieving information of a specific system ...................................... 138
7.17.4 Retrieving information of a local system ........................................... 139
7.17.5 Get service status ............................................................................. 139
7.17.6 Create channelize Systems subscription .......................................... 140
7.17.7 Delete Subscription for a Systems .................................................... 140
7.17.8 Push Notification ............................................................................... 141
7.17.9 Create channelize Services subscription .......................................... 141
7.17.10 Unsubscribe Services ....................................................................... 143
7.18 Products Service .............................................................................................. 143
7.18.1 Retrieving Product Information ......................................................... 143
7.19 Files Service ..................................................................................................... 144
7.19.1 Retrieving Files of specific type ........................................................ 144
7.19.2 Retrieve Files from system ............................................................... 145
7.19.3 Retrieve Documents from system ..................................................... 145
7.20 Graphics Service .............................................................................................. 145
7.20.1 Check if object is graphical ............................................................... 146
7.20.2 Retrieving graphic item ids ................................................................ 146
7.20.3 Retrieving a graphical item ............................................................... 147
7.20.4 Retrieving a child item ....................................................................... 148
7.21 EventCategorySound Service .......................................................................... 149
7.21.1 Get current event sound ................................................................... 149
7.21.2 Subscribe for event sound ................................................................ 150
7.21.3 Delete Subscription for a event sounds changes. ............................ 150
7.21.4 Create channelize event sound subscription .................................... 151
7.22 Settings Service ................................................................................................ 152
8
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
7.22.1 Read setting ...................................................................................... 152
7.22.2 Write setting ...................................................................................... 152
7.22.3 Delete setting .................................................................................... 152
7.23 Users Service ................................................................................................... 153
7.23.1 Change Password ............................................................................. 153
7.23.2 Get Login Information ....................................................................... 154
7.24 Scheduler Service ............................................................................................ 156
7.24.1 Gets BACnet schedule object based on the schedule object id ....... 156
7.24.2 Save BACnet schedule values ......................................................... 158
7.24.3 Save BACnet schedule exceptions ................................................... 160
7.24.4 Save BACnet default value for schedule .......................................... 160
7.24.5 Retrieve BACnet calendar list for schedule object id ........................ 161
7.24.6 Retrieve calendar object based on calendar object Id ...................... 161
7.24.7 Save BACnet calendar ...................................................................... 162
7.25 Objects Service ................................................................................................ 163
7.25.1 Get available Objects types .............................................................. 163
7.25.2 Create Objects .................................................................................. 164
7.25.3 Delete Objects .................................................................................. 165
7.25.4 Get Information text .......................................................................... 165
7.25.5 Put Memo text ................................................................................... 166
7.26 Related Items Service ...................................................................................... 167
7.26.1 Read Related Items .......................................................................... 167
7.27 Access rights Service ....................................................................................... 168
7.27.1 Retrieve access rights ....................................................................... 169
7.27.2 Retrieve user roles ............................................................................ 169
7.27.3 Push Notification ............................................................................... 170
7.28 Operating Procedures Service ......................................................................... 173
7.28.1 Retrieve Operating procedure........................................................... 173
7.28.2 Update Operating procedure step .................................................... 173
7.28.3 Push Notification ............................................................................... 174
7.29 Licenses Service .............................................................................................. 176
7.29.1 Read License Mode .......................................................................... 176
7.29.2 Read License Options ....................................................................... 176
8 Objects and Data Types................................................................................. 178
8.1 Common ........................................................................................................... 178
8.1.1 Link.................................................................................................... 178
8.1.2 Page<Name, Type> .......................................................................... 178
8.1.3 KeyValue<Name, Type> ................................................................... 178
8.1.4 NameValue ....................................................................................... 178
8.1.5 Subscription ...................................................................................... 178
8.1.6 UnSubscription .................................................................................. 179
8.1.7 Value ................................................................................................. 179
8.1.8 ColorRepresentation ......................................................................... 180
8.1.1 CommandsSubscription .................................................................... 180
8.1.2 ValuesSubscription ........................................................................... 181
8.1.3 Attributes ........................................................................................... 181
9
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
8.1.4 ApiDataType ..................................................................................... 181
8.1.5 Subgroups ......................................................................................... 182
8.1.6 StatusNotification .............................................................................. 182
8.2 Token Service ................................................................................................... 182
8.2.1 Login ................................................................................................. 182
8.3 Event Service ................................................................................................... 183
8.3.1 Event ................................................................................................. 183
8.3.2 EventCommand ................................................................................ 187
8.3.3 EventDetailsList ................................................................................ 188
8.4 Event Counter Service...................................................................................... 188
8.4.1 EventCounterList............................................................................... 188
8.4.2 EventCounter .................................................................................... 188
8.4.1 Category color details ....................................................................... 188
8.4.2 Subscription Status ........................................................................... 189
8.5 System Browser Service .................................................................................. 189
8.5.1 View .................................................................................................. 189
8.5.2 BrowserNode .................................................................................... 190
8.5.3 SystemBrowserSearchList ................................................................ 190
8.5.4 SystemBrowserSubscription ............................................................. 190
8.5.5 SystemBrowserSubscriptionKey ....................................................... 191
8.6 Value Service ................................................................................................... 191
8.6.1 ValueDetails ...................................................................................... 191
8.7 PropertyValue Service ...................................................................................... 192
8.7.1 Object<Type>.................................................................................... 192
8.7.2 PropertyDetails .................................................................................. 192
8.7.3 Elements ........................................................................................... 193
8.7.4 Scaled Property Details .................................................................... 193
8.7.5 DisplayType ...................................................................................... 193
8.8 Properties Service ............................................................................................ 194
8.8.1 PropertyNames ................................................................................. 194
8.9 Command Service ............................................................................................ 194
8.9.1 PropertyCommand ............................................................................ 194
8.9.2 Command .......................................................................................... 194
8.9.3 CommandParameters ....................................................................... 195
8.9.4 EnumItem .......................................................................................... 196
8.9.5 BatchExecution ................................................................................. 196
8.9.6 CommandInputForExecution ............................................................ 196
8.9.7 BatchCommandExecution ................................................................ 196
8.9.8 PropertyCommandInput .................................................................... 197
8.10 Trend Service ................................................................................................... 197
8.10.1 TrendCollector ................................................................................... 197
8.10.2 TrendBorder ...................................................................................... 197
8.10.3 TrendSeries ....................................................................................... 197
8.10.4 TrendAggregateSeries ...................................................................... 197
8.10.5 TrendAggregate ................................................................................ 197
8.10.6 TrendViewDefinitionRepresentation ................................................. 198
10
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
8.10.7 AxisDefinitionRepresentation ............................................................ 198
8.10.8 TimeRange ....................................................................................... 199
8.10.9 TrendSeriesDefinitionRepresentation ............................................... 199
8.10.10 RelativeTimeRange .......................................................................... 200
8.10.11 AbsoluteTimeRange ......................................................................... 200
8.10.12 TrendSeriesDefinitionCollectionRepresentation ............................... 200
8.10.13 TrendViewDefinitionUpdateRepresentation...................................... 200
8.10.14 TrendSeriesDefinitionUpdateRepresentation ................................... 200
8.10.15 TrendSeriesDefinitionUpdateCollectionRepresentation ................... 201
8.10.16 AxisDefinitionUpdateRepresentation ................................................ 201
8.11 History Logs Service ........................................................................................ 201
8.11.1 LogTable ........................................................................................... 201
8.11.2 LogColumn ........................................................................................ 202
8.11.3 LogConditionFilter ............................................................................. 202
8.11.4 LogEnumValues ................................................................................ 202
8.11.5 LogSortInfo ....................................................................................... 202
8.11.6 LogColumnList .................................................................................. 203
8.11.7 LogTableData ................................................................................... 203
8.11.8 LogDiscardedSnapshot ..................................................................... 203
8.11.9 LogConditionFilterValidation ............................................................. 203
8.11.10 LogChildData .................................................................................... 204
8.12 Language Service ............................................................................................ 204
8.12.1 Language .......................................................................................... 204
8.13 Tables Service .................................................................................................. 204
8.13.1 SubDisciplines .................................................................................. 204
8.13.2 SubObjectTypes ............................................................................... 204
8.13.3 TextTableEntry .................................................................................. 204
8.13.4 LangTextTableEntry .......................................................................... 205
8.13.5 TextTableEntry Color Calculation ..................................................... 205
8.14 Systems Service ............................................................................................... 205
8.14.1 System Languages ........................................................................... 205
8.14.2 Systems ............................................................................................ 205
8.14.3 SystemsInformation .......................................................................... 205
8.14.4 ServicesSubscriptionsRepresentation .............................................. 206
8.14.5 ServicesRequestSubscriptionsRepresentation ................................ 206
8.14.6 ServicesNotificationRepresentation .................................................. 206
8.15 Products Service .............................................................................................. 206
8.15.1 ProductInfo ........................................................................................ 206
8.16 Files Service ..................................................................................................... 207
8.16.1 BasicFiles (Enum type) ..................................................................... 207
8.16.2 File Details. ....................................................................................... 207
8.17 Graphics Service .............................................................................................. 207
8.17.1 GraphicalItem .................................................................................... 207
8.18 Scheduler Service ............................................................................................ 207
8.18.1 Calendar............................................................................................ 207
8.18.2 CalendarEntry ................................................................................... 207
11
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
8.18.3 CalendarDate .................................................................................... 208
8.18.4 WeeklySchedule ............................................................................... 208
8.18.5 ScheduleSetup .................................................................................. 208
8.18.6 Schedule ........................................................................................... 209
8.18.7 ReferencedOutputDetails .................................................................. 209
8.18.8 ScheduleException ........................................................................... 209
8.18.9 TimeTrigger ....................................................................................... 209
8.18.10 CalendarException ............................................................................ 209
8.19 Objects Service ................................................................................................ 209
8.19.1 Object ................................................................................................ 209
8.19.2 Descriptor .......................................................................................... 210
8.19.3 ObjectModel ...................................................................................... 210
8.19.1 ChildObjectModel .............................................................................. 210
8.19.2 ServiceTextRepresentation ............................................................... 211
8.19.3 ObjectInfo .......................................................................................... 211
8.19.4 ServiceTextMemoRepresentation..................................................... 211
8.20 Related Items Service ...................................................................................... 211
8.20.1 RelatedItemResult............................................................................. 211
8.20.2 ObjectRelatedItem ............................................................................ 211
8.20.3 RelatedItem ....................................................................................... 212
8.21 Access rights Service ....................................................................................... 212
8.21.1 AccessRightsRepresentation ............................................................ 212
8.21.2 ApplicationRightRepresentation ........................................................ 212
8.21.3 UserRoleRepresentation ................................................................... 212
8.21.4 RoleInfo ............................................................................................. 213
8.21.5 OperationsRepresentation ................................................................ 213
8.22 Operating Procedures Service ......................................................................... 213
8.22.1 Operating Procedure ......................................................................... 213
8.22.2 Operating Procedure Step ................................................................ 213
8.22.3 Operating Procedure Subscription Representation .......................... 214
8.22.4 Operating Procedure Subscription Key Representation ................... 214
8.22.5 UnsubscriptionStatus ........................................................................ 214
8.23 Diagnostics Service .......................................................................................... 215
8.23.1 DiagnosticsRepresentation ............................................................... 215
8.24 Licenses Service .............................................................................................. 215
8.24.1 LicenseMode ..................................................................................... 215
8.24.2 LicenseOptions ................................................................................. 215
9 Concepts ......................................................................................................... 216
9.1 Naming ............................................................................................................. 216
9.2 Extensibility ....................................................................................................... 216
9.3 Support for Web Service Interface extensions ................................................. 218
9.3.1 Initialization support .......................................................................... 218
9.3.2 Caching support ................................................................................ 219
9.4 Support for Browser Caching ........................................................................... 219
9.5 Support for CORS ............................................................................................ 220
10 Appendix ......................................................................................................... 221
12
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
10.1 Error Response ................................................................................................ 221
10.1.1 Errors Codes ..................................................................................... 221
10.1.2 Errors ................................................................................................ 222
13
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
About This Document
Document Revision History
Scope
The document provides a description of the public API which can be used to
access data and the functionality provided by the system platform. This document
applies to the system version 6.0.
Target Audience
⚫ Testers of the public API
⚫ Developers/Clients accessing the public API
http://www.siemens.com/cert/en/cert-security-advisories.htm
14
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
About This Document
Document Revision History
Document Conventions
The following table lists conventions to help you use this document in a quick and
efficient manner.
Convention Examples
Numbered Lists (1, 2, 3…) indicate a 1. Turn OFF power to the field panel.
procedure with sequential steps. 2. Turn ON power to the field panel.
3. Open the panel.
One-step procedures are indicated by a ⚫ Expand the Event List.
bullet point.
Conditions that you must complete or must ⊳ The report you want to print is open.
be met before beginning a procedure are
designated with a ⊳. 1. Click Print .
Intermediate results (what will happen ⇨ The Print dialog box displays.
following the execution of a procedure step), 2. Select the printer and click Print.
are designated with an indented ⇨.
⇨ The print confirmation displays.
Results, after completing a procedure, are
designated with a ⇨.
Bold font indicates something you should Type F for field panels.
type or select, or when a dialog box or Click OK to save changes and close the
window is specified. dialog box.
The Create a New Project dialog box
displays.
Menu paths in procedures are indicated in Select File > Text, Copy > Group, which
bold. means from the File menu, select Text,
Copy and then Group.
File paths containing placeholders display [installation drive:]\[installation
the placeholders in italics enclosed in square folder]\[project]\...
brackets.
Error and system messages are displayed in The message Report Definition
Courier New font. successfully renamed displays in the
status bar.
Italics are used to emphasize new or The reaction processor continuously
important terms. executes a user-defined set of instructions
called the control program.
This symbol signifies a Note. Notes provide
additional information or helpful hints.
Getting Help
For more information about our products, contact your local Siemens
representative.
15
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
About This Document
Document Revision History
Examples:
NOTICE
CAUTION
WARNING
DANGER
16
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
About This Document
Document Revision History
17
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
1 Introduction
1.1 References
1.1.1 Links
Ref. Abbreviation Link Description
[1] HAL http://stateless.co/hal_specification.html
[2] SignalR https://github.com/SignalR/SignalR/wiki
[3] Base64url http://www.ietf.org/rfc/rfc4648.txt
[4] OAuth https://tools.ietf.org/html/rfc6749
[5] Langauge-Tags http://tools.ietf.org/html/rfc5646
[6] JSON: http://www.ietf.org/rfc/rfc4627.txt
[7] REST http://en.wikipedia.org/wiki/Representational_state_transfer
[8] URI https://tools.ietf.org/html/rfc3986
[9] EBNF http://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_Form
[10] Media-Types http://www.iana.org/assignments/media-types/media-types.xhtml
[11] Swagger http://swagger.io
[12] Mutual TLS https://datatracker.ietf.org/doc/html/rfc8705
1.1.2 Documents
Ref. Name Version
[20] Regional Product Customization Guide
i) Intranet :
http(s)://[hostname]:[port]/swagger/ui/index
Example
https://myWebServiceHost:8443/swagger/ui/index
18
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
NOTE:
If you are using Internet Explorer make sure Compatibility View is turned off.
1.2.1 Glossary
Terms Used in Web Service Interface
Term Description
HAL Simple format that gives a consistent and easy way to hyperlink between
resources in an API.
HTTP Hypertext transfer protocol:
http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
JSON JavaScript Object Notation:
http://en.wikipedia.org/wiki/JSON
OAuth 2.0 Open standard to authorization. OAuth provides client applications a 'secure
delegated access' to server resources on behalf of a resource owner.
Push Notification In this document push notifications refer to real-time notifications (see real-time
push below).
Push notifications to mobile devices (see wake-up push below) are not covered in
this document. However, a dedicated extension module is available to provide this
functionality.
REST Representational state transfer:
http://en.wikipedia.org/wiki/Representational_state_transfer
Real-time push Push notification from a server (our Web Service in this case) to a client; used for
notification of changes of values as long as client application is running. Notifies
the client about events in the system, including COV, as long as the client
application is running.
Reverse Proxy Retrieves resources on behalf of a client from a server. These resources are then
returned to the client as though they originated from the server itself.
SignalR Library for ASP.NET. SignalR allows bi-directional communication between server
and client.
Wake-up push Push notification to a mobile phone; notifies a user about an event in the system;
takes advantage of third-party notification providers (Apple, Google, …).
19
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
20
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
2 System Architecture
The following diagram shows the architecture for the Web Service Interface API.
NOTICE
21
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
22
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
A system application th 7at allows users to select and act on objects for monitoring
and controlling a facility. The System Manager contains the following panes: System
Browser (selection of data points), Primary, Secondary, and Contextual.
System Browser
Shows the list of hierarchical objects, such as data points, in one or more views.
Compiles objects into an aggregator object.
View
In System Browser, there are two basic views: Management View and Application
View. Additional project views can be defined as needed. The objects are displayed
hierarchically, depending on the selected view. An object can be assigned to more
than one view.
The tree structure ensures a consistent operating, commanding and alarming philoso-
phy for the various integrated subsystems. The benefits of this concept include:
23
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
• Discipline-specific project data from fire, HVAC, intrusion, and so on can be config-
ured using the same mechanism.
• Additional or new systems can easily be added.
Simple Alarm
Simple alarms do not require you to acknowledge or reset, they simply return to the
normal state when the monitored condition (for example, a dirty filter) returns to nor-
mal.
24
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
Basic Alarm
More important alarms (for example, lack of water) must be acknowledged. After the
alarm state is eliminated, the plant is once again released after acknowledgement.
Extended Alarm
For an extended alarm (for example, velocity monitor), the reset returns the plant to
normal. Provided the monitored state returns to the normal range. The idea is that im-
portant alarms are not overlooked when the alarm condition clears (Normal, not
acknowledged situation). The plant must be reset to re-start operation.
25
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
26
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Architecture
3
/properties/object.property
The result shows list all data points with the requested property information.
Example:
XXX.YYY.Present_Value
XXX.YYY.Alarm.Fault
XXX.YYY.Event_State
/properties/object
The result shows list all data points with the default property information.
NOTE: The default property is defined for each Object Model as a main attribute.
Example:
XXX.YYY.Present_Value
XXX.ZZZ.Fault
YYY.ZZZ. Present_Value
27
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Communication
4.1 Communication
The API can be accessed over HTTP or HTTPS. In a production environment it’s
highly recommended to use HTTPS because otherwise primary credentials are
transmitted in plaintext.
4.1.1 Authentication
For authentication we use OAuth 2.0 Resource Owner Password Credentials Grant
[4] [➙ 18]. In order to access a resource of the Web Service Interface the Client
needs a valid access token and a valid session within the system. In case no token
is presented or the token is invalid (e.g. expired) or the system session is not
available the user will get a status code 401 (Unauthorized) and needs to
request an access token. The access token can be requested through a dedicated
resource (/token) by presenting the primary credentials. In case the credentials are
provided, the system creates a new session and returns an access token.
1. Client tries to access a resource.
2. Server responses with status code 401 (Unauthorized).
Client asks the end-user for credentials.
3. Client sends credentials to a dedicated resource.
4. Server returns an access token, the system creates an internal session.
5. Client again tries to access a resource and includes the access token in an
authorization header.
6. Server returns content with status code 200 (Succeeded).
NOTICE
Session alive
The Client either needs to subscribe for notifications (e.g. change of values) or
needs to access the API at least once every 10 minutes otherwise its system
session expires. The API provides a dedicated resource (/heartbeat) just for the
sake of keeping a session alive.
28
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Communication 5
Signalr also generates hub proxy file for javascript clients, this can be accessed at
/signalr/hubs route.
i) Intranet :
http(s)://[hostname]:[port]/signalr
http(s)://[hostname]:[port]/signalr/hubs
Example
29
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Supported Client Environments
Legacy implementation of Noris provides specific hub for almost all the subscription
services respectively.
Noris also introduces singleHub solutions as NorisHub. Now client should create
only one NorisHub connection and use it for all the services for subscription-
notificaitons. It is the recommended singlanR connection approach.
4.3 Deployment
The Web Service Interface will be deployed as a self-hosted component. It’s an
executable and can be commanded as any other IOWA manager [12] [➙ 18].
In a production environment the Web Service Interface (and System) will most
likely only be accessible through a reverse proxy.
30
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Configuring Web Service Interface in a Project 5
Network Topology
31
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Configuring Web Service Interface in a Project
NOTE:
If you want to change the settings, you must stop the project first.
1. Click Edit .
2. Click Next .
The Web Service Interface Settings expander displays.
3. Select the protocol:
- Unsecured
- Under Port, enter the port number (Default: 8080).
- Secured
‒ Under Port, enter the port number (Default: 8443).
‒ Under Host Certificate, click Browse.
‒ Select the appropriate certificate and click OK.
NOTE: Additional information on certificates is available in the SMC Help.
4. Click Save Project .
The protocol settings are saved.
5. Click Start Project .
NOTE:
HTTP is insecure and is vulnerable to man-in-the-middle and eavesdropping
attacks, which can let attackers gain access to sensitive information.
Many organizations require certificates from third-party authorities instead of self-
signed certificates to remain compliant with current regulations.
32
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Service Category 5
33
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Service Category
4.5.1 Summary
For quick reference of service category refer below table
S.No. Service Code Service Category
1 Token Public
2 HeartBeat Public
3 Command Public
4 CommandSubscriptions Public
5 Diagnostics Public
6 EventCategorySounds Public
7 EventCategorySoundsSubscriptions Public
8 EventCounters Public
9 EventCountersSubscriptions Public
10 EventsCommands Public
11 Events Public
12 EventsSubscriptions Public
13 Files Partially Internal
14 HistoryLog Public
15 Graphics Internal
16 Images Internal
17 Language Public
18 Products Public
19 Properties Public
20 PropertyValues Public
21 Settings Internal
22 SystemBrowser Public
23 SystemBrowserSubscriptions Public
24 Systems Public
25 Tables Partially Internal
26 TrendSeries Public
27 TrendSeriesInfo Public
28 Users Internal
29 Values Public
30 ValuesSubscriptions Public
31 Systems Public
32 SystemsSubscriptions Public
33 Scheduler Internal
34 Related Items Public
35 AccessRights Internal
36 AccessRightsSubscriptions Internal
34
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Service mapping with Desigo CC(Basic reference) 5
35
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Service mapping with Desigo CC(Basic reference)
36
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Service mapping with Desigo CC(Basic reference) 5
37
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Access rights for application services
38
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
Time sync 5
NORIS provides server’s UTC datetime information as well as time difference be-
tween server time and client time if client pass client information to the server.
The information provided by Diagnostics Service [➙124] can be used calculate time
difference at client side.
39
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Conventions
5 Case Sensitivity
5 Conventions
NOTE:
Unless otherwise noted, the Zulu time zone is expected.
Examples:
2016-03-06T12:35:1Z
2016-03-06T12:35:01Z
2016-03-06T12:35:01.711Z
5.4 Terminology
Terminology
Term Description
Name1 Literal; supposedly unreadable; usually not displayed in a UI.
1
Descriptor Localized string in a readable form; supposed to be displayed to an end- user.
Designation1 Unique address of a node; supposedly unreadable; usually not displayed in a
UI.
Location1 Localized, fully expanded path of a node; supposed to be displayed to an
end-user.
ObjectId Identifies an object in the system.
PropertyId Identifies a property and its object in the system.
AttributeId Identifies an attribute, its property and its object in the system.
ObejctOrPropertyId An object ID or a property ID is expected.
PropertyName Name of a property.
40
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
General API Specification
Maximum page size 6
NOTE:
Unless explicitly stated, a service request may only affect a single system.
41
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
General API Specification
6 HTTP Methods
Method Description
(HTTP Verb)
GET Retrieves a list of resources, or a specific resource.
POST Creates a resource, passes in a parameter, or performs an action on a
resource.
PUT Updates an existing resource.
DELETE Deletes an existing resource or subscription.
6.2 Resources
The Web Service Interface API follows REST principles and therefore exposes
data and functionality as resources [7] [➙ 18].
Every resource is represented as an URI (see Appendix A in [8] [➙ 18]). As a
summary a resource looks like the following:
scheme://domain:port/path?query
Part Description
scheme Usually HTTPS; HTTP should only be used for testing
domain Hostname of host where manager is running
port Usually 8080 for HTTP and 8443 for HTTPS
path Starts with api followed by the service-identifier and optional sub paths (e.g.
api/languages/en-us); see sections below
query Optional; depends on resource (see sections below)
Example
https://ch1w80012:8443/api/events?sorting=1
NOTE:
In a production environment, the API runs most likely behind a reverse proxy. In
this case, the URI might look differently and might hide some information from the
Client.
Example
https://www.example.com/example/api/events?sorting=1
Therefore the general format of a URL is:
{entry-point}/api{resource-address}
Where entry-point is http://[hostname]:[port] by default or dependent on the
deployment, and resource-address in EBNF is:
resource-address = path [ "?" query ]
path = /root-resource ¦ path "/" sub-resource
query = parameter { "&" parameter }
parameter = key [ "=" value ]
42
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
General API Specification
Status Codes 6
6.4 Encoding
Data is encoded in UTF-8.
43
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Token Service
7 Services
44
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Token Service 10
“flex_user_profile”:”FlexUserProfile”
}
Example: User password is expired
Request:
POST /NBWSITest/NorthboundWebApiClient/api/token
Post Data:
grant_type=password&username=testuser&password=123
Response:
HTTP 403 Forbidden
{"Id":2400003,"Error":"password_expired","Details":"Logon
rejected. Password of this account is expired and need to
get changed first."}
45
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Token Service
"user_descriptor":"Test User" ,
"user_profile":"TEST.ldl",
“flex_user_profile”:”FlexUserProfile” ,
"user_inactivity_timeout": "0",
"password_reminder_counter": "0",
"personally_used": "false"
}
{access_token: "AQAAANCMnd8BFdERjHoAwE_Cl-sBAAAA-
RE7lJ-CLEmXzGKpV5u1NAAAAAACAAAAAAADZgAAwAAAABAAAAAISv-
kHm5HO6t2gUgbwHVdAAAAAASAAACgAAAAEAAAAOTB9_au07JsTAEVr
WfW7yFoAQAAuE1jqTSMCgyCYNC6mtPYGNBnlWU8HcXE2EH836Mcez4
fVkuvwcROXqGQ_5biGniyogA994hLn1EdEVcGvsWSoG-
zUNcElKEwYltv__0B8x-
6gp6xED6oEz7Fqci5wvD4h0yvS9Yxe5sF9JoxdhS8Fj2bCvj3FbaC3
JLxfzqUPoA2R3yzJSXgjhPPzFnarvRW0JqpjmJyIPzNG6J1CZFsrE_
Bu0STba-AZmdlosyZNPtN90EwyUfRzR_-
ZN468oAo4mVYJ4myeLR_jAEjzBgxBsypXeHVwxseHrSp2WmZaLHtuo
121sAGuFMCDBV3IkOVqFdfK2f2TungtrQbmxsCikHswG5f7jqXvtaY
JwVpljeAbLamIDieBw8nuuXDdpIpF7cYjiL7Mpg-
vvD0CMSssjvSMDW2bXRg_83b-
x3xZY3ICgz9WbDhIcL2D1vOFyyjzhV595oWDuunnf8303r8o9boc72
helqXFAAAAAzns27QlTxTA2HqfryY0VfVxejD"
“expires_in”: 2591999,
“flex_user_profile”: "DEFAULT",
“password_reminder_counter”: "0",
“token_type”: "bearer",
“user_descriptor”: "",
“user_inactivity_timeout”: "0",
“user_name”: "Software1",
“user_profile”: "DEFAULT.ldl",
"user_inactivity_timeout": "0",
"password_reminder_counter": "0",
"personally_used": "false"}
46
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Heartbeat Service 10
Lifetime of a Session.
Resource Path /heartbeat
Category Public
HTTP Method POST
Response HTTP 200 OK
Examples Request:
POST /NBWSITest/NorthboundWebApiClient/api/heartbeat
Response:
HTTP 200 OK
Events depend on the event type (see [20]). The current event type can be read
with the following object ID: ManagementView_System_Settings.EventSchema.
47
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Service
NOTE:
1. In order to retrieve grouped events right combination or unique identifier have
to be provided in parameters
2. Wild card characters are supported in eventfilter search wherever applicable.
3. Events extension commands are also supported in response.(e.g. StartReno
etc)
48
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Event Service 10
ftwareRunning:_alert_hdl.2._value",
"SrcObservedPropertyId":
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning:_alert_hdl.2._value",
"SrcState": "Quiet",
"SrcSystemId": 1,
"SrcViewName": "ManagementView",
"SrcViewDescriptor": "Management View",
"SrcDesignation":
"ManagementView.ManagementSystem.Servers.Server",
"SrcLocation": "Project.Management
System.Servers.Main Server",
"SrcName": "Server",
"SrcDescriptor": "Main Server",
"SrcDisciplineId": 0,
"SrcDisciplineDescriptor": "Management System",
"CreationTime": "2015-08-04T09:51:57.162Z",
"Direction": "None",
“SuggestedAction”:WaitforCondition,
“NextCommand”:NoActionPossible,
"InfoDescriptor": "At least one service not running
properly",
"Commands": [
{
"Id": "Suspend",
"EventId":
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning:_alert_hdl.2._value~635742985171620000~0",
"Configuration"=1
"_links": [
{
"Rel": "command",
"Href":
"api/eventscommands/System1%3aManagementView_ManagementSys
tem_Servers_Server.SoftwareRunning%3a_alert_hdl.2._value~6
35742985171620000~0/Suspend",
"IsTemplated": false
}
]
},
{
"Id": "Ack",
"EventId":
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning:_alert_hdl.2._value~635742985171620000~0",
"Configuration"=1
"_links": [
{
"Rel": "command",
"Href":
"api/eventscommands/System1%3aManagementView_ManagementSys
tem_Servers_Server.SoftwareRunning%3a_alert_hdl.2._value~6
35742985171620000~0/Ack",
"IsTemplated": false
}
]
}
],
"_links": [
{
49
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Service
"Rel": "category",
"Href": "api/tables/categories/9",
"IsTemplated": false
},
{
"Rel": "discipline",
"Href": "api/tables/disciplines/0",
"IsTemplated": false
}
]
}
],
"Total": 1,
"Page": 1,
"Size": 100000,
"_links": [
{
"Rel": "page",
"Href": "api/events?page={page}",
"IsTemplated": true
}
]
}
If subscription Post request submitted again then latest request will be considered
and notifications will be pushed with the filter criteria of latest submitted request.
50
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Event Service 10
51
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Service
"Unprocessed",
"ReadyToBeReset",
"ReadyToBeClosed",
"WaitingOPCompletion",
"Acked"
],
"systemID": 1
},
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5"
}
If subscription Post request submitted again then latest request will be considered
and notifications will be pushed with the filter criteria of latest submitted request.
52
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
EventsCommands Service 10
Request Body:
{"MultiLangComments":["comment1","comment2"],
"Password":"password","SuperName":"supervisorUserName",
"SuperPassword":"supervisorPassword"}
Response:
HTTP/1.1 200 OK
53
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 EventsCommands Service
7.4.1.1 EventCommandId
:commandId must have one of the following values.
Note :Newly added commands:Events extension commands are also supported in
response.(e.g. StartReno etc)
:commandId Description
select Signals operator is treating an event
suspend Signals operator stopped treating an event
ack Acknowledge event
reset Reset event
silence Silence event
unsilenced Unsilence event
close Close event
Request Body:
{
"ValidationInput": {
"MultiLangComments": [
"Comment en-US", "Comment de-DE"
],
"Password": "currentUserPassword",
"SuperName": "Supervisor1",
"SuperPassword": "SupervisorPassword"
},
"EventIds": [
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning:_alert_hdl.2._value~635742985171620000~0"
]
}
Response:
[
{
54
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
EventCounter Service 10
"EventId":
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning:_alert_hdl.2._value~635742985171620000~0"
}
]
HTTP/1.1 200 OK
Note : Link has also made available to provide event category colors information.
See [➙188 ]
55
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 EventCounter Service
"Href":
"api/tables/categories/9/subtables/colors",
"IsTemplated": false
}
]
}
Response2:
{
"TotalCounters": 1,
"TotalUnprocessedCounters": 1,
"EventCategoryCounters": [
{
"CategoryId": 1,
"CategoryDescriptor": "Emergency",
"TotalCount": 0,
"UnprocessedCount": 0,
“TotalSubsequentGrouping”:0,
“UnprocessedSubsequentGrouping”=52,
"_links": [
{
"Rel": "eventcounter",
"Href": "api/eventcounters/1",
"IsTemplated": false
},
{
"Rel": "categorycolor",
"Href":
"api/tables/categories/1/subtables/colors",
"IsTemplated": false
}
] },
{
"CategoryId": 2,
"CategoryDescriptor": "Life Safety",
"TotalCount": 0,
"UnprocessedCount": 0,
“TotalSubsequentGrouping”:0,
“UnprocessedSubsequentGrouping”=52,
"_links": [
{
"Rel": "eventcounter",
"Href": "api/eventcounters/2",
"IsTemplated": false
},
{
"Rel": "categorycolor",
"Href":
"api/tables/categories/2/subtables/colors",
"IsTemplated": false
}
] },
{
"CategoryId": 3,
"CategoryDescriptor": "Security",
56
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
EventCounter Service 10
"TotalCount": 0,
"UnprocessedCount": 0,
“TotalSubsequentGrouping”:20,
“UnprocessedSubsequentGrouping”=16,
"_links": [
{
"Rel": "eventcounter",
"Href": "api/eventcounters/3",
"IsTemplated": false
},
{
"Rel": "categorycolor",
"Href":
"api/tables/categories/3/subtables/colors",
"IsTemplated": false
}
]
}
]
}
57
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 EventCounter Service
notifySubscriptionStatus:
{
"ErrorCode":0,
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:"notifyEventCounters"
}
58
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
EventCounter Service 10
notifySuppressedObjects:
{
"ErrorCode":0,
"RequestId":"c8ead472-10b8-0f85-b20e-eabd58bc7054",
59
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
"RequestFor":"notifySuppressedObjects"
}
/systembrowser Public x
/systembrowsersub Public x x
scriptions
60
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
61
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
62
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
63
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
ps.TxG_BA_BACnetAckedTransitionsEnum",
"ObjectId":
"System1:TxG_BA_BACnetAckedTransitionsEnum",
"Attributes": {
"DefaultProperty": "Read_Only",
"ObjectId": "TxG_BA_BACnetAckedTransitionsEnum",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "Library Element",
"TypeId": 4600,
"SubTypeDescriptor": "Text Group",
"SubTypeId": 4609,
"ManagedType": 20
},
"Location": "System1.Management View:Project.System
Settings.Libraries.Headquarter.BA.Device.Desigo PX.Text
Groups.(0000) BACnet Acked Transitions Enum list",
"_links": []
}
],
"_links": [
{
"Rel": "page",
"Href":
"api/systembrowser/1?searchString=*view*&searchOption=1&ca
seSensitive=False&groupByParent=False&size=100000&page={pa
ge}&disciplineFilter=null&objectTypeFilter=null&aliasFilte
r=",
"IsTemplated": true
}
]
}
64
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
7.6.3.2 SearchOption
searchOption must have one of the following values.
searchOption Description
0 Search in full name (Designation); default
1 Search in full description (Location)
2 Search in ObjectId
3 Search in Alias
Post Data:
[
"System1:ManagementView_System_Settings",
"System1:JournalingRootFolder"
]
65
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
Response:
[
{
"ErrorCode": 0,
"ObjectId": "System1:ManagementView_System_Settings",
"Nodes": [
{
"SystemId": 1,
"ViewId": 9,
"Name": "SystemSettings",
"Descriptor": "System Settings",
"Designation":
"System1.ManagementView:ManagementView.SystemSettings",
"ObjectId":
"System1:ManagementView_System_Settings",
"Attributes": {
"DefaultProperty":
"StatusPropagation.AggregatedSummaryStatus",
"ObjectId": "ManagementView_System_Settings",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "System Settings",
"SubDisciplineId": 4,
"TypeDescriptor": "View Element",
"TypeId": 8000,
"SubTypeDescriptor": "System Folder",
"SubTypeId": 8014,
"ManagedType": 153
},
"Location": "System1.Management
View:Project.System Settings",
"_links": []
}
]
},
{
"ErrorCode": 0,
"ObjectId": "System1:JournalingRootFolder",
"Nodes": [
{
"SystemId": 1,
"ViewId": 9,
"Name": "JournalingRootFolder",
"Descriptor": "Journaling",
"Designation":
"System1.ManagementView:ManagementView.SystemSettings.Jour
nalingRootFolder",
"ObjectId": "System1:JournalingRootFolder",
"Attributes": {
"DefaultProperty":
"StatusPropagation.AggregatedSummaryStatus",
"ObjectId": "JournalingRootFolder",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "System Settings",
"SubDisciplineId": 4,
"TypeDescriptor": "Journaling",
"TypeId": 4500,
66
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
Post Data:
["System1.ApplicationView","System1.ManagementView"]
Response:
{
"Designations": [
"System1.ApplicationView",
"System1.ManagementView"
],
"Key": 2,
"ErrorCode": 0,
"_links": [
{
"Rel": "unsubscribe",
"Href": "api/sr/SystemBrowserSubscriptions/01ac873d-
23ae-49cb-86bc-6764d0b38904?subscriptionKey=%5b2%5d",
"IsTemplated": false
}
]
}
67
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
68
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
Response:
HTTP/1.1 200 OK
notifySubscriptionStatus:
{
"Designations": [
"System1.ApplicationView",
"System1.ManagementView"
],
"Key": 2,
"ErrorCode": 0,
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
"_links": [
{
"Rel": "unsubscribe",
"Href": "api/sr/SystemBrowserSubscriptions/01ac873d-23ae-49cb-86bc-
6764d0b38904?subscriptionKey=%5b2%5d",
"IsTemplated": false
}
]
}
69
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
Response:
[
{
"ErrorCode": 0,
"Key": 2
}
]
70
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
{
"ErrorCode": 0,
"Key": 2
}
]
Examples Request:
api/systembrowser/System1.ApplicationView%3AApplicationView.Documents?
api_key=defaultadmin%3Aa'
Response: 200
71
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Value Service
72
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
"DataType":"BasicFloat",
"Value":{
"Value":"35",
"Quality":"9439544818971182337",
"QualityGood":true,
"Timestamp":"2017-12-20T08:56:06.904Z"
},
"OriginalObjectOrPropertyId":"GmsDevice_2_1504_4194306.Pre
sent_Value",
"ObjectId":"System1:GmsDevice_2_1504_4194306",
"PropertyName":"Present_Value",
"AttributeId":"System1:GmsDevice_2_1504_4194306.Present_Va
lue:_online.._value",
"ErrorCode":0,
"IsArray":false
}
]
73
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Value Service
"QualityGood":true,
"Timestamp":"2017-12-20T08:31:40.132Z"
},
"OriginalObjectOrPropertyId":"GmsDevice_2_1504_4194306.Pre
sent_Value",
"ObjectId":"System1:GmsDevice_2_1504_4194306",
"PropertyName":"Present_Value",
"AttributeId":"System1:GmsDevice_2_1504_4194306.Present_Va
lue:_online.._value",
"ErrorCode":0,
"IsArray":false
},
{
"DataType":"BasicFloat",
"Value":{
"Value":"35",
"Quality":"9439544818971181313",
"QualityGood":true,
"Timestamp":"2017-12-20T08:31:40.132Z"
},
"OriginalObjectOrPropertyId":"System1:GmsDevice_2_1504_419
4306.Present_Value",
"ObjectId":"System1:GmsDevice_2_1504_4194306",
"PropertyName":"Present_Value",
"AttributeId":"System1:GmsDevice_2_1504_4194306.Present_Va
lue:_online.._value",
"ErrorCode":0,
"IsArray":false
},
{
"DataType":"BasicFloat",
"Value":{
"Value":"35",
"Quality":"9439544818971181313",
"QualityGood":true,
"Timestamp":"2017-12-20T08:31:40.132Z"
},
"OriginalObjectOrPropertyId":"System1.ManagementView:Manag
ementView.FieldNetworks.TestNet.Hardware.Devices_1504.Loca
l_IO.AO_2;.Present_Value",
"ObjectId":"System1:GmsDevice_2_1504_4194306",
"PropertyName":"Present_Value",
"AttributeId":"System1:GmsDevice_2_1504_4194306.Present_Va
lue:_online.._value",
"ErrorCode":0,
"IsArray":false
}
]
Request 2:
POST /api/values?readMaxAge=-1
Post Data:
[
"GmsDevice_2_1504_4194306.Present_Value"
]
Response:
[
{
"DataType":"BasicFloat",
74
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
"Value":{
"Value":"35",
"Quality":"9439544818971182337",
"QualityGood":true,
"Timestamp":"2017-12-20T08:56:06.904Z"
},
"OriginalObjectOrPropertyId":"GmsDevice_2_1504_4194306.Pre
sent_Value",
"ObjectId":"System1:GmsDevice_2_1504_4194306",
"PropertyName":"Present_Value",
"AttributeId":"System1:GmsDevice_2_1504_4194306.Present_Va
lue:_online.._value",
"ErrorCode":0,
"IsArray":false
}
]
Post Data:
[
"GmsDevice_2_1504_4194306.Present_Value",
"System1:GmsDevice_2_1504_4194306.Present_Value",
"System1.ManagementView:ManagementView.FieldNetworks.TestN
et.Hardware.Devices_1504.Local_IO.AO_2;.Present_Value""//D
esignation+Property
]
Response:
[
{
"Key":1,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Val
ue",
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
75
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Value Service
"Href":"api/sr/valuessubscriptions/4999fe9e-
05c9-41a8-bc82-9ade768c3ced?subscriptionKey=%5b1%5d",
"IsTemplated":false
}
]
},
{
"Key":2,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Val
ue",
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/valuessubscriptions/4999fe9e-
05c9-41a8-bc82-9ade768c3ced?subscriptionKey=%5b2%5d",
"IsTemplated":false
}
]
},
{
"Key":3,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Val
ue",
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/valuessubscriptions/4999fe9e-
05c9-41a8-bc82-9ade768c3ced?subscriptionKey=%5b3%5d",
"IsTemplated":false
}
]
}
]
76
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
Category Public
HTTP Method POST
Parameters Property Type Description
requestId String Request Identifier of subscription
hub connection.
RequestId is to be generated and
provided by the client.
It is expected from client that client
should use unique id for for each
request.
Recommendation: Use GUID
Required
connectionId String Identifier of subscription hub
connection
Required
Response HTTP 200 OK
Examples Request:
POST /api/sr/valuessubscriptions/channelize/9565ca41-8556-
4dbb-94cc-1b89451a5db5/977a6389-980c-41ca-84ab-
2518fd0ca41a
Post Data:
[
"GmsDevice_2_1504_4194306.Present_Value",
"System1:GmsDevice_2_1504_4194306.Present_Value",
"System1.ManagementView:ManagementView.FieldNetworks.TestN
et.Hardware.Devices_1504.Local_IO.AO_2;.Present_Value""
//Designation+Property
]
Response:
HTTP/1.1 200 OK
notifySubscriptionStatus:
Notification 1:
{
"Key":1,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Value",
"ErrorCode":0,
objectOrPropertyId: "GmsDevice_2_1504_4194306.Present_Value",
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/valuessubscriptions/4999fe9e-05c9-41a8-bc82-
9ade768c3ced?subscriptionKey=%5b1%5d",
"IsTemplated":false
}
]
}
Notification 2:
{
"Key":2,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Value",
"ErrorCode":0,
77
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Value Service
objectOrPropertyId: "System1:GmsDevice_2_1504_4194306.Present_Value",
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/valuessubscriptions/4999fe9e-05c9-41a8-bc82-
9ade768c3ced?subscriptionKey=%5b2%5d",
"IsTemplated":false
}
]
}
Notification 3:
{
"Key":3,
"PropertyId":"System1:GmsDevice_2_1504_4194306.Present_Value",
objectOrPropertyId:
"System1.ManagementView:ManagementView.FieldNetworks.TestNet.Hardwa
re.Devices_1504.Local_IO.AO_2;.Present_Value",
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5"
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/valuessubscriptions/4999fe9e-05c9-41a8-bc82-
9ade768c3ced?subscriptionKey=%5b3%5d",
"IsTemplated":false
}
]
}
notifyValues:
Notification 1:
[{
"DataType":"BasicFloat",
"Value":
{"Value":"35",
"Quality":"9439544818971181313",
"QualityGood":true,
"Timestamp":"2019-04-10T10:21:02.527Z"},
"ErrorCode":0,
"IsArray":false,
"SubscriptionKey":1
}]
Notification 2:
[{
"DataType":"BasicFloat",
"Value":
{"Value":"40",
"Quality":"9439544818971181313",
"QualityGood":true,
"Timestamp":"2019-04-10T10:21:02.527Z"},
"ErrorCode":0,
"IsArray":false,
"SubscriptionKey":2
}]
78
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
Notification 3:
[{
"DataType":"BasicFloat",
"Value":
{"Value":"90",
"Quality":"9439544818971181313",
"QualityGood":true,
"Timestamp":"2019-04-10T10:21:02.527Z"},
"ErrorCode":0,
"IsArray":false,
"SubscriptionKey":3
}]
79
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Property Value Service
Required
subscriptionkey Array of int List of subscription-keys
Response HTTP 200 OK
An array of unsubscription objects. See Link [➙57]
Examples Request:
DELETE /api/sr/valuessubscriptions/9d4211db-a740-44c3-93b8-
015df1a529ca?subscriptionKey=[2,3]
Response:
[
{
"ErrorCode": 0,
"Key": 2
},
{
"ErrorCode": 0,
"Key": 3
}
]
80
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Property Value Service 10
/propertyvalues Public x
"PropertyName":"StatusPropagation.AggregatedSummaryStatus",
"Descriptor": "Summary Status",
"Type": "ExtendedEnum",
"Usage": 7,
"Value": {
"Value": "0",
81
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Property Value Service
"DisplayValue": "Normal",
"Quality": "9439544818969084161",
"QualityGood": true,
"Timestamp": "2015-05-21T05:08:56.772Z"
},
"Resolution": 0,
"PropertyAbsent": false,
"IsArray": false,
“TextTable”: TxG_PropagationSummaryStatus
}
]
}
Request 2: with scaled information
GET
api/propertyvalues/System2:GmsDevice_1_20811_1.Present_Value?
Response :
{
"ErrorCode": 0,
"ObjectId": "System2:GmsDevice_1_20811_1",
"Attributes": {
"DefaultProperty": "Present_Value",
"ObjectId": "System2:GmsDevice_1_20811_1",
"DisciplineDescriptor": "Building Automation",
"DisciplineId": 50,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "Sensor",
"TypeId": 6700,
"SubTypeDescriptor": "Unassigned",
"SubTypeId": 0,
"ManagedType": 80,
"ManagedTypeName": "BACnetPoint",
"ObjectModelName": "GMS_BACNET_EO_BA_AI_1",
"ValidationRules": {
"CommentRule": "Mandatory",
"ReAuthentication": "NoNeed",
"Configuration": 1,
"IsFourEyesEnabled": false,
"_links": []
}
},
"Properties": [
{
"Order": 2,
"PropertyName": "Present_Value",
"Descriptor": "Present Value",
"Type": "ExtendedReal",
"Usage": 7,
"Value": {
"Value": "25.5555555555556",
"DisplayValue": "25.5555555555556",
"Quality": "9439544818975376641",
"QualityGood": true,
"Timestamp": "2019-06-11T12:41:00.067Z"
},
"Min": -572.7777777777778,
"Max": 537.2222222222222,
82
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Property Value Service 10
"UnitDescriptor": "°C",
"UnitId": 62,
"Resolution": 2,
"PropertyAbsent": false,
"IsArray": false,
"ScaledInformation": {
"Factor": 0.5555555555555556,
"Index": 62,
"Offset": -17.77777777777778
}
}
]
}
83
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Properties Service
84
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Properties Service 10
{
"ObjectId": "System1:HDB_ArchiveGroup_1",
"Properties": [
"Export.Activated",
"Max_Retention.Activated",
"Max_Retention.Delay_Span",
"Max_Retention.Delay_Unit",
"Max_Retention.FirstDate",
"Max_Retention.Invocation_Period",
"Max_Retention.Invocation_Unit",
"Max_Retention.Max_Count",
"Min_Retention.Delay_Span",
"Min_Retention.Delay_Unit",
"Min_Retention.Min_Count",
"StatusPropagation.AggregatedSummaryStatus"
],
"FunctionProperties": []
}
85
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Properties Service
]
}
]
Response 3 :
{
"ErrorCode": 0,
"ObjectId": "System2:GmsDevice_1_20811_1",
"Attributes": {
"DefaultProperty": "Present_Value",
"ObjectId": "System2:GmsDevice_1_20811_1",
"DisciplineDescriptor": "Building Automation",
"DisciplineId": 50,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "Sensor",
"TypeId": 6700,
"SubTypeDescriptor": "Unassigned",
"SubTypeId": 0,
"ManagedType": 80,
"ManagedTypeName": "BACnetPoint",
"ObjectModelName": "GMS_BACNET_EO_BA_AI_1",
"ValidationRules": {
"CommentRule": "Mandatory",
"ReAuthentication": "NoNeed",
"Configuration": 1,
"IsFourEyesEnabled": false,
"_links": []
}
},
"Properties": [
{
"Order": 2,
"PropertyName": "Present_Value",
"Descriptor": "Present Value",
"Type": "ExtendedReal",
"Usage": 7,
"Value": {
"Value": "25.5555555555556",
"DisplayValue": "25.5555555555556",
"Quality": "9439544818975376641",
"QualityGood": true,
"Timestamp": "2019-06-11T12:41:00.067Z"
},
"Min": -572.7777777777778,
"Max": 537.2222222222222,
"UnitDescriptor": "°C",
"UnitId": 62,
"Resolution": 2,
"PropertyAbsent": false,
"IsArray": false,
"ScaledInformation": {
"Factor": 0.5555555555555556,
86
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Properties Service 10
"Index": 62,
"Offset": -17.77777777777778
}
}
]
}
requestType Description
0 Return property names only.
1 Return attributes of object only.
2 Return properties with detailed information; default.
3 Return properties with detailed information and attributes of object.
87
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Properties Service
Request Body:
["System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span","Sy
stem1:HDB_ArchiveGroup_1.Min_Retention.Delay_Unit"]
OR
//Using Designation + Property
[
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span",
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Unit"
]
Response:
[
{
"ErrorCode": 0,
"ObjectId": "System1:HDB_ArchiveGroup_1",
"Attributes": {
"DefaultProperty":
"StatusPropagation.AggregatedSummaryStatus",
"ObjectId": "HDB_ArchiveGroup_1",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "Server Software",
"TypeId": 6900,
"SubTypeDescriptor": "History Database",
"SubTypeId": 6903,
"ManagedType": 14,
“ManagedTypeName“ : "Station"
},
"Properties": [
{
"Order": 3,
"PropertyName": "Min_Retention.Delay_Span",
"Descriptor": "Min Retention Span",
"Type": "ExtendedInt",
"Usage": 11,
"Min": 1,
"Resolution": 0,
"PropertyAbsent": false,
"IsArray": false
}
]
},
{
"ErrorCode": 0,
"ObjectId": "System1:HDB_ArchiveGroup_1",
"Attributes": {
"DefaultProperty":
"StatusPropagation.AggregatedSummaryStatus",
"ObjectId": "HDB_ArchiveGroup_1",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "Server Software",
88
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
"TypeId": 6900,
"SubTypeDescriptor": "History Database",
"SubTypeId": 6903,
"ManagedType": 14,
“ManagedTypeName“ : "Station"
},
"Properties": [
{
"Order": 4,
"PropertyName": "Min_Retention.Delay_Unit",
"Descriptor": "Min Retention Unit",
"Type": "ExtendedEnum",
"Usage": 11,
"Max": 7,
"Resolution": 0,
"PropertyAbsent": false,
"IsArray": false
}
]
}
]
Examples Request:
GET
api/properties/System1:GmsDevice_1_8166_1.Present_Value/icon
Response:
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6
QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAANSURBVB
hXY/j//78GAAkkAyb6sRXrAAAAAElFTkSuQmCC
89
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
/commandssubscript Public x x
ions
90
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
"Href":
"api/commands/System1%3aHDB_ArchiveGroup_1.Min_Retention.D
elay_Span/Write",
"IsTemplated": false
}
]
}
]
}
]
Request 2: using Designation + Property
GET
/api/commands/System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span
Response:
[ {
"PropertyId":"System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span",
"ErrorCode":0,
"Commands":[
{
"PropertyId":"System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span",
"Descriptor":"Set",
"Parameters":[
{
"Name":"Value",
"DataType":"ExtendedInt",
"DefaultValue":"4",
"Order":0,
"Descriptor":"",
"Min":1,
“Application”: 0,
"EnumerationTexts":[
]
}
],
"Id":"Write",
“IsDefault”: false,
"Configuration":0,
"_links":[
{
"Rel":"self",
"Href":"api/commands/System1.ManagementView%3aManagementVi
ew.ManagementSystem.Servers.Server.HistoryDatabase.Archive
Schedules.ActivityLog%3b.Min_Retention.Delay_Span/Write",
"IsTemplated":false
}
]
}
]
}
]
91
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
Request Body:
[
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span",
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Unit"
]
Response:
List of Commands fetched for two different PropertyId:
[
{
"PropertyId":
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span",
"ErrorCode": 0,
"Commands": [
{
"Configuration":2
"PropertyId":
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span",
"Descriptor": "Set",
"Parameters": [
{
"Name": "Value",
"DataType": "ExtendedInt",
"DefaultValue": "0",
"Order": 0,
"Descriptor": "",
"Min": 1,
“Application”: 0,
"EnumerationTexts": []
}
],
"Id": "Write",
“IsDefault”: false,
"_links": [
92
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
{
"Rel": "self",
"Href":
"api/commands/System1%3aHDB_ArchiveGroup_1.Min_Retention.D
elay_Span/Write",
"IsTemplated": false
}
]
}
]
},
{
"PropertyId":
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Unit",
"ErrorCode": 0,
"Commands": [
{
"Configuration":1
"PropertyId":
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Unit",
"Descriptor": "Set",
"Parameters": [
{
"Name": "Value",
"DataType": "ExtendedEnum",
"DefaultValue": "0",
"Order": 0,
"Descriptor": "",
"Max": 7,
“Application”: 0,
"EnumerationTexts": [
{
"Descriptor": "seconds",
"Value": 0
},
{
"Descriptor": "minutes",
"Value": 1
}
]
}
],
"Id": "Write",
“IsDefault”: false,
"_links": [
{
"Rel": "self",
"Href":
"api/commands/System1%3aHDB_ArchiveGroup_1.Min_Retention.D
elay_Unit/Write",
"IsTemplated": false
}
]
}
]
}
]
93
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
Post : /api/commands/
Request Body:
[
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span",
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Unit"
]
Response:
[
{"PropertyId":"System1.ManagementView:ManagementView.Manag
ementSystem.Servers.Server.HistoryDatabase.ArchiveSchedule
s.ActivityLog;.Min_Retention.Delay_Span",
"ErrorCode":0,
"Commands":[
{
"PropertyId":"System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span",
"Descriptor":"Set",
"Parameters":[
{
"Name":"Value",
"DataType":"ExtendedInt",
"DefaultValue":"4",
"Order":0,
"Descriptor":"",
"Min":1,
“Application”: 0,
"EnumerationTexts":[]
}
],
"Id":"Write",
“IsDefault”: false,
"Configuration":0,
"_links":[
{
"Rel":"self",
"Href":"api/commands/System1.ManagementView%3aManagementVi
ew.ManagementSystem.Servers.Server.HistoryDatabase.Archive
Schedules.ActivityLog%3b.Min_Retention.Delay_Span/Write",
"IsTemplated":false
}
]
}
]
},
{"PropertyId":"System1.ManagementView:ManagementView.Manag
ementSystem.Servers.Server.HistoryDatabase.ArchiveSchedule
s.ActivityLog;.Min_Retention.Delay_Unit",
"ErrorCode":0,
"Commands":[
{"PropertyId":"System1.ManagementView:ManagementView.Manag
ementSystem.Servers.Server.HistoryDatabase.ArchiveSchedule
s.ActivityLog;.Min_Retention.Delay_Unit",
"Descriptor":"Set",
"Parameters":[
{
"Name":"Value",
94
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
"DataType":"ExtendedEnum",
"DefaultValue":"4",
"Order":0,
"Descriptor":"",
"Max":7,
“Application”: 0,
"EnumerationTexts":[
{
"Descriptor":"seconds",
"Value":0
},
{
"Descriptor":"minutes",
"Value":1
},
{
"Descriptor":"hours",
"Value":2
},
{
"Descriptor":"days",
"Value":3
},
{
"Descriptor":"months",
"Value":4
},
{
"Descriptor":"years",
"Value":5
},
{
"Descriptor":"week",
"Value":6
},
{
"Descriptor":"quarter",
"Value":7
}
]
}
],
"Id":"Write",
“IsDefault”: false,
"Configuration":0,
"_links":[
{"Rel":"self",
"Href":"api/commands/System1.ManagementView%3aManagementVi
ew.ManagementSystem.Servers.Server.HistoryDatabase.Archive
Schedules.ActivityLog%3b.Min_Retention.Delay_Unit/Write",
"IsTemplated":false
}
]
}
]
}
]
95
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
96
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
Request Body:
{
"CommandInputForExecution": [
{
"Name": "Value",
"DataType": "ExtendedInt",
"Value": "3",
"MultiLangComments": [
"comment1",
"comment2",
"comment3"
],
"Password": "password1",
"SuperName": "supervisorusername",
"SuperPassword": "supervisorpassword"
}
],
"PropertyIds": [
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span",
"System1:HDB_ArchiveGroup_2.Min_Retention.Delay_Span",
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span", //Designation + Property
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.EventLog;.Mi
n_Retention.Delay_Span" //Designation + Property
]
}
Response:
HTTP 200 OK
[
{
"PropertyId":
"System1:HDB_ArchiveGroup_1.Min_Retention.Delay_Span",
"ErrorCode": 0
},
{
"PropertyId":
"System1:HDB_ArchiveGroup_2.Min_Retention.Delay_Span",
"ErrorCode": 0
},
{
"PropertyId":
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span",
"ErrorCode": 0
},
{
"PropertyId":
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.EventLog;.Mi
97
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
n_Retention.Delay_Span",
"ErrorCode": 0
}
]
Request Body:
[
{
"CommandInputForExecution": [
{
"Name": "Value",
"DataType": "ExtendedUint",
"Value": "1500"
}
],
"PropertyId": "LogViewer.ViewSize",
"CommandId": "Write"
},
{
"PropertyId": "LogViewer.SuppressAlarms",
"CommandId": "Enable"
}
]
Response:
HTTP 200 OK
[
{
"PropertyId": "LogViewer.ViewSize",
"ErrorCode": 0
},
{
"PropertyId": "LogViewer.SuppressAlarms",
"ErrorCode": 0
}
]
98
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
Request Body:
[
"System1:HDB_ArchiveGroup_2.Min_Retention.Delay_Span",
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span" //Designation + Property
]
Response:
[
{
"Key":5,
"PropertyId":"System1:HDB_ArchiveGroup_2.Min_Retention.Del
ay_Span",
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/commandssubscriptions/aa82215b-
b635-40a7-92a3-4fcc80a677d1?subscriptionKey=%5b5%5d",
"IsTemplated":false
}
]
},
{
"Key":6,
"PropertyId":"System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span",
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/commandssubscriptions/aa82215b-
b635-40a7-92a3-4fcc80a677d1?subscriptionKey=%5b6%5d",
"IsTemplated":false
}
]
99
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
}
]
Request Body:
[
"System1:HDB_ArchiveGroup_2.Min_Retention.Delay_Span",
"System1.ManagementView:ManagementView.ManagementSystem.Se
rvers.Server.HistoryDatabase.ArchiveSchedules.ActivityLog;
.Min_Retention.Delay_Span" //Designation + Property
]
HTTP/1.1 200 OK
notifySubscriptionStatus:
Notification 1:
{
"Key":5,
"PropertyId":"System1:HDB_ArchiveGroup_2.Min_Retention.Del
ay_Span",
"SubscriptionId":"System1:HDB_ArchiveGroup_2.Min_Retention
.Delay_Span",
"ErrorCode":0,
100
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:”notifyCommands”,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/commandssubscriptions/aa82215b-
b635-40a7-92a3-4fcc80a677d1?subscriptionKey=%5b5%5d",
"IsTemplated":false
}
]
}
Notification 2:{
"Key":6,
"PropertyId":"System1.ManagementView:ManagementView.Manage
mentSystem.Servers.Server.HistoryDatabase.ArchiveSchedules
.ActivityLog;.Min_Retention.Delay_Span",
"SubscriptionId":"System1.ManagementView:ManagementView.Ma
nagementSystem.Servers.Server.HistoryDatabase.ArchiveSched
ules.ActivityLog;.Min_Retention.Delay_Span",
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:”notifyCommands”,
"ErrorCode":0,
"_links":[
{
"Rel":"unsubscribe",
"Href":"api/sr/commandssubscriptions/aa82215b-
b635-40a7-92a3-4fcc80a677d1?subscriptionKey=%5b6%5d",
"IsTemplated":false
}
]
}
]
101
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
"Rel":"unsubscribe",
"Href":"api/sr/commandssubscriptions/aa82215b-b635-40a7-92a3-
4fcc80a677d1?subscriptionKey=%5b6%5d",
"IsTemplated":false
}
]
}
]
102
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
Response:
{
"ErrorCode": 0,
"Key": 1
},
{
"ErrorCode": 0,
"Key": 2
}
103
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
104
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
105
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
{
"AxisX": {
"AutoScale": true,
"AxisType": 0,
"ScaleMax": 100,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"AxisYLeft": {
"AutoScale": true,
"AxisType": 1,
"ScaleMax": 100,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"AxisYRight": {
"AutoScale": true,
"AxisType": 2,
"ScaleMax": 100,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"DescriptionTvd": "",
"ObjectIdOfTvd":
"System1:ApplicationView_Trends_TrendViewDefinitions_sampl
etvd",
"IdTvd": "a6393de5-454d-4f41-8e13-043c2f01dfdb",
"NameTvd": "sampletvd",
"NumberDisplayedSamplesPerTrendSerie": 100,
"RemoveOnlineTrendLogOfDeletedTrendSerie": false,
"TimeRange": {
"ValidTimeRange": 1,
"AbsoluteTimeRange": {
"From": "2019-06-24T10:07:33.075Z",
"To": "2019-06-24T10:12:33.075Z"
},
"RelativeTimeRange": {
"AnchorMode": 1,
"AnchorTime": "2019-06-24T10:12:30.986Z",
"NumberOfTimeUnits": 1,
"TimeUnit": 3
}
},
"TitleLeft": "",
"TitleRight": "",
"TitleTop": "",
"TsdCollectionInfo": {
"TrendSeriesDefinitions": [
{
"ReservedDateTime": "1777-07-07T07:07:07Z",
"AccessDenied": false,
106
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
"ArchiveOn": true,
"AxisAttachment": "ToLeft",
"ChartLineStyle": "Full",
"ChartLineType": "Line",
"Color": "ffff0000",
"DescriptionTlField": "",
"DescriptionTlGms": "Log Viewer-ViewSize",
"DescriptionTo": "",
"DescriptionToProperty": "View Size",
"ObjectIdOfTrendLog": "",
"ObjectIdOfTrendLogOnline":
"System1:TLO_LogViewer_ViewSize",
"ObjectIdOfTrendedObject":
"System1:LogViewer.ViewSize:_original.._value",
"Index": -1,
"IsLineVisible": true,
"LineWidth": 1,
"MaxTimeStamp": "0001-01-01T00:00:00Z",
"MinTimeStamp": "9999-12-31T18:29:59.999Z",
"ShowDataLabels": false,
"ShowMarkers": false,
"ShowQualityIcons": false,
"Type": "Online",
"UnitText": "",
"ValueType": "Float"
}
]
},
"TvdType": 0,
"TvCovType": "Auto",
"_links": []
}
Request Body:
107
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
"AxisX": {
"AutoScale": true,
"ScaleMax": 100,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"AxisYLeft": {
"AutoScale": true,
"ScaleMax": 500,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"AxisYRight": {
"AutoScale": true,
"ScaleMax": 100,
"ScaleMin": 0,
"ShowTitle": false,
"ShowZeroLine": false,
"Title": ""
},
"ObjectIdOfTvd": "",
"CNSDescription": "tvd4",
"Location":
"System1.ApplicationView:ApplicationView.Trends.TrendViewD
efinitions",
"NumberDisplayedSamplesPerTrendSerie": 200,
"RemoveOnlineTrendLogOfDeletedTrendSerie": false,
"TimeRange": {
"ValidTimeRange": 2,
"AbsoluteTimeRange": {
"From": "2020-01-23T09:23:49.969Z",
"To": "2020-02-07T10:01:48.329Z"
},
"RelativeTimeRange": {
"AnchorMode": 1,
"AnchorTime": "2020-01-27T09:23:13Z",
"NumberOfTimeUnits": 1,
"TimeUnit": 3
}
},
"TitleLeft": "Title for Left",
"TitleRight": "Title for Right",
"TitleTop": "Top name",
"TsdCollectionInfo": {
"TrendSeriesDefinitions": [
{
"ArchiveOn": false,
"AxisAttachment": "ToLeft",
"ChartLineStyle": "Full",
"ChartLineType": "Line",
"Color": "ffff00f0",
"ObjectIdOfTrendLog":
"System1:GmsDevice_1_90_83886081",
108
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
"ObjectIdOfTrendLogOnline": "",
"ObjectIdOfTrendedObject":
"System1:GmsDevice_1_90_1",
"IsLineVisible": true,
"LineWidth": 1,
"ShowDataLabels": false,
"ShowMarkers": true,
"ShowQualityIcons": false,
"MarkerType": "Circle",
"Type": "Offline"
}
]
},
"TvCovType": "Auto"
}
Response:
A TrendViewDefinition Object[➙198]
Response:
HTTP 200 OK No Content
109
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
Response:
HTTP 200 OK No Content
110
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
"System1:GmsDevice_1_29129_83886081.general.Data:_offline.
._value",
"SeriesPropertyId":
"System1:GmsDevice_1_29129_16777217.Present_Value",
"Series": [
{
"Value": "1",
"DisplayValue": "ACTIVE",
"Quality": "8589934592",
"QualityGood": true,
"Timestamp": "2015-05-13T12:05:52.59Z"
},
{
"Value": "1",
"DisplayValue": "INACTIVE",
"Quality": "8589934592",
"QualityGood": true,
"Timestamp": "2015-05-13T12:05:55.59Z"
}
]
}
Trend aggregation is not Distribution enabled. It only serves for local system only.
111
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
Examples Request:
GET
api/trendseries/System1%3AGmsDevice_1_29128_83886081.gener
al.Data%3A_offline.._value/7?from=2015-10-
27T06:01:04.510Z&to=2015-11-
27T11:44:41.660Z&length=1000&qualityMask=0&qualityValue=0&
addDescriptor=false
Response:
{
"Id":
"System1:GmsDevice_1_29128_83886081.general.Data:_offline.
._value",
"SeriesPropertyId":
"System1:GmsDevice_1_29128_1.Present_Value",
"Series": [
{
"AvgX": 1445945963123.153,
"AvgY": 65.28828828828829,
"Count": 333,
"FromValueDescriptor": "65",
"FromValue": 65,
"FromTime": "2015-10-27T06:01:05.12Z",
"Min": 45,
"Max": 80,
"StDevX": 287308.05418783723,
"StDevY": 8.742276612722005,
"SumX": 481500005720010,
"SumXX": 6.962229895146511e+26,
"SumXY": 481549949961870,
"SumY": 83,
"SumYY": 1444883,
"ToTime": "2015-10-27T06:17:41.13Z",
"ToValueDescriptor": "61",
"ToValue": 61,
"VarX": 82545918001.2012,
"VarY": 76.42740037334613
},
………
]
}
Id Description
0 Year
1 Quarter
2 Month
3 Week
4 Day
5 Hour
6 Minute
7 Second
8 Millisecond
112
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
113
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
"*"
]
}
]
114
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
115
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
Response:
{
"EnumValues": [
"Unknown",
"Reno",
"Trend"
],
"ErrorInfo": [
"This is Error1",
"This is Error2"
]
}
116
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
Request Body:
{
"Parent": [
"UserName",
"Workstation",
"DpeName1",
"Action",
"MessageText"
],
"Child": [
"ParentId",
"RDbId",
"RowNum",
"DpeName",
"Id",
"LogType"
]
}
Response:
{
117
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
"TableName": "ActivityLogTable",
"Size": 2,
"Page": 1,
"Result": [
{
"UserName": "DefaultAdmin",
"Workstation": "_#WEBCLIENT#_",
"DpeName1": "System1:Gms_Security_Users",
"Action": "Login"
},
{
"UserName": "root",
"Workstation": "AAEINPU742011D",
"DpeName1": "System1:Gms_Security_Users",
"Action": "Automatic Logoff"
}
],
"SnapshotId": "ceffdb59-6b5d-4b2a-a3e5-
e127867ed299:fe671773-1d76-4f13-8630-a338263565ca",
"Total": 2919,
"_links": [
{
"Rel": "discardsnapshot",
"Href":
"api/historylogs/1/ActivityLogTable/ceffdb59-6b5d-4b2a-
a3e5-e127867ed299%3afe671773-1d76-4f13-8630-a338263565ca",
"IsTemplated": false
},
{
"Rel": "page",
"Href":
"api/historylogs/1/ActivityLogTable?snapShotId=ceffdb59-
6b5d-4b2a-a3e5-e127867ed299%3afe671773-1d76-4f13-8630-
a338263565ca&page=1&size=2",
"IsTemplated": false
},
{
"Rel": "next",
"Href":
"api/historylogs/1/ActivityLogTable?snapShotId=ceffdb59-
6b5d-4b2a-a3e5-e127867ed299%3afe671773-1d76-4f13-8630-
a338263565ca&page=2&size=2",
"IsTemplated": false
}
],
"ErrorInfo": [
"This is error 1",
"This is error 2"
]
}
118
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
• To retrieve child nodes of an object, Name filter string should end with .*
(<dot><star>)
2. Integer/float/double column
<'Column Descriptor'>[space]<Operator>[space]<Value>
5. GmsDuration column
<'Column Descriptor'>[space]<Operator>[space]<"Value">
119
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
120
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
Below are the 4 different cases in which force discard of snapshot will be called:
1. Request to creat a new Snapshot and WSI manager is running out of
decided Memory band
- In this case till the time sufficient memory is not available and WSI
runs within the decided memory band one by one Snapshots will be
discarded by applying above meintioned strategy.
2. Request to create a new Snapshot and limit for maximum number of
Snapshots is reached for that session
- In this case applying above strategy one snapshot will be discarded
first and after that request to create a new Snapshot will be
processed
3. Snapshot is idle (not used) for 10 minutes
- Any Snapshot for any session will be discarded if it is not in use for
10 minutes
4. User logs out/ Session timeout
- If user logs out from WSI or if session timeout is called then all the
snapshots for that session if any will be discarded.
121
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
Request Body:
Response:
{
"Result": [
{
"RowNum": "2",
"DpeName":
"System1:ManagementView_ManagementSystem_Servers_Server.So
ftwareRunning",
"Id": "235"
},
{
"RowNum": "1",
"DpeName":
"System1:ManagementView_ManagementSystem_Servers_Server.So
122
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
ftwareRunning",
"Id": "354",
"LogType": "Property Changes"
}
],
"Total": 2,
"Page": 1,
"Size": 100000,
"_links": [
{
"Rel": "discardsnapshot",
"Href": "api/historylogs/1/EventLogTable/78b71424-
bcce-44e1-9d7e-ffdfc11a0179%3af6139cbd-5854-467f-be0e-
227cab6b88fa",
"IsTemplated": false
},
{
"Rel": "page",
"Href": "api/historylogs/1/EventLogTable/78b71424-
bcce-44e1-9d7e-ffdfc11a0179%3af6139cbd-5854-467f-be0e-
227cab6b88fa/235?page=1&size=100000",
"IsTemplated": false
}
],
"ErrorInfo":[
"This is error 1",
"This is error 2"
]
}
123
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Diagnostics Service
124
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
NOTE:
In order to successfully process this request, the image needs to be present in a
feasible format and size in the system.
125
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
Request2: id provided
GET api/tables/disciplines/100
Response2:
"Fire"
Name Description
Categories Categories defined for the System
Disciplines Disciplines supported by Manage System
ObjectTypes Object types used in Subsystems
Timefilter Timefilter supported in Management System
Units Supported units in Management System
126
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
127
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
Response:
{
"1": "255, 255, 0",
"2": "255, 255, 0",
"3": "255, 255, 0",
"4": "0, 0, 0",
"5": "255, 255, 0",
"6": "239, 105, 38",
"7": "201, 43, 39",
"8": "167, 73, 27",
"9": "147, 40, 16",
"10": "152, 150, 154",
"11": "90, 93, 96",
"12": "230, 148, 113",
"13": "250, 189, 155"
}
128
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
,102]}
Response1:
[
{
"DisciplineId": 0,
"DisciplineDescriptor": "Management System",
"SubDisciplines": [
{
"Id": 0,
"Descriptor": "Unassigned"
},
{
"Id": 1,
"Descriptor": "Applications"
}
]
},
{
"DisciplineId": 100,
"DisciplineDescriptor": "Fire",
"SubDisciplines": [
{
"Id": 101,
"Descriptor": "Evacuation"
},
{
"Id": 102,
"Descriptor": "Extinguishing"
}
]
}
]
Response2 :
[
{
"ObjectTypeId": 1000,
"ObjectTypeDescriptor": "Client Software",
"SubObjectTypes": [
{
"Id": 1001,
"Descriptor": "Control Room"
},
{
"Id": 1002,
"Descriptor": "Mobile"
}
]
},
{
"ObjectTypeId": 1100,
"ObjectTypeDescriptor": "Command",
"SubObjectTypes": [
129
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
{
"Id": 1101,
"Descriptor": "Analog"
},
{
"Id": 1102,
"Descriptor": "Binary"
}
]
}
]
NOTE:
If the request is for a PNG image, the image file must be in a format that is either
PNG or can be converted to PNG. If the request is for an SVG image, no
conversion can be made, so the image file must be SVG.
130
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
131
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
132
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
133
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
{
"Value": 0,
"Text": "Unassigned"
},
{
"Value": 21,
“Color: 4290764270,
"Text": "Elevators"
},
{
"Value": 22,
“Color: 4290764270,
"Text": "Escalators"
},
{
"Value": 23,
"Text": "Data Network"
},
{
"Value": 24,
"Text": "I/O Monitoring"
}
]
},
{ ... more entries ... }
]
134
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Tables Service 10
135
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Tables Service
"État",
"Status"
]
},
{
"Value": 2,
"Color": 4292203223,
"LangText": [
"Fault",
"Störung",
"Défaut",
"Fault"
]
},
{
"Value": 3,
"Color": 4294501476,
"LangText": [
"Trouble",
"Problem",
"Problème",
"Trouble"
]
},
136
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Systems Service 10
Examples Request:
GET api/tables/local/0/TxG_ValidationProfile/text/0
Response:
{
"Value": 0,
"Text": "Disabled",
"Color": 4278190080
}
137
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Systems Service
Examples Request:
GET / api/systems
Response:
{
"Systems": [
{
"Name": "System14",
"Id": 14,
"IsOnline": true
},
{
"Name": "System15",
"Id": 15,
"IsOnline": true
}
],
"Languages": [
{
"ArrayIndex": 0,
"Descriptor": "English (United States)",
"Code": "en-US"
},
{
"ArrayIndex": 1,
"Descriptor": "German (Germany)",
"Code": "de-DE"
}
],
"IdLocal": 14,
"IsDistributed": true
}
138
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Systems Service 10
},
{
"ArrayIndex": 1,
"Descriptor": "German (Germany)",
"Code": "de-DE"
}
]
}
139
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Systems Service
A List<ServicesNotificationRepresentation> object
Examples Request:
GET / api/systems/services
Response:
[
{
"SystemId":4,
"ServiceId":58,
"IsConnected":false
}
]
140
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Systems Service 10
2fba71b76bc7
Response:
HTTP/1.1 200 OK
NOTE:
If in JSON response the value of “FileName” and “_links” are empty then no
sound has to be played.
141
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Systems Service
notifySubscriptionStatus:
ErrorCode: 0, Re-
questFor: "notifyServices",RequestId: "9565ca41-8556-
4dbb-94cc-1b89451a5db5"
Note: For a particular connectionId, subscription request can be sent only once. If
more systems or services are to be included in the subscription, then unsubscribe
and subscribe again.
If no valid combination of systemid and service id is passed in the request, it wil
return an error with 400 code.
Hub 1. norisHub
142
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10
143
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Files Service
Category Public
HTTP Method GET
Response HTTP 200 OK
ProductInfo object [➙206Error! Bookmark not defined.]
Examples Request:
GET /api/Products
Response:
{
"ProductNameShort": "Desigo CC",
"ProductName": "Desigo™ CC",
"VendorName": "Siemens Switzerland Ltd.",
"ProductCopyRights": "© Siemens Switzerland Ltd, 2016",
"ProductVersion": "V3.0",
"ServerVersion": "1.0.0.0",
"SupportLink": "www.siemens.com/SBT",
"_links": [
{
"Rel": "self",
"Href": "api/products",
"IsTemplated": false
},
{
"Rel": "downloadfile",
"Href":
"api/repository/ProductPictures/files?names=entrypage_image.JPG",
"IsTemplated": false
},
{
"Rel": "downloadfile",
"Href":
"api/repository/ProductPictures/files?names=SplashScreenImage.jpg",
"IsTemplated": false
}
]
}
144
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Graphics Service 10
/graphics/{objectId} Internal x
/graphics/itemIds/{objectDesignation} Internal x
/graphics/items/{objectId} Internal x
/children/itemIds/{objectDesignation} Internal x
145
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Graphics Service
an object that is found in a graphic), or (c) one of the object’s ancestors is either a
graphic type or is related to a graphic type. This functionality is generally referred to
as the “preselect” operation.
• To retrieve the list of graphic objects related to this object. If the object is one of the
graphic types it will be returned; if it is not one of the graphic types, the list will con-
tain all graphic types related to the object and all graphic types related to all ances-
tors of the object. This functionality is generally referred to as the “select” opera-
tion.
• To retrieve a specific graphic object, such as a graphic or graphic viewport. This
functionality is generally referred to as the “load” operation.
• To retrieve the first child (of a node in a view) that is either graphical or has a relat-
ed graphics.
Note that the term ancestor in this context means objects higher in a hierarchy, up to
and including the root object. During a preselect or a select operation all hierarchies on
the system where the object is defined are checked.
146
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Graphics Service 10
Response:
Returns a list of related graphic items, possibly including the object itself (if it is
graphical in nature).
[
{
"Context": "Sys-
tem1:ManagementView:ManagementView.FieldNetworks.bacnetNetwork.Hardware
.8166.Local_IO.LP_1",
"ObjectId": "Sys-
tem1:GraphicsTemplate_TEM_Object_Loop_None_None_001",
"ManagedType": "Graphic Template",
"DisplayName": "TEM_Object_Loop_None_None_001"
},
{
"Context": "Sys-
tem1:ManagementView:ManagementView.FieldNetworks.bacnetNetwork.Hardware
.8166.Local_IO.LP_1",
"ObjectId": "System1:Graphics_AnotherGraphic",
"ManagedType": "Graphic",
"DisplayName": "SomeGraphic"
}
]
147
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Graphics Service
<svg>
... another symbol definition ...
</svg>
</libraries>
</graphicItems>
148
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10
"_links": []
}
},
"Location": "System.View:View.Level.Analog Input 1",
"SystemId": 1,
"Name": "AI_1",
"Descriptor": "Analog Input 1",
"Designation": "System.View:View.Level.AI_1",
"ObjectId": "System1:GmsDevice_1_8166_1",
"_links": [
{
"Rel": "properties",
"Href": "api/properties/System1%253AGmsDevice_1_8166_1?requestType=0",
"IsTemplated": false
}
]
}
/api/eventcategorysounds Public x
api/sr/eventcategorysoundss Public x x
ubscriptions
NOTE:
If in JSON response the value of “FileName” and “_links” are empty then no
sound has to be played.
149
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 EventCategorySound Service
]
}
150
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
EventCategorySound Service 10
NOTE:
If in JSON response the value of “FileName” and “_links” are empty then no
sound has to be played.
151
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Settings Service
/settings/{settingId} Internal x
152
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Users Service 10
NOTE:
If user has a valid token and password is changed, token remains valid.
If the new password does not follow the password policy (configured in SMC),
then password will not be allowed to be changed and HTTP 400 error will be
returned.
153
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Users Service
{
"userName": "GmsUser",
"currentPassword": "aaaa",
"newPassword": “bbbb"
}
Response:
HTTP 400 Bad Request
Error: "password_not_compatible"
Id: 2400004
Incase if the account type is OpenID (AccountType = 3), Additional information re-
garding OpenID LoginUri and LogoutUri will be sent in the same response as
shown in the below example. In all the other cases this will be null.
When the OpenID configuration is missing in the system, fallback will happen for
account type from OpenID to DesigoCC even though the user is correctly mapped
to OpenID account in the system. Because if the necessary configuration is miss-
ing then we cannot prepare LoginUri and LogoutUri which are mandatory for the
OpenID authentication.
154
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Users Service 10
Request:
GET /api/users/test
Response:
HTTP 200 OK
{
"UserName": "test",
"AccountType": 0
}
Example2 AccountType of the user is OpenID, but the OpenID configuration is missing
in DesigoCC system.
Request:
GET /api/users/test.test%40test.com
Response:
HTTP 200 OK
{
"UserName": "test.test@test.com",
"AccountType": 0
}
Example3 AccountType of the user is OpenID, OpenID configuration is present in the
DesigoCC system.
Request:
GET /api/users/test.test%40test.com
Response:
HTTP 200 OK
{
"UserName": "test.test@test.com",
"AccountType": 3,
"OpenIdUri": {
"Login":
"https://MyAuth0Domain.com/authorize?client_id=MyTestC
lientId&response_type=code&scope=openid profile
email&connection=main-tenant-oidc",
"Logout":
"https://MyIdServerDomain.com/v2/logout?returnTo=https
:// MyAuth0Domain.com/v2/logout"
}
}
As this API will be used while performing the login. There are some steps that
needs to be additionly performed by client of this API. These steps are only appli-
cable to users of type OpenID (AccountType = 3).
In case of such users, authentication will be performed by the ID server. For this
client needs to redirected to ID server. And after the authentication is done, it
needs to redirected back to the login page of the client to continue the authentica-
tion process.
On similar note, while performing the logout as well, client needs to logout from ID
sever as well, otherwise on next OpenID login, user will not be asked for creden-
tials. Logout from ID server also takes advantage of redirection of the browser.
That’s why in case of logout as well client needs to add redirect url as callback.
a. OpenIdUri.Login
Redirect URI of the client which is register on Auth0 for the client application
needs to be appended at the received login uri in following format:
Query string operator: &
155
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Scheduler Service
https://MyAuth0Domain.com/authorize?client_id=MyTestClientId&res
ponse_type=code&scope=openid profile email&connection=main-
tenant-oidc&redirect_uri= https://MyMachineDomain:446/FlexApp
b. OpenIdUri.Logout
Allowed Logout URI of the client which is register on the Auth0 for the client
application needs to be appended at the received logout uri as following:
Query string operator: ?
Query string parameter Name: returnTo
Query string parameter Value: URI of the client
Final OpenIdUri.Logout will look like following:
https://MyIdServerDomain.com/v2/logout?returnTo=https://
MyAuth0Domain.com/v2/logout?returnTo=https:// MyMachine-
Domain:446/FlexApp
Response:
{
156
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Scheduler Service 10
"DeviceId": "System1:GmsDevice_1_1800_33556232",
"Name": "System1:GmsDevice_1_1800_71303169",
"Setup": {
"DefaultValue": "1.1",
"StartDate": {
"Date": "0001-01-01T00:00:00Z"
},
"EndDate": {
"Date": "0001-01-01T00:00:00Z"
},
"Priority": 16,
"DataType": "BACnetDataTypeReal",
"ScheduleMin": -3.402823e+38,
"ScheduleMax": 3.402823e+38,
"TextGroupId": "TxG_EngineeringUnits",
"Unit": 64
},
"Outputs": [
"Sys-
tem1:GmsDevice_1_1800_8388609.Present_Value"
],
"ScheduleType": "BACnet",
"Schedules": [
{
"Day": "monday",
"Entries": [
{
"Time": "07:00:00",
"Value": 18.5
},
{
"Time": "21:00:00",
"Value": 15.5
}
]
}
],
"Exceptions": [
{
"Priority": 6,
"Mode": 3,
"CalendarException": {
"CalendarObjectId": "Sys-
tem1:GmsDevice_1_1800_25165825",
"CalendarEntries": [
{
"StartDate": {
"Date": "0001-01-01T00:00:00Z",
"Days": [
6
],
"Months": [
1
],
"DaysInMonth": [
1
],
"Years": [
2005
]
},
"Mode": 0
},
{
"StartDate": {
"Date": "0001-01-01T00:00:00Z",
"Days": [
4
157
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Scheduler Service
],
"Months": [
6
],
"DaysInMonth": [
27
],
"Years": [
2019
]
},
"Mode": 0
}
],
"CalendarName": ""
},
"ExceptionTimes": [
{
"Time": "00:00:00",
"Value": 13.78
},
{
"Time": "08:32:32.3200000",
"Value": 66.6
},
{
"Time": "10:56:56.5600000",
"Value": 13.78
},
{
"Time": "12:11:11.1100000",
"Value": 66.6
},
{
"Time": "23:59:59.5900000",
"Value": 13.78
}
]
}
]
}
{
"DeviceId": "System1:GmsDevice_1_1800_33556232",
"Name": "System1:GmsDevice_1_1800_71303169",
"Setup": {
"DefaultValue": "1.1",
158
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Scheduler Service 10
"StartDate": {
"Date": "0001-01-01T00:00:00Z"
},
"EndDate": {
"Date": "0001-01-01T00:00:00Z"
},
"Priority": 16,
"DataType": "BACnetDataTypeReal",
"ScheduleMin": -3.402823e+38,
"ScheduleMax": 3.402823e+38,
"TextGroupId": "TxG_EngineeringUnits",
"Unit": 64
},
"Outputs": [
"Sys-
tem1:GmsDevice_1_1800_8388609.Present_Value"
],
"ScheduleType": "BACnet",
"Schedules": [
{
"Day": "monday",
"Entries": [
{
"Time": "09:54:00",
"Value": 18.5
},
{
"Time": "21:00:00",
"Value": 15.5
}
],
"OutputValuesActive": [],
"OutputValuesInActive": []
}
],
"Exceptions": [
{
"Priority": 6,
"Mode": 3,
"CalendarException": {
"CalendarObjectId": "Sys-
tem1:GmsDevice_1_1800_25165825",
"CalendarEntries": [
{
"StartDate": {
"Date": "0001-01-01T00:00:00Z",
"Days": [
6
],
"Months": [
1
],
"DaysInMonth": [
1
],
"Years": [
2005
]
},
"Mode": 0
},
{
"StartDate": {
"Date": "0001-01-01T00:00:00Z",
"Days": [
4
],
"Months": [
159
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Scheduler Service
6
],
"DaysInMonth": [
27
],
"Years": [
2019
]
},
"Mode": 0
}
],
"CalendarName": ""
},
"ExceptionTimes": [
{
"Time": "00:00:00",
"Value": 13.78
},
{
"Time": "08:32:32.3200000",
"Value": 66.6
},
{
"Time": "10:56:56.5600000",
"Value": 13.78
},
{
"Time": "12:11:11.1100000",
"Value": 66.6
},
{
"Time": "23:59:59.5900000",
"Value": 13.78
}
]
}
]
}
Response:
200 OK
true
160
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Scheduler Service 10
Category Public
HTTP Method GET
Query Property Type Description
defaultValue string Required
objectId string
Response HTTP 200 OK
Examples Request:
{
"ScheduleCalendarType": 0,
"CalendarEntries": [
{
"StartDate": {
"Date": "0001-01-01T00:00:00Z",
"Months": [
1
],
"DaysInMonth": [
1
],
"Years": [
2005
]
},
"Mode": 0
}
],
161
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Scheduler Service
"AppliedSchedules": [
"System1:GmsDevice_1_1800_71303169"
],
"ContainerObjectId": "Sys-
tem1:GmsDevice_1_1800_33556232",
"Device": 1800
}
162
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Objects Service 10
],
"ContainerObjectId": "System1:GmsDevice_1_1800_33556232",
"Device": 1800,
"ObjectId": "System1:GmsDevice_1_1800_25165825"
}
Response:
200 OK
true
Response:
{
"Designation":
"System1.ApplicationView:ApplicationView.Trends.TrendViewDefinitions",
"Description": "Trends Folder",
"ObjectType": "_GmsTrendsFolder",
"IsGenericDeleteAllowed": false,
"ChildObjects": [
{
"IsGenericCreateAllowed": false,
"MaxChild": 4294967295,
"ExistingChildCount": 0,
"Description": "Trend View Definition",
"ObjectType": "GMS_TVD",
"IsGenericDeleteAllowed": true
},
{
163
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Objects Service
"IsGenericCreateAllowed": true,
"MaxChild": 4294967295,
"ExistingChildCount": 0,
"Description": "Trends Folder",
"ObjectType": "_GmsTrendsFolder",
"IsGenericDeleteAllowed": false
}
]
}
Body Parameter:
{
"Designation": "Sys-
tem1.ApplicationView:ApplicationView.Trends.TrendViewDefinitions",
"NameChildNode": "TestFolderTVD1",
"ObjectModelName": "_GmsTrendsFolder",
"Descriptor": {
"CommonText": "TestFolderTVDNode",
"MultiLangText": [
"TestFolderTVDNodeLang1",
"TestFolderTVDNodeLang1"
] }}
Response:
{
"HasChild": false,
"SystemId": 1,
"ViewId": 10,
"ViewType": 1,
"Name": "TestFolderTVD1",
"Descriptor": " TestFolderTVDNode",
"Designation":
"System1.ApplicationView:ApplicationView.Trends.TrendViewDefinitions.TestF
olderTVD1",
"ObjectId": "System1:TestFolderTVD1",
"Attributes": {
"DefaultProperty": "StatusPropagation.AggregatedSummaryStatus",
"ObjectId": "System1:TestFolderTVD1",
"DisciplineDescriptor": "Management System",
"DisciplineId": 0,
"SubDisciplineDescriptor": "Unassigned",
"SubDisciplineId": 0,
"TypeDescriptor": "View Element",
"TypeId": 8000,
"SubTypeDescriptor": "User Defined Folder",
164
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Objects Service 10
"SubTypeId": 8016,
"ManagedType": 59,
"ManagedTypeName": "TrendsFolder",
"ObjectModelName": "_GmsTrendsFolder",
"ValidationRules": {
"CommentRule": "Optional",
"ReAuthentication": "NoNeed",
"Configuration": 0,
"IsFourEyesEnabled": false,
"_links": []
}
},
"Location": "System1.Application View:Applications.Trends.Trend View
Definitions.string",
"_links": [
{
"Rel": "properties",
"Href": "api/properties/System1%253ATestFolderTVD1?requestType=0",
"IsTemplated": false
}
]
}
Response:
165
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Objects Service
Response:
Returns status code 200
166
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Related Items Service 10
Body:
[
"SystemName:Object1",
"SystemName:Object2"
]
Response:
HTTP 200 OK
{
RelatedResults: [
{
ObjectId: “SystemName:Object1”,
ErrorCode: 0,
RelatedItems: [
<related item 1 for Object1>
{
"ItemDescriptor": "",
"Reference": "",
"Mode": 1,
"SourceType": 1,
167
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Access rights Service
"Nodes": [
{
<BrowserNode: see [➙ 55]>
},
{
<BrowserNode: see [➙ 55]>
}
]
},
<related item 2 for Object1>
{
"ItemDescriptor": "",
"Reference": "",
"Mode": 2,
"SourceType": 1,
"Nodes": [
{
<BrowserNode: see [➙ 55]>
}
]
},
<... more related items for Object1>
]
},
{
ObjectId: “SystemName:Object2”,
ErrorCode: 0,
RelatedItems: [
<related item 1 for Object2>
{
"ItemDescriptor": "",
"Reference": "",
"Mode": 1,
"SourceType": 1,
"Nodes": [
{
<BrowserNode: see [➙ 55]>
},
{
<BrowserNode: see [➙ 55]>
}
]
},
<related item 2 for Object2>
{
"ItemDescriptor": "",
"Reference": "",
"Mode": 2,
"SourceType": 1,
"Nodes": [
{
<BrowserNode: see [➙ 55]>
}
]
},
<... more related items for Object2>
]
}
]
}
/accessrights Internal x x
168
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Access rights Service 10
169
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Access rights Service
notifySubscriptionStatus:
{
"ErrorCode":0,
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:” notifyAccessRights”
}
170
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Access rights Service 10
notifySubscriptionStatus:
{
"ErrorCode":0,
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:”userRoles”
}
171
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Access rights Service
172
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Operating Procedures Service 10
/operatingprocedures Internal x x
173
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Operating Procedures Service
Response:
Returns status code 200
{
"HasConfirmedExecution": true,
"IsCompleted": true,
"Operator": "Admin",
"RuntimeStatus": "Runtime text",
"Status": "Failed",
"StepId": "System1:GraphicsStep",
"StepName": "GraphicsStep"
}
174
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Operating Procedures Service 10
notifySubscriptionStatus:
{
“Id”:”c6c95ece-133b-480b-af1f-067a173e0f5b”,
“Key”:”1a”,
"ErrorCode":0,
"RequestId": "9565ca41-8556-4dbb-94cc-1b89451a5db5",
“RequestFor”:” notifyOperatingProcedures”
}
175
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Licenses Service
/licenses Public x
176
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Licenses Service 10
Examples Request:
GET /api/licenses/licenseoptions
Response:
Returns status code 200.
[
{
"Id": "sbt_gms_intOnly_allfeature",
"Required": 0,
"Remaining": 4,
"Available": 1,
"Description": "Unlimited use for Development Pur-
poses"
},
{
"Id": "sbt_gms_ext_sm",
"Required": 0,
"Remaining": -1,
"Available": -1,
"Description": "System Manager Application"
}
]
177
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Common
8.1 Common
8.1.1 Link
Models a hyperlink to another resource.
Property Type Description
Href string Hyperlink to a resource (URI [RFC3986] or URI template [RFC6570])
IsTemplated bool If true, Href contains a placeholder in its link.
Rel string Link relation type (RFC5988)
8.1.4 NameValue
Property Type Description
DataType ApiDataType Data type of the property
Name string Name of the property
Value string Value of the property
8.1.5 Subscription
Property Type Description
_links Array of Link See Link [➙ 178]
Key int Subscription key is specific for the requested ID
ErrorCode int If value is >0, an error occurred.
PropertyId string Address of a property
178
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Common 10
8.1.6 UnSubscription
Property Type Description
Key int Subscription key is specific for the requested ID
ErrorCode int If value is >0, an error occurred.
8.1.7 Value
Property Type Description
Value string Raw value
DisplayValue string Value for display purpose (textual representation of the raw value)
Timestamp DateTime Timestamp of this value
QualityGood bool
Quality string See Quality Flags [➙ 179]
IsPropertyAbsent bool Driver reported that property is not present
Note: Only set if true and not available for trends
179
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Common
8.1.8 ColorRepresentation
Property Type Description
A byte Color code
R byte Red color code
G byte Green color code
B byte Blue color code
8.1.1 CommandsSubscription
180
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Common 10
8.1.2 ValuesSubscription
Property Type Description
_links Array of See Link [➙ 178]
Link
Key int Subscription key is specific for the requested ID
ErrorCode int If value is >0, an error occurred.
PropertyId string Address of a property
RequestId string Channelized subscription request identifier
Note: Only available for channelize requests
RequestFor string Notification function name where client will receive
further updates
Note: Only available for channelize requests
OriginalObjectOrPropertyId string Original requested string for subscription
ObjectOrPropertyId string Original requested string for subscription
AttributeId string Object Name
ObjectId string Object Id only of requested ObjectOrPropertyId
PropertyName string PropertyName of requested ObjectOrPropertyId
8.1.3 Attributes
Property Type Description
DefaultProperty string Default property of object-model
DisciplineDescriptor string Localized name of discipline
DisciplineId int ID of discipline
FunctionDefaultProperty string Default property of assigned function
FunctionName string
ManagedType uint
ManagedTypeName string
ObjectModelName string
ObjectId string
SubDisciplineDescriptor string Localized name of subdiscipline
SubDisciplineId int ID of subdiscipline
SubTypeDescriptor string Localized name of subtype
SubTypeId int ID of subtype
TypeDescriptor string Localized name of type
TypeId int ID of type
8.1.4 ApiDataType
Name Description BaseType
None
BasicChar char
BasicUint uint
BasicInt int
BasicFloat double
BasicBool boolean
BasicBit32 uint
BasicString string
BasicTime DateTime
181
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Token Service
BasicObjectOrPropertyId string
BasicLangText string
BasicBlob string
ExtendedBool Extends BasicBool with a language text for true/false.
ExtendedInt Extends BasicInt with Min, Max, Default, Unit.
ExtendedUint Extends BasicUint with Min, Max, Default, Unit.
ExtendedReal Extends BasicFloat with Min, Max, Default, Unit.
ExtendedEnum Extends BasicUInt with enumeration texts.
ExtendedBitString Extends BasicUInt with bit set texts.
ExtendedDateTime Extends BasicString with semantics for a DateTime string
format.
ExtendedApplSpecific Extends BasicString with the knowledge that the string
has a dedicated meaning for some application. Typically,
the string will be XML-encoded.
ExtendedAny Extends BasicFloat with the permission to switch its type.
ExtendedComplex Extends BasicBlob.
ExtendedDuration Extends BasicUint with Min, Max, Default and time
duration specific configurations.
8.1.5 Subgroups
Property Type Description
Id Uint Id of the SubGroup
Descriptor string Descriptor of the SubGroup
8.1.6 StatusNotification
Property Type Description
ErrorCode int Error code of operation:
0 – Success
1 - Error
RequestId string Unique Identifier passed by client in subscription request
8.2.1 Login
Property Type Description
access_token string Token to be provided for requesting protected resources.
expires_in int Seconds until token expires at the latest
NOTE: Token will expire sooner in case of inactivity; see
Authentication [➙ 28].
token_type string Only Bearer is supported at this time.
user_name string Logged in user name
user_descriptor string Localized user descriptor in user language
user_profile string name of currently logged in user’s profile
flex_user_profile string name of currently logged in flex-user profile
user_inactivity_timeout string Inactivity timeout of user’s group (uint) in minutes.
182
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Event Service 10
8.3.1 Event
Property Type Description
_links Array of See Link [➙ 178]
Link
CategoryDescriptor string Localized textual representation of CategoryId
CategoryId int Alarm category
Cause string Cause came with alarm (localized)
Commands Array of List of available commands. See Event Command [➙ 187]
EventComm
and
CreationTime DateTime Time when alarm created.
Deleted bool Flag whether an event was deleted. This is for server sent
notifications only.
Direction EventDirecti See EventDirection [➙ 184]
on
EventId uint Event counter (non-unique)
EventText string Service text attached to an event.
Id string Desigo CC alarm identifier
→ Invariant across sessions
InfoDescriptor string Additional information to an event
SrcDescriptor string Tree node descriptor
OBSOLETE : use DescriptionList instead
SrcDesignation string Concatenated tree node names
OBSOLETE : use DesignationList instead
SrcDisciplineDescript string Localized textual representation of DisciplineId
or
SrcDisciplineId int Alarm discipline
SrcLocation string Concatenated tree-node descriptors
OBSOLETE :use DescriptionLocationsList instead
SrcName string Tree node name
SrcObservedProperty string Observed property which lets SrcPropertyId trigger an event
Id
SrcPropertyId string Source of an event
SrcState SourceState See SourceState [➙ 184]
SrcSystemId uint Unique system identifier
SrcViewDescriptor string View descriptor
SrcViewName string View name
State EventState See EventState [➙ 184]
SuggestedAction SuggestedA See SuggestedAction[➙186 ]
ction
NextCommand NextComm See NextCommand [➙186 ]
and
183
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Service
8.3.1.1 SourceState
SrcState must have one of the following values.
SrcState Description
Active Object is active
Quiet Object is quiet
8.3.1.2 EventState
State must have one of the following values.
State Description
UnprocessedWithTimer Unprocessed with Timer for user action
Unprocessed Unprocessed
ReadyToBeResetWithTimer Ready to be reset with timer for user action
ReadyToBeReset Ready to be reset
ReadyToBeClosed Ready to be closed
WaitingOPCompletion Waiting for completion
Acked Acknowledged
Closed Closed
8.3.1.3 EventDirection
Direction must have one of the following values:
Direction Description
In IN alarm
Out OUT alarm
None Neither IN nor OUT alarm
184
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Event Service 10
8.3.1.4 EventTimeFilter
creationTime must have one of the following values:
creationTime Description
0 All events (default, can be omitted)
1 Events generated in the last 15 minutes
2 Events generated in the last 30 minutes
3 Events generated in the last hour
4 Events generated last night
5 Events generated yesterday
6 Events generated today
8.3.1.5 EventSorting
sorting must have one of the following values.
sorting Description
0 Sort by StateId, CategoryId, and descending CreationTime
1 Sort by StateId, CategoryId, DirectionId, and ascending CreationTime
8.3.1.6 EventFilter
Property Type Description
ids Array of strings Event identifier
caseSensitive bool
categories Array of int
cause string
creationTime int See EventTimeFilter [➙185 ]
creationTimeFrom DateTime
creationTimeTo DateTime
disciplines Array of int
systemId Uint System identifier
states Array of int
8.3.1.7 EventSubscriptionStatus
Property Type Description
ErrorCode int 0: success
1: Failure
Sorting int See Event Sorting [➙ 185]
EventsFilter EventFilter See EventFilter [➙185 ]
object
RequestId string Channelized subscription request identifier
Note: Only available for channelize requests
RequestFor string Notification function name where client will receive further
updates.
185
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Service
SrcState Description
All Maintenance is All
MaintenanceOnly MaintenanceState is Maintenance
GenuineOnly MaintenanceState is Geniune
8.3.1.9 SuggestedAction
“SuggestedAction” must have one of the following values.
SuggestedAction Description
Acknowledge
Silence
Suspend
Reset
Close
CompleteOP Complete operation
WaitforCondition
None
NextCommand Description
None
Acknowledge
Reset
NoActionPossible
StepMandatory
Silence
Close
186
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Event Service 10
Valid values:
1.SourceToNormal
2.UponUserRequest
3.EventAcknowledged
4.EventReset
5.EventClosed
6.Timeout
OnNewEvent string Configuration value specifying action on new event.
Valid values:
1.DoNothing
2.OpenEventList
3.StartFastTreatment
4.StartInvestigativeTreatment
5.StartAssistedTreatment
OnNewHigherPrioEv string Configuration value specifying action on new higher priority
ent event.
Valid values:
1. DoNothing
2. SwitchToNew
3. AskUser
8.3.2 EventCommand
8.3.2.1 ValidationData
Property Type Description
Password String Password required to re-authenticate event-commands
MultiLangComments String[] Comments are required before execution of an event-
command.
Comments should be provided in same order as
languages are installed for a project.
Check Systems Service[➙ 137] to get the order of
installed languages.
NOTE : array with length equals number of languages
installed in project.
SuperName String Supervisor’s username required to authenticate event-
commands
SuperPassword String Supervisor’s password required to authenticate event-
commands
187
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Event Counter Service
8.3.2.2 BatchEventsCommandExecution
Property Type Description
ValidationInput ValidationData Validation information of command execution See Link
[➙ 187]
EventIds String[] List of Event Id’s for execution
8.3.3 EventDetailsList
Property Type Description
ViewId uint Unique identifier of a view
Descriptor string View details (Tree node or node details)
8.4.1 EventCounterList
Property Type Description
EventCategoryCounters Array of Categorized list of event counters
EventCounter
TotalCounters int Total counters in the system for logged-in user
TotalUnprocessedCounters int Total unprocessed counters in the system for logged-
in user
8.4.2 EventCounter
Property Type Description
_links Array of Link See Link [➙ 178]
CategoryId int Category key
CategoryDescriptor string Localized category name
TotalCount int Total events of this category
UnprocessedCount int Total unprocessed events of this category
TotalSubsequentGroup int Total number of grouped for subsequent Events for a
ing category
UnprocessedSubseque int Total number of unprocessed subsequent Events for a
ntGrouping category
188
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
System Browser Service 10
6 ButtonGradientBright
7 ButtonGradientDark
8 ButtonPressedGradientBright
9 ButtonPressedGradientDark
10 ButtonBlinkingBright
11 ButtonBlinkingDark
12 EventDescriptorSelected
13 EventDescriptorNormal
8.5.1 View
Property Type Description
_links Array of Link See Link [➙ 50]
Designation string Full view name
Descriptor string Localized view name
Name string View name
SystemId uint Unique ID of a system
SystemName String Name of system
ViewId uint Unique ID of a view within a system
ViewType int The type of view in Desigo CC:
-3: Reserved (used internally)
-2: Isolated (used for isolated nodes)
-1: Undefined
0: Management
1: Application
2: Logical
3: Physical
4: UserDefined
189
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 System Browser Service
8.5.2 BrowserNode
Property Type Description
_links Array of Link See Link [➙ 50]
Attributes Attributes See Attributes [➙ 51]
Descriptor string Localized browser object name
Designation string Full view name
HasChild bool Flag whether child nodes are available
Note: Property omitted for searches and in notifications
Name string View name
Location string Localized full browser object name
ObjectId string Node address
SystemId uint Unique ID of a system
ViewId uint Unique ID of a view within a system
8.5.3 SystemBrowserSearchList
Property Type Description
ErrorCode int If value is >0, an error occurred
ObjectId string Searched Object Id
Nodes Array of Array of Browser nodes returned as search result for
BrowserNode ObjectId see [➙ 77]
8.5.4 SystemBrowserSubscription
Property Type Description
Action ObservationActio Enumeration to convey additional information about the
n action. See Enum for Action [➙ 78]
Change ObservationCha Enumeration to convey the possible reasons for the event
nge to have occurred. See Enum for Change [➙ 78]
Node BrowserObject See BrowserObject [➙ 77]
View View See View [➙ 77]
SubscriptionKey int Subscription Key of View
RequestId string Channelized subscription request identifier
Note: Only available for channelize requests
8.5.4.1 ObservationChange
Change type Description
0 Reserved for 'no reason known'
1 System name changed
2 View separator changed
3 Change in the Nodes display name OR Views display name
4 Tree data changed
5 Structural change in the specified View, Tree OR Node. This also handles
creation/deletion of System Browser-Views, a System Browser-Node OR
System Browser-Subtree
100 Provider Reconnect
190
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Value Service 10
8.5.4.2 ObservationAction
Action type Description
0 Reserver for ‘no action known’
1 Changes in the System name
2 Creation of System Browser-View
3 Deletion of System Browser-View
5 Editing of System Browser-View
6 Editing of System Browser-View separator
7 Creation of System Browser-Tree
8 Deletion of System Browser-Tree
9 Editing of System Browser-Tree
10 Adding of a System Browser-Tree i.e. a new node somewhere in the Tree
11 Changes in the Node name
12 Changes in the Node data
100 All nodes in the client-hosted tree have been collapsed.
8.5.5 SystemBrowserSubscriptionKey
Property Type Description
_links Array of Link See Link [➙ 178]
Key int Subscription key is specific for the requested ID
ErrorCode int If value is >0, an error occurred.
Designations String[] String array of designations for which client requested subscription
RequestId string Channelized subscription request identifier
Note: Only available for channelize requests
RequestFor string Notification function name where client will receive further updates
Note: Only available for channelize requests
8.6.1 ValueDetails
Property Type Description
_links Array of Link See [➙ 42]
AttributeId string Address of attribute to which value belongs to
191
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 PropertyValue Service
8.7.1 Object<Type>
Property Type Description
_links Array of Link See Link [➙ 178]
Attributes Attributes See Attributes [➙ 181]
ErrorCode int If value is >0, an error occurred.
ObjectId string Address of object to which value belongs to
Properties Array of <Type>
FunctionProperties Array of <Type>
8.7.2 PropertyDetails
Property Type Description
_links Array of Link See Link [➙ 178]
AllowWildcards bool Boolean flag for BACnet date/time values; indicates if
the user can provide wildcards for any of the fields.
AllowDayOfWeek bool Boolean flag for BACnet date/time values; indicates if
the day-of-week field is supported.
BackgroundColor Color
BACnetDateTimeDetail uint Indcates which parts of the BACnet date/time value to
use:
1: date
2: time
3: date and time
BACnetDateTimeResolution uint When the time part of the BACnet date/time value is to
be used, what is the resolution of the seconds?
0: seconds
1: tenths of seconds
2: hundredths of seconds
Descriptor string
DisplayOffNormalOnly Boolean When true, the user interface should only display the
property when the value is off normal.
DisplayType integer Provides a ‘hint’ as to how the property value should be
displayed. See DisplayType [➙ 193]
DurationDisplayFormat unsigned If the property is of type “duration” this field will indicate
integer how the duration is to be displayed.
DurationValueUnits unsigned If the property is of type “duration” this field will indicate
integer the units of the raw property value (the raw value is an
unsigned integer that can represent anything from
milliseconds to days).
192
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
PropertyValue Service 10
8.7.3 Elements
Property Type Description
Id uint Id assigned to the
Descriptor string raw unit (index) of a property if configured
Property Description
Factor scaling factor of a property if configured
Index raw unit (index) of a property if configured
Offset scaling offset of a property if configured
8.7.5 DisplayType
193
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Properties Service
8.8.1 PropertyNames
Property Type Description
ObjectId string Address of object to which value belongs to
Properties Array of string Array of property names corresponding to the ObjectId
FunctionProperties Array of string Array of function property names corresponding to the
ObjectId
8.9.1 PropertyCommand
Property Type Description
Commands Array of See Command [➙ 194]
Command
PropertyId int
ErrorCode int -ErrorCode >0, an error occurred.
-ErrorCode = 0 , Success
SubscriptionKey int -subscription key of propertyId
8.9.2 Command
Property Type Description
_links Array of Link See Link [➙ 178]
Descriptor string Localized command name
GroupNumber int If provided, commands with same GroupNumber belong
together
Parameters Array of See CommandParameter [➙ 195]s
CommandParame
ter
PropertyId string Address of property to which command belongs to
Id string Unique identifier of command
IsDefault bool True if this is the default command for the property.
Configuration int ValidationId of a propertyid
If Configuration :0 ->None is required
If Configuration :1 -> Only comment is required
If Configuration : 2-> Comment and Password(to re-
authenticate) are required.
194
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Command Service 10
8.9.3 CommandParameters
Property Type Description
AllowWildcards bool Boolean flag for BACnet date/time command
parameters; indicates if the user can provide wildcards
for any of the fields.
AllowDayOfWeek bool Boolean flag for BACnet date/time command
parameters; indicates if the day-of-week field is
supported.
Application int Integer indicating the application use of the parameter
Application: 0 -> Normal
Application: 1 -> The parameter is an index
BACnetDateTimeDetail uint Indcates which parts of the BACnet date/time value to
use:
1: date
2: time
3: date and time
BACnetDateTimeResolution uint When the time part of the BACnet date/time value is to
be used, what is the resolution of the seconds?
0: seconds
1: tenths of seconds
2: hundredths of seconds
DataType ApiDataType
DefaultValue string Default value of parameter
Descriptor string Localized command parameter name
DurationDisplayFormat uint How the duration is to be displayed. The following
abbreviations are used: d: days, h: hours, m: minutes,
s: seconds, ms: milliseconds
0: display raw value as-is
1: display is to be in units of d
2: display is to be in d + h
3: display is to be in d + h + m
4: display is to be in d + h + m + s
5: display is to be in d + h + m + s + ms
6: display is to be in h
7: display is to in h + m
8: display is to in h + m + s
9: display is to be in h + m + s + ms
10:display is to be in m
11: display is to be in m + s
12: display is to be in m + s + ms
13: display is to be in s
14: display is to be in s + ms
DurationValueUnits uint The content of the unsigned integer representing a
duration value:
1: number of days
2: number of hours
3: number of minutes
4: number of seconds
5: number of deciseconds
6: number of centiseconds
7: number of milliseconds
EnumerationTexts Array of See EnumItem [➙ 196]
EnumItem
IsPassword Bool Boolean indicating if the parameter represents a
password. This flag will only exist when the parameter
is of type “BasicString“
195
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Command Service
8.9.4 EnumItem
Property Type Description
Descriptor string Localized value
Value int Numeric value (unique within enumeration)
8.9.5 BatchExecution
Property Type Description
PropertyId string Address of property to which command belongs to
ErrorCode int -ErrorCode >0, an error occurred.
-ErrorCode = 0 , Success
ErrorMessage string Error message containing reason for failure – comments
not passed or missing validation information in request.
8.9.6 CommandInputForExecution
Inherits ValidationData See[[➙ 187]
Property Type Description
Name string Parameter name
Value int Value of the parameter
DataType ApiDataType
MultiLangComments string[] Validation Profile : String array of comments for validation
profile. Number of items in array should match the number
of languages installed in project.
Password string Validation Profile : Logged in user’s password for
reauthentication
SuperName string Validation Profile : Supervisor’s username
SuperPassword string Validation Profile : Supervisor’s password
8.9.7 BatchCommandExecution
Property Type Description
CommandInputForEx CommandInputFor Command parameter required for execution of commands
ecution Execution[]
PropertyIds string[] String array of propertyids required for batch commanding
196
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
8.9.8 PropertyCommandInput
Property Type Description
CommandInputForEx CommandInputFor Command parameter required for execution of commands
ecution Execution[]
PropertyId string Property Id for execution
CommandId string Command Id for execution
8.10.1 TrendCollector
Property Type Description
CollectorObjectOrPro string Address of collector object
pertyId
PropertyIndex uint Index of Trended Property in the Trended Object.
Start index: 1
ObjectId string Object ID of trended object
PropertyName string Trended property name
TrendseriesId string Identifier of corresponding trend series
8.10.2 TrendBorder
Property Type Description
From DateTime Minimum date/time from available values for requested
trend series ID
To DateTime Maximum date/time from available values for requested
trend series ID
8.10.3 TrendSeries
Property Type Description
Id string ID of trend series
Series Array of Value See Value [➙ 179]
SeriesPropertyId string Trended object
8.10.4 TrendAggregateSeries
Property Type Description
Id string ID of trend series
Series Array of See Value [➙197]
TrendAggregate
SeriesPropertyId string Trend Aggregate object
8.10.5 TrendAggregate
Statistical analysis will be done for the samples of Values. All details are below are
in reference of a Sample of Values
197
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
8.10.6 TrendViewDefinitionRepresentation
Property Type Description
AxisX AxisDefinitionRepresentation [➙ 198]
AxisYLeft AxisDefinitionRepresentation [➙ 198]
AxisYRight AxisDefinitionRepresentation [➙ 198]
DescriptionTvd string
ObjectIdOfTvd string
IdTvd string
NameTvd string
NumberDisplayedSampl integer
esPerTrendSerie
RemoveOnlineTrendLog boolean
OfDeletedTrendSerie
TimeRange TimeRange [➙199]
TitleLeft string
TitleRight string
TitleTop string
TsdCollectionInfo TrendSeriesDefinitionCollectionRepresent
ation [➙200]
TvdType integer
TvCovType string
_links Array of Link [➙178]
8.10.7 AxisDefinitionRepresentation
198
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Trend Service 10
ScaleMax number
ScaleMin number
ShowTitle boolean
ShowZeroLine boolean
Title string
8.10.8 TimeRange
Property Type Description
ValidTimeRange integer
AbsoluteTimeRange AbsoluteTimeRange [➙200 ]
RelativeTimeRange RelativeTimeRange [➙ 200]
8.10.9 TrendSeriesDefinitionRepresentation
Property Type Description
ReservedDateTime string
AccessDenied boolean
Alias string
ArchiveOn boolean
AxisAttachment string
ChartLineStyle string
ChartLineType string
Color string
DescriptionTlField string
DescriptionTlGms string
DescriptionTo string
DescriptionToProperty string
ObjectIdOfTrendLog string
ObjectIdOfTrendLogOnline string
ObjectIdOfTrendedObject string
Index integer
IsLineVisible boolean
LineWidth integer
ManagedType string
MaxTimeStamp string
MinTimeStamp string
ShowDataLabels boolean
ShowMarkers boolean
ShowQualityIcons boolean
TimeZoneServer string
Type string
UnitText string
ValueType string
199
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Trend Service
8.10.10 RelativeTimeRange
Property Type Description
AnchorMode integer
AnchorTime string
NumberOfTimeUnits integer
TimeUnit integer
8.10.11 AbsoluteTimeRange
Property Type Description
From string
To string
8.10.12 TrendSeriesDefinitionCollectionRepresentation
Property Type Description
Array of
TrendSeriesDefinitionReprese
TrendSeriesDefinitions ntation [➙178]
8.10.13 TrendViewDefinitionUpdateRepresentation
Property Type Description
AxisX AxisDefinitionUpdateRepresentation [➙
198]
AxisYLeft AxisDefinitionUpdateRepresentation [➙
198]
AxisYRight AxisDefinitionUpdateRepresentation [➙
198]
CNSDescription string
Location string
TvdObjectId string
NumberDisplayedSampl integer
esPerTrendSerie
RemoveOnlineTrendLog boolean
OfDeletedTrendSerie
TimeRange TimeRange [➙199]
TitleLeft string
TitleRight string
TitleTop string
TsdCollectionInfo TrendSeriesDefinitionUpdateCollectionRe
presentation [➙200]
TvCovType string
8.10.14 TrendSeriesDefinitionUpdateRepresentation
Property Type Description
ArchiveOn boolean
200
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
AxisAttachment string
ChartLineStyle string
ChartLineType string
Color string
TrendLogObjectId string
TrendLogOnlineObjectId string
ObjectPropertyId string
TrendedObjectId string
IsLineVisible boolean
LineWidth integer
ShowDataLabels boolean
ShowMarkers boolean
ShowQualityIcons boolean
Type string
Smoothing boolean
CustomDescription string
8.10.15 TrendSeriesDefinitionUpdateCollectionRepresentation
Property Type Description
Array of
TrendSeriesDefinitionUpdateR
TrendSeriesDefinitions epresentation
8.10.16 AxisDefinitionUpdateRepresentation
Property Type Description
AutoScale boolean
ScaleMax number
ScaleMin number
ShowTitle boolean
ShowZeroLine boolean
Title string
8.11.1 LogTable
Property Type Description
Name string Name of table which is unique and will be used for further
operations in subsequest requests
Descriptor string Display name of table
Description string Description of table
HasChildColumns bool Flag whether table supports child columns or not
HasConditionFilter bool Flag whether table supports Condition Filter or not
HasNameFilter bool Flag whether table supports Name Filter or not
201
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 History Logs Service
8.11.2 LogColumn
Property Type Description
Name string Name of column which is unique and will be used for
further operations in subsequest requests
Descriptor string Display name of column
DataType string Data type of the data which column supports
ErrorSupport bool Flag whether column supports display of error data (e.g.,
#COM, #ERR) or not
IsArray bool Flag whether column contains a data array or not
IsDefault bool Flag whether column is displayed by default or not. This
will be useful while developing a user interface to create
tables.
IsHidden bool Flag whether column is hidden or not
IsSortable bool Flag whether column is sortable or not
IsEnum bool Flag whether column contains enumerated data or not
IsFilterable bool Flag whether data from the column can be filtered using
condition filter or not
8.11.3 LogConditionFilter
Property Type Description
Operators Array of strings Supported condition filter operators for column
ErrorInfo Array of strings Localized list of error information. It describes specific
error cases.
8.11.4 LogEnumValues
Property Type Description
EnumValues Array of strings Supported enum values for column
ErrorInfo Array of strings Localized list of error information. It describes specific
error cases.
8.11.5 LogSortInfo
Property Type Description
Name string Name of the Column which is to be sorted
Required
202
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
History Logs Service 10
8.11.5.1 LogSortType
LogSortType must have one of the following values.
LogSortType Description
Ascending Sorts data in ascending order
Descending Sorts data in descending order
8.11.6 LogColumnList
Property Type Description
Parent Array of string Column list for parent table
Child Array of string Column list for child table
8.11.7 LogTableData
Property Type Description
TableName string Name of the table
Page int Current page number
Size int Number of records per page
Result Array of objects At runtime each object is composed using selected
columns to retrieve data and there value.
SnapshotId string Snapshot id of the snapshot created
Total long Total number of records found for the requested
configuration
ErrorInfo Array of strings Localized list of error information. It describes specific
error cases.
_links Array of Link See [➙178]
8.11.8 LogDiscardedSnapshot
Property Type Description
TableName string Name of the table
SnapshotId string Snapshot Id which is discarded
IsSnapshotDiscarded bool Status of the discard request. If TRUE then discard is
successful.
8.11.9 LogConditionFilterValidation
Property Type Description
ErrorPosition int In case of invalid string, Error position in the invalid string
ErrorMessageDescrip string In case of invalid string, Localized Error message if string
tor is not valid as per the standards
TodoMessageDescri string In case of invalid string, Localized to-do message using
ptor which client can correct the Condition filter string if it is
incorrect
203
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Language Service
8.11.10 LogChildData
Property Type Description
Page int Current page number
Size int Number of records per page
Total long Total number of records found for the requested
configuration
Result Array of objects At runtime each object is composed using selected
columns to retrieve data and there value.
ErrorInfo Array of strings Localized list of error information. It describes specific
error cases.
_links Array of Link See [➙178]
8.12.1 Language
Property Type Description
Descriptor string Full localized language name
Code string IETF language tag according to RFC5646 [5] [➙ 18]
8.13.1 SubDisciplines
Property Type Description
DisciplineId Uint Id of the Discipline
DisciplineDescriptor string Descriptor of the Discipline
SubDisciplines Array of Array of SubDisciplines in SubGroups form for which filter
SubGroups is applied. See [➙ 55]
8.13.2 SubObjectTypes
Property Type Description
ObjectTypeId Uint Id of the ObjectType
ObjectTypeDescriptor string Descriptor of the ObjectType
SubObjectTypes Array of Array of SubObjectTypes in SubGroups form for which
SubGroups filter is applied. See [➙ 55]
8.13.3 TextTableEntry
Property Type Description
Value uint Numeric value of the entry
204
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Systems Service 10
8.13.4 LangTextTableEntry
Property Type Description
Value uint Numeric value of the entry
Color uint? The color assigned to the entry; this field is optional and if
it does not exist, the property will not be included in the
JSON representation.
LangText String[] Array of strings, one for each installed language.
8.14.2 Systems
Property Type Description
Systems SystemsInformatio Array of systems information. See[➙205 ]
n
Languages SystemsLanguage Array of systems languages See[➙205 ]
s
IsDistributed bool System is in distribution environment or not
IdLocal uint Id of system that is currently serving requests
8.14.3 SystemsInformation
205
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10
8.14.4 ServicesSubscriptionsRepresentation
Property Type Description
SystemId int System id
Serviceid int Service id of the respective system id
ErrorCode int If that particular subscription for the respective system
AND service is successful or not. 1 for error, 0 for
success.
8.14.5 ServicesRequestSubscriptionsRepresentation
Property Type Description
SystemId int System id
Ids List<int> List of Service ids of the respective system which are to
be subscribed
8.14.6 ServicesNotificationRepresentation
Property Type Description
SystemId uint System id
Serviceid int Service id of the respective system id
Description string Name/description of the particular service for which
notification is being received. NOTE: this will only be non-
null when the service is connected.
IsConnected bool The current status of the service
8.15.1 ProductInfo
Property Type Description
ProductNameShort string The name of the product; not localizable
e.g. “Desigo CC” or “Cerberus DMS”
ProductName string The long name of the product;
not localizable
e.g. “Desigo CC ™”
VendorName string The name of the vendor of the product;
not localizable
e.g. “Siemens Switzerland Ltd.”
or “Daikin Ltd.”
ProductCopyRights string Any statement;
not localizable:
© Siemens Switzerland Ltd, 2016
ProductVersion string Desigo CC project version
206
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Files Service 10
8.17.1 GraphicalItem
Objects that are graphical in nature will be represented by this object type.
Property Type Description
Context String The designation of the object that ‘owns’ the graphical item.
ObjectId String The id of the object within DCC. Note that this id must include the system
information to distinguish the object in a multi-system configuration.
ManagedType String The DCC managed type of the object.
DisplayName String A string that can be displayed to the user.
8.18.1 Calendar
Property Type Description
ScheduleCalendarType integer
CalendarEntries Array of CalendarEntry[-
>207 ]
AppliedSchedules Array of string
ContainerObjectId string
ObjectId string
Device integer
8.18.2 CalendarEntry
Property Type Description
207
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Scheduler Service
8.18.3 CalendarDate
Property Type Description
Date string
IsAny boolean
Days Array of integer
Months Array of integer
DaysInMonth Array of integer
LastDayInMonth boolean
Years Array of integer
Weeks Array of integer
LastWeekInMonth boolean
8.18.4 WeeklySchedule
Property Type Description
DeviceId string
Name string
Setup ScheduleSetup [->208]
Outputs Array of string
ScheduleType string
Schedules Array of Schedule [->208]
Array of
ReferencedOutputDetails [-
ReferencedOutputDetails >209]
Array of ScheduleException
Exceptions [->209]
8.18.5 ScheduleSetup
Property Type Description
DefaultValue string
StartDate CalendarDate [->208]
EndDate CalendarDate [->208]
Priority integer
DataType string
ScheduleMin number
ScheduleMax number
TextGroupId string
Unit integer
208
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Objects Service 10
8.18.6 Schedule
Property Type Description
Day String
Array of TimeTrigger [-
Entries >209]
OutputValuesActive Array of string
OutputValuesInActive Array of string
8.18.7 ReferencedOutputDetails
Property Type Description
Output string
TextGroupId string
Unit integer
8.18.8 ScheduleException
Property Type Description
Priority integer
Mode integer
CalendarException CalendarException [->209]
CalendarEntry CalendarEntry[->207 ]
ExceptionTimes Array of TimeTrigger [->209]
ExceptionValuesActive Array of string
ExceptionValuesInActive Array of string
8.18.9 TimeTrigger
Property Type Description
Time string
Value number
8.18.10 CalendarException
Property Type Description
CalendarObjectId string
Array of CalendarEntry [-
CalendarEntries >207 ]
CalendarName string
8.19.1 Object
Objects will be represented by this type.
209
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Objects Service
8.19.2 Descriptor
Priority based text value definition.
8.19.3 ObjectModel
Objects type will be represented by this type.
8.19.1 ChildObjectModel
Objects type will be represented by this type.
210
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Related Items Service 10
8.19.2 ServiceTextRepresentation
Information Text and Memo information will be represented by this type.
Property Type Description
InformationText string Information Text saved for an object in loggedin user's
language.
Memo string Memo content for an object.
8.19.3 ObjectInfo
Response type for Information Text and Memo content.
Property Type Description
ObjectId string Object Id.
ServiceText ServiceTextRepres Information text and Memo details for an object.
entation [->211] In case of failed request, this field is missing in Json
response.
8.19.4 ServiceTextMemoRepresentation
Request type for accepting Memo text.
Property Type Description
Memo string Memo content for an object
8.20.1 RelatedItemResult
This is the top level object returned from the “get related items” API call. It contains
a single property at this time.
8.20.2 ObjectRelatedItem
This object contains the related item information for each object id passed to the
“get related items” API.
211
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Access rights Service
8.20.3 RelatedItem
As described elsewhere, two objects can be associated with each other – for ex-
ample, an object in a report is ‘related to’ that report. This table defines the infor-
mation that returned for each item that the object is related to.
8.21.1 AccessRightsRepresentation
Property Type Description
Application Array of Collection of application rights assigned to logged in user
Rights ApplicationRightR
epresentation [-
>Error!
Bookmark not
defined. ]
8.21.2 ApplicationRightRepresentation
Property Type Description
Name string
Name of AccessRight in loggedin user's current language
Id uint Unique identifier assigned to access right
Operations Array of Operations applicable within current access right
OperationsRepres
entation [->212]
8.21.3 UserRoleRepresentation
Property Type Description
212
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Operating Procedures Service 10
8.21.4 RoleInfo
Property Type Description
RoleName string
Name of Role in loggedin user's current language
RoleId uint Unique identifier assigned to role
RoleDescrip string Decription of role functionality
tion
RoleState bool Active or not.
8.21.5 OperationsRepresentation
Property Type Description
Name string Name of AccessRight in loggedin user's current language
Id uint Unique identifier assigned to operation within access right
213
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Operating Procedures Service
8.22.5 UnsubscriptionStatus
Property Type Description
214
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Diagnostics Service 10
8.23.1 DiagnosticsRepresentation
Property Type Description
ServerDate DateTime Server's UTC Datetime
Time
ClientDateTi DateTime [optional] Client's UTC Datetime passed as input
me
NTPt1t0 string [optional] Total milliseconds difference between server time and
client time. Server’s datetime – Client’s datetime
NOTE: This value would be double value and could be negative .
8.24.1 LicenseMode
Property Type Description
LicenseMod string The mode name of License Service
eName
LicenseMod uint License mode value
eValue
ExpirationTi uint ExpirationTime of relative mode espression in second
me
8.24.2 LicenseOptions
Property Type Description
Id string The License option Id
Required Int Required property as int
Remainin Int Remaining property as int
g
Descript string Description of licensing option
ion
Availabl int Available property as int
e
215
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Naming
9 Concepts
9.1 Naming
The following is an overview about data hierarchies and naming conventions in the
system.
9.2 Extensibility
In order to deploy its own Web Service Interface extension one can create and
deploy its own DLL. The DLL has to meet the following prerequisites:
216
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Extensibility 10
Each service comes as a class named with the service-name and a “Controller”-
suffix. It derives from the ApiController base class. The following service could be
reached at http://[Your Host]/api/extensions/ :
For using push-notifications one can take advantage of the existing push
infrastructure.
217
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Support for Web Service Interface extensions
[System.Web.Http.Authorize]
[ControllerLicense("sbt_gms_opt_ws_base")]
[RoutePrefix("api/sr/SubExtensions")]
public class SubExtensionsController : ControllerBase
{
#region SignalR Hub
private const string TraceChannel = "SubExtensions";
readonly Lazy<IHubContext> _hub = new Lazy<IHubContext>(() =>
GlobalHost.ConnectionManager.GetHubContext<ExtensionsHub>());
#endregion
namespace Siemens.Gms.WsiExtensionTest.Init
{
public class ServiceInitialization : ExtensionBase
{
public IDpProxy DpProxy { get; private set; }
public override void CleanUp()
{
}
public override void Initialize()
{
WsiTracingManager.Instance.TraceDebug("Client1");
DpProxy = new DpProxy(StaticManager.OperationContext,
GlobalDefinitions.ClientName, null, GlobalDefinitions.ClientName);
var dpConn = DpProxy.Connect(null, null);
dpConn.WaitCompleted();
}
}
}
218
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Support for Browser Caching 10
Developer Resources:
- Cache-Control : https://developer.mozilla.org/en-
US/docs/Web/HTTP/Headers/Cache-Control
- Access-Control-Max-Age : https://developer.mozilla.org/en-
US/docs/Web/HTTP/Headers/Access-Control-Max-Age
- Etag : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
- Vary : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
219
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Support for CORS
NOTE:
Browser supports only GET response to be cached. POST ,PUT and DELETE
response is not cached by browsers.
220
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
10 Appendix
221
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
10.1.2 Errors
2 inva- 2400001 The SSO Token is incorrect or Expired Provided SSO Token is either expired or invalid, contin-
lid_token_grant ue with new SSO Token.
3 pass- 2400003 Credentials of account are expired Credentials of account are expired and should be
word_expired and need to get changed first. changed from DesigoCC first.
4 li- 2400100 A needed license is missing or expired Required license is consumed or not available
cense_not_avail
able
5 2 li- 2400102 A required license option is missing This resource requires a license option which is not
cense_option_no available.
t_available
6 PUT invalid_details 2400002 The user name or password is incor- Provided user details are invalid or missing.
/users/password rect or missing.
server_error 240009 Server is not able to process the Problem with reading from the server.
8 request
pass- 240000 The password does not meet policy The password does not meet policy requirements.
word_not_comp 4 requirements.
atible
7 4 GET cmd_missing_in 2400300 propertyIds are missing propertyIds is blank or Null
/commands/:propertyId put
8 5 cmd_invalid_inp 2400301 Unknown clientType Invalid Client Type
ut
9 5 cmd_failure 2400399 Couldn't retrieve a list of commands Exception occurred
222 13 9 POST cmd_missing_in 2400300 propertyIds are missing propertyIds is blank or Null
Siemens /commands/:propertyId/:comman put Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
16 1 cmd_failure 2400399 Command execution failed Command execution could not succeed
2
17 1 POST cmd_missing_in 2400300 propertyIds are missing propertyIds is blank or Null
3 /commands/:commandId put
18 1 cmd_execution_f 2400398 command execution failed! Command execution could not succeed
4 ailed
223
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
224
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
225
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
226
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
227
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
102 9 htlog_failure 2402099 Could not retrieve list of column details Exception occurred
2 for Table
103 9 GET htlog_missing_in 2402000 Table name is missing while retrieving tableName is blank or Null
3 /historylogs/:systemId/:tableName put condition filter operators for the col-
/operators/:columnName umn.
104 9 htlog_missing_in 2402000 Column name is missing while retriev- columnName is blank or Null
4 put ing condition filter operators for the
Table
105 9 htlog_failure 2402099 Could not retrieve Condition filter Exception occurred
5 operators for Column
106 9 GET htlog_missing_in 2402000 Table name is missing while retrieving tableName is blank or Null
6 /historylogs/:systemId/:tableName put Enum values for the column.
/enumvalues/:columnName
107 9 htlog_missing_in 2402000 Column name is missing while retriev- columnName is blank or Null
7 put ing Enum values for Table
108 9 htlog_failure 2402099 Could not retrieve Enum values for Exception occurred
8 Column
109 9 GET htlog_missing_in 2402000 Table name is missing while retrieving tableName is blank or Null
9 /historylogs/:systemId/:tableName put Table Data.
110 1 /:snapshotId htlog_missing_in 2402000 Column names not available while No valid list of columns
0 put retrieving Table Data from Table
0
111 1 htlog_failure 2402099 Could not retrieve page wise data for Exception occurred
0 Table
1
112 1 DELETE htlog_missing_in 2402000 Table name is missing in the request tableName is blank or Null
0 /historylogs/:systemId/:tableName put to discard the snapshot.
2 /:snapshotId
113 1 htlog_missing_in 2402000 Snapshot id is missing in the request snapshotId is blank or Null
0 put to discard the snapshot for Table
3
114 1 htlog_failure 2402099 Could not discard snapshot with Exception occurred
0 SnapshotId
4
228
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
229
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
230
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
231
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
10 Error Response
232
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
Defining Web Service Interface Settings in SMC
Error Response 10
179
233
Siemens Restricted A6V10470112_en_b_60
Building Technologies 2022-08-02
s
Document ID A6V10470112_en_b_40
Edition 2021-06-30