LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest...

77
LEC 15.5.1 REST API Reference Guide

Transcript of LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest...

Page 1: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

LEC 15.5.1 REST API Reference Guide

Page 2: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Table of ContentsOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

Version information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

URI scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

Read LEC configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

Search diagnostic logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4

List event groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10

Fire soft button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12

Read LEC mirror enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14

Set LEC mirror enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15

Login a user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16

Logout a user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18

List mirror hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19

Set mirror hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21

List programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23

Renew a session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30

Read the schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  31

Set the schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  41

Read server timezone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  56

Search transaction logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  57

Read transaction log details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62

List virtual channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  64

Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67

JaretDateFormatter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67

Locale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67

MirrorHost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67

StartTimeTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68

Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68

User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68

JaretDate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  69

Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  70

VirtualChannel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  70

DiagnosticLogRecord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  70

EventGroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  70

TransactionLogDetail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71

Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71

TransactionLogRecord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71

Page 3: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Schedule. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71

EndTimeTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  72

LecConfiguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  72

SessionRest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  72

DiagnosticLogFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73

TransactionLogFilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73

ButtonTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74

Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74

Page 4: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THISMANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TOBE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIRAPPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYINGPRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITHTHE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOUARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of aprogram developed by the University of California, Berkeley (UCB) as part ofUCB’s public domain version of the UNIX operating system. All rights reserved.Copyright © 1981, Regents of the University of California.

NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILESAND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH ALLFAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALLWARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, ORTRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT,SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUTLIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OFTHE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITSSUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Any Internet Protocol (IP) addresses and phone numbers used in this documentare not intended to be actual addresses and phone numbers. Any examples,command display output, network topology diagrams, and other figuresincluded in the document are shown for illustrative purposes only. Any use ofactual IP addresses or phone numbers in illustrative content is unintentionaland coincidental.

All printed copies and duplicate soft copies are considered un-Controlled copiesand the original on-line version should be referred to for latest version.

1

Page 5: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Cisco has more than 200 offices worldwide. Addresses, phone numbers, and faxnumbers are listed on the Cisco website at www.cisco.com/go/offices.

Cisco and the Cisco logo are trademarks or registered trademarks of Ciscoand/or its affiliates in the U.S. and other countries. To view a list of Ciscotrademarks, go to this URL: www.cisco.com/go/trademarks. Third-partytrademarks mentioned are the property of their respective owners. The use ofthe word partner does not imply a partnership relationship between Cisco andany other company. (1110R)

© 2018 Cisco Systems, Inc. All rights reserved.

OverviewLEC REST API provides capability of integration with third party management systems in order toconfigure LEC programs and trigger soft buttons.

REST interaction should start with login request Login a user. Token is returned as apart of loginresponse. Any further REST api request should contain a token in the request URI as specified inAPI examples.

For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in aseparate section inside PNC User Guide.

Version informationVersion: LEC 15.5.1

URI schemeHost: localhost BasePath: /lec

Tags• lec-rest-controller: Lec Rest Controller

Paths

Read LEC configuration

GET /rest/config

2

Page 6: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Description

Read LEC configuration

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK LecConfiguration

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/config?token=MSMxMjqa5a%2BJpvqZ6w%3D%3D' -i

Example HTTP request

GET /lec/rest/config?token=MSMxMjqa5a%2BJpvqZ6w%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

3

Page 7: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 166

{  "displayString" : "LecConfiguration",  "hostname" : "lec",  "customerCode" : 202,  "lecId" : 0,  "gdsPid" : 94,  "bandwidth" : 50000,  "debugMode" : false}

Search diagnostic logs

POST /rest/diaglog/search

Description

Search diagnostic logs

Parameters

Type Name Description Required Schema Default

BodyParameter filter filter true DiagnosticLogFilter

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK DiagnosticLogRecord array

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

4

Page 8: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/diaglog/search' -i -X POST -H 'Content-Type:application/json' -d '{  "id" : -1,  "idRelation" : null,  "severities" : [ ],  "dateFrom" : null,  "dateUntil" : null,  "summary" : "",  "description" : "",  "sortColumn" : "DiagnosticLog.severity",  "sortAsc" : false,  "maxRowCount" : 30000}'

Example HTTP request

POST /lec/rest/diaglog/search HTTP/1.1Content-Type: application/jsonHost: pnchostContent-Length: 232

{  "id" : -1,  "idRelation" : null,  "severities" : [ ],  "dateFrom" : null,  "dateUntil" : null,  "summary" : "",  "description" : "",  "sortColumn" : "DiagnosticLog.severity",  "sortAsc" : false,  "maxRowCount" : 30000}

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 7108

[ {

5

Page 9: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "id" : 3,  "date" : 1530226134000,  "description" : "Warning 3 description",  "displayString" : "Warning 3 synopsis",  "severity" : "WARNING",  "summary" : "Warning 3 synopsis"}, {  "id" : 17,  "date" : 1547680059521,  "description" : "LEC - <10.11.12.60, 94> [c?,s?] - Connection timed out:/10.11.12.60:8022. Check if the ip is reachable. Will try to reconnect after 2000million seconds. Retrycount: 1.",  "displayString" : "dcm connection",  "severity" : "WARNING",  "summary" : "dcm connection"}, {  "id" : 76,  "date" : 1547680065608,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 39,  "date" : 1547680064095,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 2,  "date" : 1530226133000,  "description" : "Info 2 description",  "displayString" : "Info 2 synopsis",  "severity" : "INFO",  "summary" : "Info 2 synopsis"}, {  "id" : 7,  "date" : 1547680051335,  "description" : "Starting Notification Processor",  "displayString" : "NotificationProcessor",  "severity" : "INFO",  "summary" : "NotificationProcessor"}, {  "id" : 8,  "date" : 1547680052914,  "description" : "Starting LEC Scheduler",  "displayString" : "Scheduler",  "severity" : "INFO",  "summary" : "Scheduler"}, {

6

Page 10: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "id" : 9,  "date" : 1547680053440,  "description" : "Init connection(s) to 1 dcm(s): 10.11.12.60,",  "displayString" : "DcmCommService",  "severity" : "INFO",  "summary" : "DcmCommService"}, {  "id" : 10,  "date" : 1547680053502,  "description" : "Load programs",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 11,  "date" : 1547680053515,  "description" : "The operation finished successfully: Loaded End event to Program id1(Top Gear) time 2019-01-16 19:06:30.428",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 12,  "date" : 1547680053523,  "description" : "The operation finished successfully: Loaded End event to Program id2(Olympics live) time 2019-01-16 20:22:30.432",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 13,  "date" : 1547680053547,  "description" : "The operation finished successfully: Loaded End event to Program id3(NBA) time 2019-01-16 22:52:30.433",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 14,  "date" : 1547680053571,  "description" : "The operation finished successfully: Loaded Start event to Programid 4(Football - Slavia vs. Sparta) time 2019-01-16 20:42:30.434",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 15,  "date" : 1547680053597,  "description" : "The operation finished successfully: Loaded Start event to Programid 5(NHL - Rangers vs. Bulls) time 2019-01-16 18:22:30.435",  "displayString" : "ScheduleProcessor",

7

Page 11: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 16,  "date" : 1547680053614,  "description" : "The operation finished successfully: Loaded finished: ScheduledEvents -- 5 added, 1 skipped; Button Events -- 3 added, 0 skipped.",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 41,  "date" : 1547680064197,  "description" : "Fire soft button:B1",  "displayString" : "fireSoftButton",  "severity" : "INFO",  "summary" : "fireSoftButton"}, {  "id" : 73,  "date" : 1547680065485,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 44,  "date" : 1547680064353,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 47,  "date" : 1547680064590,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 52,  "date" : 1547680064877,  "description" : "Load programs",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 53,  "date" : 1547680064882,  "description" : "The operation finished successfully: Loaded End event to Program id7(Top Gear) time 2019-01-16 19:06:30.428",  "displayString" : "ScheduleProcessor",

8

Page 12: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 54,  "date" : 1547680064887,  "description" : "The operation finished successfully: Loaded End event to Program id8(Olympics live) time 2019-01-16 20:22:30.432",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 55,  "date" : 1547680064892,  "description" : "The operation finished successfully: Loaded End event to Program id9(NBA) time 2019-01-16 22:52:30.433",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 56,  "date" : 1547680064897,  "description" : "The operation finished successfully: Loaded Start event to Programid 10(Football - Slavia vs. Sparta) time 2019-01-16 20:42:30.434",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 57,  "date" : 1547680064904,  "description" : "The operation finished successfully: Loaded Start event to Programid 11(NHL - Rangers vs. Bulls) time 2019-01-16 18:22:30.435",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 58,  "date" : 1547680064909,  "description" : "The operation finished successfully: Loaded finished: ScheduledEvents -- 5 added, 1 skipped; Button Events -- 3 added, 0 skipped.",  "displayString" : "ScheduleProcessor",  "severity" : "INFO",  "summary" : "ScheduleProcessor"}, {  "id" : 60,  "date" : 1547680065071,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 63,

9

Page 13: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "date" : 1547680065172,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 65,  "date" : 1547680065199,  "description" : "",  "displayString" : "getLecConfiguration",  "severity" : "INFO",  "summary" : "getLecConfiguration"}, {  "id" : 67,  "date" : 1547680065271,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 70,  "date" : 1547680065380,  "description" : "login: user:lecadmin",  "displayString" : "LoginService",  "severity" : "INFO",  "summary" : "LoginService"}, {  "id" : 1,  "date" : 1530226132000,  "description" : "Error 1 description",  "displayString" : "Error 1 synopsis",  "severity" : "ERROR",  "summary" : "Error 1 synopsis"} ]

List event groups

GET /rest/evtgrp/list

Description

Read event groups

Parameters

10

Page 14: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK EventGroup array

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/evtgrp/list?token=MSMxMTo6oatfmKIg4A%3D%3D' -i

Example HTTP request

GET /lec/rest/evtgrp/list?token=MSMxMTo6oatfmKIg4A%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

11

Page 15: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 718

[ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""}, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""}, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",  "notes" : ""}, {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",  "notes" : ""}, {  "displayString" : "Asia",  "id" : 5,  "name" : "Asia",  "notes" : ""}, {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""}, {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""}, {  "displayString" : "No man\"s land",  "id" : 8,  "name" : "No man\"s land",  "notes" : ""} ]

Fire soft button

12

Page 16: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

POST /rest/firebutton/{button}

Description

Fire soft button

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

PathParameter button button true string

Responses

HTTP Code Description Schema

200 OK string

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/firebutton/B1' -i -X POST -d 'token=MSM4OnqQAYqbsFli'

Example HTTP request

POST /lec/rest/firebutton/B1 HTTP/1.1Host: pnchostContent-Type: application/x-www-form-urlencoded

token=MSM4OnqQAYqbsFli

13

Page 17: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Example HTTP response

HTTP/1.1 200 OK

Read LEC mirror enable

GET /rest/lec_mirror/enable

Description

Read LEC mirror enable

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK boolean

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/lec_mirror/enable?token=MSM0OhB8K3ckzAM8' -i

14

Page 18: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Example HTTP request

GET /lec/rest/lec_mirror/enable?token=MSM0OhB8K3ckzAM8 HTTP/1.1Host: pnchost

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 4

true

Set LEC mirror enable

PUT /rest/lec_mirror/enable

Description

Set LEC mirror enable

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

BodyParameter enable enable true boolean

Responses

HTTP Code Description Schema

200 OK boolean

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

15

Page 19: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/lec_mirror/enable' -i -X PUT -H 'Content-Type:application/json' -d 'false'

Example HTTP request

PUT /lec/rest/lec_mirror/enable HTTP/1.1Content-Type: application/jsonHost: pnchostContent-Length: 5

false

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 5

false

Login a user

POST /rest/login

Description

Login a user

Parameters

Type Name Description Required Schema Default

QueryParameter

username username true string

QueryParameter

password password true string

16

Page 20: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Type Name Description Required Schema Default

QueryParameter

permission permission true boolean

QueryParameter

version version true boolean

Responses

HTTP Code Description Schema

200 OK SessionRest

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/login' -i -X POST -H 'Accept: application/json' -d'username=lecadmin&password=0398a2cbcebe784d10360562c28a4b07&permission=true&version=1'

Example HTTP request

POST /lec/rest/login HTTP/1.1Accept: application/jsonHost: pnchostContent-Type: application/x-www-form-urlencoded

username=lecadmin&password=0398a2cbcebe784d10360562c28a4b07&permission=true&version=1

Example HTTP response

17

Page 21: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 420

{  "session" : {  "id" : 1,  "user" : {  "id" : 1,  "username" : "lecadmin",  "password" : "0398a2cbcebe784d10360562c28a4b07",  "firstName" : null,  "lastName" : null,  "email" : null,  "lastLogin" : 1547680062702,  "ipAddress" : null  },  "writePermitted" : true,  "validUntil" : 1547680182702  },  "token" : "MSMxOiQ7S+QaI96/",  "computerDescription" : null}

Logout a user

POST /rest/logout

Description

Logout a user

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK SessionRest

500 Internal Server Error No Content

18

Page 22: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/logout' -i -X POST -H 'Accept: application/json' -d'token=MSMyOtA0kqQHQYHB'

Example HTTP request

POST /lec/rest/logout HTTP/1.1Accept: application/jsonHost: pnchostContent-Type: application/x-www-form-urlencoded

token=MSMyOtA0kqQHQYHB

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 86

{  "session" : null,  "token" : "logout succeeded",  "computerDescription" : null}

List mirror hosts

GET /rest/mirror_host/list

19

Page 23: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Description

List mirror hosts

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK MirrorHost array

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/mirror_host/list?token=MSM1Ooj5uJGEkzaP' -i

Example HTTP request

GET /lec/rest/mirror_host/list?token=MSM1Ooj5uJGEkzaP HTTP/1.1Host: pnchost

Example HTTP response

20

Page 24: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 162

[ {  "enabled" : true,  "ipAddress" : "128.2.2.3"}, {  "enabled" : false,  "ipAddress" : "128.4.5.6"}, {  "enabled" : true,  "ipAddress" : "128.9.3.3"} ]

Set mirror hosts

PUT /rest/mirror_host/list

Description

Set mirror hosts

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

BodyParameter hostList hostList true MirrorHostarray

Responses

HTTP Code Description Schema

200 OK MirrorHost array

500 Internal Server Error No Content

Consumes

• application/json

21

Page 25: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/mirror_host/list' -i -X PUT -H 'Content-Type:application/json' -d '[ {  "enabled" : true,  "ipAddress" : "128.2.2.3"}, {  "enabled" : true,  "ipAddress" : "128.4.5.6"}, {  "enabled" : false,  "ipAddress" : "128.9.3.3"}, {  "enabled" : true,  "ipAddress" : "10.85.160.12"} ]'

Example HTTP request

PUT /lec/rest/mirror_host/list HTTP/1.1Content-Type: application/jsonHost: pnchostContent-Length: 218

[ {  "enabled" : true,  "ipAddress" : "128.2.2.3"}, {  "enabled" : true,  "ipAddress" : "128.4.5.6"}, {  "enabled" : false,  "ipAddress" : "128.9.3.3"}, {  "enabled" : true,  "ipAddress" : "10.85.160.12"} ]

22

Page 26: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 218

[ {  "enabled" : true,  "ipAddress" : "128.2.2.3"}, {  "enabled" : true,  "ipAddress" : "128.4.5.6"}, {  "enabled" : false,  "ipAddress" : "128.9.3.3"}, {  "enabled" : true,  "ipAddress" : "10.85.160.12"} ]

List programs

GET /rest/program/list

Description

List programs

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK Program array

500 Internal Server Error No Content

Consumes

• application/json

23

Page 27: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/program/list?token=MSMxMzqd0bwGULyGgw%3D%3D' -i

Example HTTP request

GET /lec/rest/program/list?token=MSMxMzqd0bwGULyGgw%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 6465

[ {  "id" : 7,  "name" : "Top Gear",  "notes" : "Everything is rubbish according to Jeremy Clarkson",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,

24

Page 28: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547682750428  },  "disarmTime" : {  "value" : 1547684550428  }  } ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  }, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680050428  },  "endTime" : {  "value" : 1547683590428  }}, {  "id" : 8,

25

Page 29: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "name" : "Olympics live",  "notes" : "Example note for the Olympics program!",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Olympics live",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Olympics live",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547683350432  },  "endTime" : {  "value" : 1547688150432  }}, {  "id" : 9,  "name" : "NBA",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NBA",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NBA",  "virtualChannel" : {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },

26

Page 30: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547688150433  },  "endTime" : {  "value" : 1547697150433  }}, {  "id" : 10,  "name" : "Football - Slavia vs. Sparta",  "notes" : "A VERY important football match",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""  } ],  "startTime" : {  "value" : 1547689350434  },

27

Page 31: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "endTime" : {  "value" : 1547693550434  }}, {  "id" : 11,  "name" : "NHL - Rangers vs. Bulls",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547681850435  },  "disarmTime" : {  "value" : 1547683350435  }  } ],  "targetGroups" : [ {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",

28

Page 32: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : ""  } ],  "startTime" : {  "value" : 1547680950435  },  "endTime" : {  "value" : 1547683050435  }}, {  "id" : 12,  "name" : "Cooking",  "notes" : "Drooling program",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547689950437  },  "disarmTime" : {  "value" : 1547693550437  }  } ],  "targetGroups" : [ {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""  } ],

29

Page 33: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "startTime" : {  "value" : 1547685150437  },  "endTime" : {  "value" : 1547691750437  }} ]

Renew a session

POST /rest/renewsession

Description

Renew a session

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK SessionRest

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

30

Page 34: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

$ curl 'https://pnchost/lec/rest/renewsession' -i -X POST -H 'Accept:application/json' -d 'token=MSMzOi1O%2BLsUNTQx'

Example HTTP request

POST /lec/rest/renewsession HTTP/1.1Accept: application/jsonHost: pnchostContent-Type: application/x-www-form-urlencoded

token=MSMzOi1O%2BLsUNTQx

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 85

{  "session" : null,  "token" : "renew succeeded",  "computerDescription" : null}

Read the schedule

GET /rest/schedule

Description

Read the schedule

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK Schedule

31

Page 35: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP Code Description Schema

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/schedule?token=MSM5OgvII62qe9fc' -i

Example HTTP request

GET /lec/rest/schedule?token=MSM5OgvII62qe9fc HTTP/1.1Host: pnchost

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 10079

{  "programs" : [ {  "id" : 1,  "name" : "Top Gear",  "notes" : "Everything is rubbish according to Jeremy Clarkson",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },

32

Page 36: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547682750428  },  "disarmTime" : {  "value" : 1547684550428  }  } ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  }, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",

33

Page 37: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : ""  } ],  "startTime" : {  "value" : 1547680050428  },  "endTime" : {  "value" : 1547683590428  }  }, {  "id" : 2,  "name" : "Olympics live",  "notes" : "Example note for the Olympics program!",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Olympics live",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Olympics live",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547683350432  },  "endTime" : {  "value" : 1547688150432  }  }, {  "id" : 3,  "name" : "NBA",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NBA",  "virtualChannel" : null,  "enabled" : false  },

34

Page 38: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NBA",  "virtualChannel" : {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547688150433  },  "endTime" : {  "value" : 1547697150433  }  }, {  "id" : 4,  "name" : "Football - Slavia vs. Sparta",  "notes" : "A VERY important football match",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : null,  "enabled" : false  },

35

Page 39: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""  } ],  "startTime" : {  "value" : 1547689350434  },  "endTime" : {  "value" : 1547693550434  }  }, {  "id" : 5,  "name" : "NHL - Rangers vs. Bulls",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {

36

Page 40: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "value" : 1547681850435  },  "disarmTime" : {  "value" : 1547683350435  }  } ],  "targetGroups" : [ {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680950435  },  "endTime" : {  "value" : 1547683050435  }  }, {  "id" : 6,  "name" : "Cooking",  "notes" : "Drooling program",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547689950437  },

37

Page 41: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "disarmTime" : {  "value" : 1547693550437  }  } ],  "targetGroups" : [ {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""  } ],  "startTime" : {  "value" : 1547685150437  },  "endTime" : {  "value" : 1547691750437  }  } ],  "buttons" : [ {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  }, {  "displayString" : "B2",  "id" : 2,  "name" : "B2",  "enabled" : true,  "notes" : "Button 2"  }, {  "displayString" : "B3",  "id" : 3,  "name" : "B3",  "enabled" : true,  "notes" : "Button 3"  }, {  "displayString" : "B4",  "id" : 4,  "name" : "B4",  "enabled" : true,  "notes" : "Button 4"  }, {  "displayString" : "B5",  "id" : 5,  "name" : "B5",  "enabled" : true,  "notes" : "Button 5"  }, {  "displayString" : "B6",  "id" : 6,  "name" : "B6",

38

Page 42: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "enabled" : true,  "notes" : "Button 6"  }, {  "displayString" : "B7",  "id" : 7,  "name" : "B7",  "enabled" : true,  "notes" : "Button 7"  }, {  "displayString" : "B8",  "id" : 8,  "name" : "B8",  "enabled" : true,  "notes" : "Button 8"  } ],  "eventGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  }, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",  "notes" : ""  }, {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",  "notes" : ""  }, {  "displayString" : "Asia",  "id" : 5,  "name" : "Asia",  "notes" : ""  }, {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""  }, {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""  }, {

39

Page 43: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "displayString" : "No man\"s land",  "id" : 8,  "name" : "No man\"s land",  "notes" : ""  } ],  "virtualChannels" : [ {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "Animax",  "id" : 5,  "name" : "Animax",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "MTV",  "id" : 6,  "name" : "MTV",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "CBS",  "id" : 7,  "name" : "CBS",

40

Page 44: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  }, {  "displayString" : "Discovery Channel",  "id" : 8,  "name" : "Discovery Channel",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  } ]}

Set the schedule

PUT /rest/schedule

Description

Set the schedule

Parameters

Type Name Description Required Schema Default

BodyParameter schedule schedule true Schedule

QueryParameter

token token true string

QueryParameter

localForceSubmit

localForceSubmit

true boolean

Responses

HTTP Code Description Schema

200 OK integer (int64)

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

41

Page 45: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/schedule' -i -X PUT -H 'Content-Type:application/json' -d '{  "programs" : [ {  "id" : 1,  "name" : "Top Gear",  "notes" : "Everything is rubbish according to Jeremy Clarkson",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,

42

Page 46: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : ""  },  "armTime" : {  "value" : 1547682750428  },  "disarmTime" : {  "value" : 1547684550428  }  } ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  }, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680050428  },  "endTime" : {  "value" : 1547683590428  }  }, {  "id" : 2,  "name" : "Olympics live",  "notes" : "Example note for the Olympics program!",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Olympics live",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Olympics live",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true

43

Page 47: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547683350432  },  "endTime" : {  "value" : 1547688150432  }  }, {  "id" : 3,  "name" : "NBA",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NBA",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NBA",  "virtualChannel" : {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547688150433  },  "endTime" : {

44

Page 48: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "value" : 1547697150433  }  }, {  "id" : 4,  "name" : "Football - Slavia vs. Sparta",  "notes" : "A VERY important football match",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""  } ],  "startTime" : {  "value" : 1547689350434  },  "endTime" : {  "value" : 1547693550434  }  }, {  "id" : 5,  "name" : "NHL - Rangers vs. Bulls",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true

45

Page 49: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547681850435  },  "disarmTime" : {  "value" : 1547683350435  }  } ],  "targetGroups" : [ {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680950435  },  "endTime" : {  "value" : 1547683050435  }  }, {  "id" : 6,  "name" : "Cooking",  "notes" : "Drooling program",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {

46

Page 50: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "displayString" : "End Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547689950437  },  "disarmTime" : {  "value" : 1547693550437  }  } ],  "targetGroups" : [ {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""  } ],  "startTime" : {  "value" : 1547685150437  },  "endTime" : {  "value" : 1547691750437  }  } ],  "buttons" : [ {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  }, {  "displayString" : "B2",  "id" : 2,  "name" : "B2",  "enabled" : true,

47

Page 51: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : "Button 2"  }, {  "displayString" : "B3",  "id" : 3,  "name" : "B3",  "enabled" : true,  "notes" : "Button 3"  }, {  "displayString" : "B4",  "id" : 4,  "name" : "B4",  "enabled" : true,  "notes" : "Button 4"  }, {  "displayString" : "B5",  "id" : 5,  "name" : "B5",  "enabled" : true,  "notes" : "Button 5"  }, {  "displayString" : "B6",  "id" : 6,  "name" : "B6",  "enabled" : true,  "notes" : "Button 6"  }, {  "displayString" : "B7",  "id" : 7,  "name" : "B7",  "enabled" : true,  "notes" : "Button 7"  }, {  "displayString" : "B8",  "id" : 8,  "name" : "B8",  "enabled" : true,  "notes" : "Button 8"  }, {  "displayString" : "B9",  "id" : -1,  "name" : "B9",  "enabled" : true,  "notes" : "Button B9"  } ],  "eventGroups" : [ ],  "virtualChannels" : [ ]}'

48

Page 52: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Example HTTP request

PUT /lec/rest/schedule HTTP/1.1Content-Type: application/jsonHost: pnchostContent-Length: 8156

{  "programs" : [ {  "id" : 1,  "name" : "Top Gear",  "notes" : "Everything is rubbish according to Jeremy Clarkson",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Top Gear",  "virtualChannel" : {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,

49

Page 53: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : ""  },  "armTime" : {  "value" : 1547682750428  },  "disarmTime" : {  "value" : 1547684550428  }  } ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  }, {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "Europe",  "id" : 3,  "name" : "Europe",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680050428  },  "endTime" : {  "value" : 1547683590428  }  }, {  "id" : 2,  "name" : "Olympics live",  "notes" : "Example note for the Olympics program!",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Olympics live",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Olympics live",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true

50

Page 54: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547683350432  },  "endTime" : {  "value" : 1547688150432  }  }, {  "id" : 3,  "name" : "NBA",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NBA",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NBA",  "virtualChannel" : {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "South America",  "id" : 2,  "name" : "South America",  "notes" : ""  }, {  "displayString" : "North America",  "id" : 1,  "name" : "North America",  "notes" : ""  } ],  "startTime" : {  "value" : 1547688150433  },  "endTime" : {

51

Page 55: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "value" : 1547697150433  }  }, {  "id" : 4,  "name" : "Football - Slavia vs. Sparta",  "notes" : "A VERY important football match",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: Football - Slavia vs. Sparta",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ ],  "targetGroups" : [ {  "displayString" : "Antartica",  "id" : 7,  "name" : "Antartica",  "notes" : ""  } ],  "startTime" : {  "value" : 1547689350434  },  "endTime" : {  "value" : 1547693550434  }  }, {  "id" : 5,  "name" : "NHL - Rangers vs. Bulls",  "notes" : "",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "enabled" : true

52

Page 56: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  },  "endTimeTrigger" : {  "displayString" : "End Time Trigger of Program: NHL - Rangers vs. Bulls",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547681850435  },  "disarmTime" : {  "value" : 1547683350435  }  } ],  "targetGroups" : [ {  "displayString" : "Africa",  "id" : 4,  "name" : "Africa",  "notes" : ""  } ],  "startTime" : {  "value" : 1547680950435  },  "endTime" : {  "value" : 1547683050435  }  }, {  "id" : 6,  "name" : "Cooking",  "notes" : "Drooling program",  "startTimeTrigger" : {  "displayString" : "Start Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "endTimeTrigger" : {

53

Page 57: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "displayString" : "End Time Trigger of Program: Cooking",  "virtualChannel" : null,  "enabled" : false  },  "buttonTriggers" : [ {  "button" : {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  },  "virtualChannel" : {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""  },  "armTime" : {  "value" : 1547689950437  },  "disarmTime" : {  "value" : 1547693550437  }  } ],  "targetGroups" : [ {  "displayString" : "Australia",  "id" : 6,  "name" : "Australia",  "notes" : ""  } ],  "startTime" : {  "value" : 1547685150437  },  "endTime" : {  "value" : 1547691750437  }  } ],  "buttons" : [ {  "displayString" : "B1",  "id" : 1,  "name" : "B1",  "enabled" : true,  "notes" : "Button 1"  }, {  "displayString" : "B2",  "id" : 2,  "name" : "B2",  "enabled" : true,

54

Page 58: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "notes" : "Button 2"  }, {  "displayString" : "B3",  "id" : 3,  "name" : "B3",  "enabled" : true,  "notes" : "Button 3"  }, {  "displayString" : "B4",  "id" : 4,  "name" : "B4",  "enabled" : true,  "notes" : "Button 4"  }, {  "displayString" : "B5",  "id" : 5,  "name" : "B5",  "enabled" : true,  "notes" : "Button 5"  }, {  "displayString" : "B6",  "id" : 6,  "name" : "B6",  "enabled" : true,  "notes" : "Button 6"  }, {  "displayString" : "B7",  "id" : 7,  "name" : "B7",  "enabled" : true,  "notes" : "Button 7"  }, {  "displayString" : "B8",  "id" : 8,  "name" : "B8",  "enabled" : true,  "notes" : "Button 8"  }, {  "displayString" : "B9",  "id" : -1,  "name" : "B9",  "enabled" : true,  "notes" : "Button B9"  } ],  "eventGroups" : [ ],  "virtualChannels" : [ ]}

55

Page 59: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 1

1

Read server timezone

GET /rest/timezone

Description

Read server timezone

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK string

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

56

Page 60: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

$ curl 'https://pnchost/lec/rest/timezone?token=MSMxNDqedJF4Xx6NwQ%3D%3D' -i

Example HTTP request

GET /lec/rest/timezone?token=MSMxNDqedJF4Xx6NwQ%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 17

"America/Toronto"

Search transaction logs

POST /rest/translog/search

Description

Search transaction logs

Parameters

Type Name Description Required Schema Default

BodyParameter filter filter true TransactionLogFilter

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK TransactionLogRecord array

500 Internal Server Error No Content

Consumes

• application/json

57

Page 61: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/translog/search' -i -X POST -H 'Content-Type:application/json' -d '{  "id" : -1,  "idRelation" : null,  "dateFrom" : null,  "dateUntil" : null,  "ipAddress" : "",  "description" : "",  "sortColumn" : "DiagnosticLog.date",  "sortAsc" : true,  "maxRowCount" : 30000}'

Example HTTP request

POST /lec/rest/translog/search HTTP/1.1Content-Type: application/jsonHost: pnchostContent-Length: 207

{  "id" : -1,  "idRelation" : null,  "dateFrom" : null,  "dateUntil" : null,  "ipAddress" : "",  "description" : "",  "sortColumn" : "DiagnosticLog.date",  "sortAsc" : true,  "maxRowCount" : 30000}

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 4725

58

Page 62: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

[ {  "id" : 4,  "date" : 1530226135000,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 5,  "date" : 1530226136000,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 6,  "date" : 1530226137000,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 40,  "date" : 1547680064117,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 42,  "date" : 1547680064231,  "description" : "fireSoftButton",  "displayString" : "[email protected], R/W: fireSoftButton",  "ipAddress" : "[email protected], R/W"}, {  "id" : 43,  "date" : 1547680064295,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 45,  "date" : 1547680064375,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 46,  "date" : 1547680064533,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 48,

59

Page 63: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "date" : 1547680064610,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 49,  "date" : 1547680064764,  "description" : "setSchedule",  "displayString" : "[email protected], R/W: setSchedule",  "ipAddress" : "[email protected], R/W"}, {  "id" : 50,  "date" : 1547680064787,  "description" : "Added 1 buttons.",  "displayString" : "[email protected], R/W: Added 1 buttons.",  "ipAddress" : "[email protected], R/W"}, {  "id" : 51,  "date" : 1547680064859,  "description" : "Programs count:6",  "displayString" : ": Programs count:6",  "ipAddress" : ""}, {  "id" : 59,  "date" : 1547680064966,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 61,  "date" : 1547680065087,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 62,  "date" : 1547680065140,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 64,  "date" : 1547680065187,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 66,  "date" : 1547680065241,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",

60

Page 64: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "ipAddress" : "[email protected], R/W"}, {  "id" : 68,  "date" : 1547680065286,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 69,  "date" : 1547680065345,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 71,  "date" : 1547680065396,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 72,  "date" : 1547680065450,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 74,  "date" : 1547680065502,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 75,  "date" : 1547680065545,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 77,  "date" : 1547680065622,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 78,  "date" : 1547680065688,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 80,

61

Page 65: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "date" : 1547680065727,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"}, {  "id" : 81,  "date" : 1547680065781,  "description" : "Logout",  "displayString" : "[email protected], R/W: Logout",  "ipAddress" : "[email protected], R/W"}, {  "id" : 83,  "date" : 1547680065829,  "description" : "Login",  "displayString" : "[email protected], R/W: Login",  "ipAddress" : "[email protected], R/W"} ]

Read transaction log details

GET /rest/translogdetails/{id}

Description

Read transaction log details

Parameters

Type Name Description Required Schema Default

PathParameter id id true integer (int32)

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK TransactionLogDetail array

500 Internal Server Error No Content

Consumes

• application/json

62

Page 66: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/translogdetails/1?token=MSMxNzqYEtRoSjW0qg%3D%3D' -i

Example HTTP request

GET /lec/rest/translogdetails/1?token=MSMxNzqYEtRoSjW0qg%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

63

Page 67: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 783

[ {  "displayString" : "1 : Modified Button B9",  "id" : 1,  "date" : 1547680065753,  "operation" : "Modified",  "entityType" : "Button",  "entityId" : "B9",  "attribute" : "Name",  "attributeOp" : "Added",  "oldValue" : "-",  "newValue" : "B9"}, {  "displayString" : "1 : Modified Button B9",  "id" : 1,  "date" : 1547680065753,  "operation" : "Modified",  "entityType" : "Button",  "entityId" : "B9",  "attribute" : "Enabled",  "attributeOp" : "Added",  "oldValue" : "-",  "newValue" : "true"}, {  "displayString" : "1 : Modified Button B9",  "id" : 1,  "date" : 1547680065753,  "operation" : "Modified",  "entityType" : "Button",  "entityId" : "B9",  "attribute" : "Notes",  "attributeOp" : "Added",  "oldValue" : "-",  "newValue" : "Button B9"} ]

List virtual channels

GET /rest/vc/list

Description

List virtual channels

64

Page 68: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Parameters

Type Name Description Required Schema Default

QueryParameter

token token true string

Responses

HTTP Code Description Schema

200 OK VirtualChannel array

500 Internal Server Error No Content

Consumes

• application/json

Produces

• /

Tags

• lec-rest-controller

Example CURL request

$ curl 'https://pnchost/lec/rest/vc/list?token=MSMxNTp%2FV7moE4S%2Blw%3D%3D' -i

Example HTTP request

GET /lec/rest/vc/list?token=MSMxNTp%2FV7moE4S%2Blw%3D%3D HTTP/1.1Host: pnchost

Example HTTP response

HTTP/1.1 200 OKContent-Type: application/json;charset=UTF-8Content-Length: 1136

[ {  "displayString" : "FOX Sport",  "id" : 1,  "name" : "FOX Sport",  "originalNetworkId" : 1,

65

Page 69: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "HBO",  "id" : 2,  "name" : "HBO",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "Cartoon Network",  "id" : 3,  "name" : "Cartoon Network",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "BBC",  "id" : 4,  "name" : "BBC",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "Animax",  "id" : 5,  "name" : "Animax",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "MTV",  "id" : 6,  "name" : "MTV",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "CBS",  "id" : 7,  "name" : "CBS",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""}, {  "displayString" : "Discovery Channel",  "id" : 8,  "name" : "Discovery Channel",  "originalNetworkId" : 1,  "transportStreamId" : 101,  "notes" : ""

66

Page 70: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

} ]

Definitions

JaretDateFormatter

Name Description Required Schema Default

locale false Locale

Locale

Name Description Required Schema Default

country false string

displayCountry false string

displayLanguage false string

displayName false string

displayScript false string

displayVariant false string

extensionKeys false Character array

iso3Country false string

iso3Language false string

language false string

script false string

unicodeLocaleAttributes

false string array

unicodeLocaleKeys

false string array

variant false string

MirrorHost

Name Description Required Schema Default

enabled false boolean

ipAddress false string

67

Page 71: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

StartTimeTrigger

Name Description Required Schema Default

displayString false string

enabled false boolean

targetGroups false EventGroup array

time false JaretDate

virtualChannel false VirtualChannel

Program

Name Description Required Schema Default

begin false JaretDate

buttonTriggers false ButtonTriggerarray

displayString false string

end false JaretDate

endTime false JaretDate

endTimeTrigger false EndTimeTrigger

id false integer (int32)

name false string

notes false string

seconds false integer (int32)

startTime false JaretDate

startTimeTrigger false StartTimeTrigger

targetGroups false EventGroup array

User

Name Description Required Schema Default

email false string

firstName false string

id false integer (int32)

ipAddress false string

68

Page 72: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Name Description Required Schema Default

lastLogin false integer (int64)

lastName false string

password false string

username false string

JaretDate

Name Description Required Schema Default

date false integer (int64)

dateByText false string

day false integer (int32)

dayOfWeek false integer (int32)

dayOfWeekString false string

dayOfYear false integer (int32)

hours false integer (int32)

jaretDateFormatter

false JaretDateFormatter

locale false Locale

millis false integer (int32)

millisInDay false integer (int64)

milliseconds false integer (int32)

minutes false integer (int32)

month false integer (int32)

monthString false string

seconds false integer (int32)

shortDayOfWeekString

false string

shortMonthString false string

weekOfYear false integer (int32)

weekendDay false boolean

year false integer (int32)

69

Page 73: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Character

VirtualChannel

Name Description Required Schema Default

displayString false string

id false integer (int32)

name false string

notes false string

originalNetworkId false integer (int32)

transportStreamId false integer (int32)

DiagnosticLogRecord

Name Description Required Schema Default

date false integer (int64)

description false string

displayString false string

id false integer (int32)

severity false enum (MAJOR,MINOR, EVENT,INFO, WARNING,ERROR,UNKNOWN)

summary false string

EventGroup

Name Description Required Schema Default

displayString false string

id false integer (int32)

name false string

notes false string

parent false Schedule

programs false Program array

70

Page 74: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

TransactionLogDetail

Name Description Required Schema Default

attribute false string

attributeOp false string

date false integer (int64)

displayString false string

entityId false string

entityType false string

id false integer (int32)

newValue false string

oldValue false string

operation false string

Button

Name Description Required Schema Default

displayString false string

enabled false boolean

id false integer (int32)

name false string

notes false string

TransactionLogRecord

Name Description Required Schema Default

date false integer (int64)

description false string

displayString false string

id false integer (int32)

ipAddress false string

Schedule

71

Page 75: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Name Description Required Schema Default

buttons false Button array

defaultButton false Button

displayString false string

eventGroups false EventGroup array

programs false Program array

virtualChannels false VirtualChannelarray

EndTimeTrigger

Name Description Required Schema Default

displayString false string

enabled false boolean

targetGroups false EventGroup array

time false JaretDate

virtualChannel false VirtualChannel

LecConfiguration

Name Description Required Schema Default

bandwidth false integer (int32)

customerCode false integer (int32)

debugMode false boolean

displayString false string

gdsPid false integer (int32)

hostname false string

lecId false integer (int32)

SessionRest

Name Description Required Schema Default

computerDescription

false string

session false Session

72

Page 76: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Name Description Required Schema Default

token false string

DiagnosticLogFilter

Name Description Required Schema Default

dateFrom false integer (int64)

dateUntil false integer (int64)

description false string

id false integer (int32)

idRelation false enum(LESS_THAN,EQUAL,GREATER_THAN)

maxRowCount false integer (int32)

severities false enum (MAJOR,MINOR, EVENT,INFO, WARNING,ERROR,UNKNOWN) array

sortAsc false boolean

sortColumn false string

summary false string

TransactionLogFilter

Name Description Required Schema Default

dateFrom false integer (int64)

dateUntil false integer (int64)

description false string

id false integer (int32)

idRelation false enum(LESS_THAN,EQUAL,GREATER_THAN)

ipAddress false string

maxRowCount false integer (int32)

73

Page 77: LEC 15.5.1 REST API Reference Guide - Cisco€¦ · For more information on LEC refer to the latest PNC 15.5.1 User Guide. LEC is described in a separate section inside PNC User Guide.

Name Description Required Schema Default

sortAsc false boolean

sortColumn false string

ButtonTrigger

Name Description Required Schema Default

armTime false JaretDate

armed false boolean

begin false JaretDate

button false Button

disarmTime false JaretDate

displayString false string

end false JaretDate

seconds false integer (int32)

targetGroups false EventGroup array

virtualChannel false VirtualChannel

Session

Name Description Required Schema Default

id false integer (int64)

user false User

validUntil false integer (int64)

writePermitted false boolean

74