openapi: 3.0.1
info:
description: |
Elog Service
Elog Service API's are set of APIs that facilitates subscription and retrieval of event log (elog) descriptions from a robot controller. This service is used for tracking various system events and states in a robot controller in real-time.

version: 3HAC073675-001 Revision:L
title: Robot Web Services
tags:
- name: General Elog Service Actions
- name: Processes in Elog Domain
servers:
- url: https://127.0.0.1
description: Localhost VC
- url: https://192.168.125.1
description: RC MGMT connection
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
paths:
/rw/elog:
get:
tags:
- General Elog Service Actions
summary: Get Elog Resources
description: "**Description :** \n\n\"Get a list of all elog domains. \nAlso supports getting the number of events in each domain and language specific names of the elog domains.\"\n \nThe current list of elog domains with short description is as below:\n\n \n+ **Common :** Contains the events from all logs (except \"Internal\", \"Configuration\" and \"RAPID\").\n \n+ **Operational :** Events dealing with handling of the system.\n \n+ **System :** Events dealing with system functions, system states, and so on.\n \n+ **Hardware :** Events dealing with system hardware, manipulators as well as controller hardware.\n \n+ **Program :** Events dealing with RAPID instructions, data, and so on.\n \n+ **Motion :** Events dealing with the control of the manipulator movements and positioning.\n \n+ **IO & Communication :** Events dealing with inputs and outputs, data buses, and so on.\n \n+ **User :** Events defined by the user.\n \n+ **Safety :** Events related to functional safety.\n \n+ **Internal :** Internal events for debug and service.\n \n+ **Process :** Application specific events, arc welding, spot welding, and so on.\n \n+ **Configuration :** Events dealing with the configuration of the system.\n \n+ **Paint :** Events related to Paint application.\n \n+ **RAPID :** RAPID build error log.\n \n+ **ConnectedServices :** Connected Service Embedded event logs which are generated during starting, registering, unregistering, losing connectivity, and so on.\r\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog?lang=de\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\n\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog',\n method: 'GET',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Authorization': auth\n }\n}\n\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\nprocess.stdout.write(d)\n})\n})\nreq.on('error', error => {\n console.error(error)\n})\nreq.end()\n```\n"
parameters:
- name: lang
in: query
description: >-
[language-code], a two letter language code e.g. en, sv, de, hi etc.
In addition to returning a list of all elog domain, this option
returns all the domain names in the specified language.
required: false
schema:
type: string
- name: resource
in: query
description: >-
count In addition to returning a list of all elog domain, this
option returns the number of elog messages in each elog domain.
required: false
schema:
type: string
responses:
'200':
description: Standard response for successful HTTP requests
content:
application/xhtml+xml;v=2.0:
schema:
properties:
elog-domain-li:
description: Specifies a link to the 'elog-domain` resource.
domain-name:
description: >-
[alphanumeric] The domain name in the specified language.
Available only when lang=xx query parameter is sent.
numevts:
description: >-
[numeric] The number of elog messages in the elog domain.
Available only when resource=count query parameter is
sent.
buffsize:
description: '[numeric] The elog buffer size of elog domain.'
xml:
name: data
wrapped: true
examples:
response:
value: >
- 31 1000
- 20 20
- 0 20
- 0 20
- 0 20
- 0 20
- 0 20
- 0 20
- 0 20
- 2 20
- 0 20
- 0 20
- 0 20
- 0 20
application/hal+json;v=2.0:
schema:
properties:
elog-domain-li:
description: Specifies a link to the 'elog-domain` resource.
domain-name:
description: >-
[alphanumeric] The domain name in the specified language.
Available only when lang=xx query parameter is sent.
numevts:
description: >-
[numeric] The number of elog messages in the elog domain.
Available only when resource=count query parameter is
sent.
buffsize:
description: '[numeric] The elog buffer size of elog domain.'
xml:
name: data
wrapped: true
'406':
description: >-
The server can only generate a response that is not accepted by the
client
security:
- basicAuth: []
/rw/elog/clearall:
post:
tags:
- General Elog Service Actions
summary: Clear Elog Messages
description: "**Description :**\n\n \"Clears all elog messages in all elog domains (except Internal).\"\r\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"Content-Type: application/x-www-form-urlencoded;v=2.0\" -X POST \"https://localhost/rw/elog/clearall\" \n\n\n\n**Example java script**: \n```\nconst https = require('https');\n //To disable SSL\n process.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n const userId = process.env.USER_ID || 'Default user';\n const password = process.env.PASSWORD || 'robotics';\n let encoded = Buffer.from(`${userId}:${password}`).toString('base64');\n var auth = \"Basic \" + encoded;\n\n const options = {\n \t hostname: 'localhost',\n \t port: 443,\n \t path: '/rw/elog/clearall',\n \t method: 'POST',\n \t headers: {\n \t\t 'Accept': 'application/hal+json;v=2.0',\n \t\t 'Content-Type': 'application/x-www-form-urlencoded;v=2.0',\n \t\t 'Authorization': auth\n \t }\n };\n\n const req = https.request(options, res => {\n \t console.log(`statusCode: {res.statusCode}`);\n \t let responseBody = '';\n \t res.on('data', d => {\n \t\t responseBody += d;\n \t });\n \t res.on('end', () => {\n \t console.log(responseBody);\n \t if (res.headers.location) {\n \t\t console.log(res.headers.location);\n \t }\n \t });\n });\n\n req.on('error', error => {\n \t console.error(error);\n });\n\n req.end();\n```\n"
responses:
'204':
description: >-
The request has been successfully processed, but is not returning
any content
'400':
description: The request cannot be fulfilled due to bad syntax
'415':
description: >-
The server will not accept the request, because the media type is
not supported
security:
- basicAuth: []
/rw/elog/saveraw:
post:
tags:
- General Elog Service Actions
summary: Save Elog in System Dump Format
description: "**Description :**\n\n\"Save event log in system dump format on controller. Location header /progress/{id} will be returned after successful completion of the API.\nSince saving an elog in system dump format is an asynchronous task, the value of location\nheader can be subscribed on to get information about the status of the task.\"\n\nThe resource can be subscibed to get events with current status of saving elog. \nThe resource URI for this subscription will be /progress/{id}, where /progress/{id} \nis the\"location header\" returned after successful completion of \"Save elog in system dump\nformat\" API. \n\nSample responce for CFG Load subscription\n\n \n \n \n \n \n \n \n \n \n \n An event will look like\n \n \n \n \n \n \n \n \n \n\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"Content-Type: application/x-www-form-urlencoded;v=2.0\" -d \"path=/fileservice/$syspar/elog_dump.txt\" -X POST \"https://localhost/rw/elog/saveraw\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\n//To disable SSL\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\nconst data = 'path={string}';\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog/saveraw',\n method: 'POST',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Content-Type': 'application/x-www-form-urlencoded;v=2.0',\n 'Authorization': auth,\n 'Content-Length': data.length\n }\n}\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\n process.stdout.write(d)\n console.log(res.headers.location)\n})\n})\n req.on('error', error => {\n console.error(error)\n })\n req.write(data)\n req.end()\n```\n"
requestBody:
content:
application/x-www-form-urlencoded;v=2.0:
schema:
type: object
properties:
path:
description: >-
{path along with file-name which will contain the system
dump} Environment variables such as $Home, $Temp shall be
possible to have in the path.
type: string
example: path=string
description: Data parameter(s)
responses:
'202':
description: >-
The request has been accepted for processing, but the processing has
not been completed
'401':
description: >-
The request was a legal request, but the server is refusing to
respond to it. For use when authentication is possible but has
failed or not yet been provided
'403':
description: >-
The request was a legal request, but the server is refusing to
respond to it
'415':
description: >-
The server will not accept the request, because the media type is
not supported
security:
- basicAuth: []
/rw/elog/{domain-number}/clear:
post:
tags:
- Processes in Elog Domain
summary: Clear Elog Messages
description: "**Description :**\n\n \"Clears elog messages in this elog domain.\"\r\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"Content-Type: application/x-www-form-urlencoded;v=2.0\" -X POST \"https://localhost/rw/elog/0/clear\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\n//To disable SSL\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\nconst data = 'domain-number={domain-number}';\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog/{domain-number}/clear',\n method: 'POST',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Content-Type': 'application/x-www-form-urlencoded;v=2.0',\n 'Authorization': auth,\n 'Content-Length': data.length\n }\n}\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\n process.stdout.write(d)\n console.log(res.headers.location)\n})\n})\n req.on('error', error => {\n console.error(error)\n })\n req.write(data)\n req.end()\n```\n"
parameters:
- name: domain-number
in: path
description: '{domain-number}'
required: true
schema:
type: integer
responses:
'204':
description: >-
The request has been successfully processed, but is not returning
any content
'400':
description: The request cannot be fulfilled due to bad syntax
'404':
description: >-
The requested page could not be found but may be available again in
the future
'415':
description: >-
The server will not accept the request, because the media type is
not supported
security:
- basicAuth: []
/rw/elog/{domain-number}:
get:
tags:
- Processes in Elog Domain
summary: Get Elog Messages in Domain
description: "**Description :**\n\n \"Get a list of all elog messages in the given domain.\nAlso supports getting the number of events in the given domain, language specific elog\nmessages and title are only filtered.\nThe v=2.1 is supported from RW version 7.3.\nThe API with v=2.1 supports getting elog messages using sequence number and limit.\"\n\nThe resource can be subscribed (Elog domain) using /subscription with resource uri \n/rw/elog/{domain-number}\n\nSample response for Elog domain subscription\n\n```\n\n\n\n\n\n\n\n\n\n```\n\nThe subscription request will return a message similar to the sample response above. To\nretrieve the elog text the client must do a GET on the link returned in the \nelog-message-ev.\n\ncode block: Example response\n\n \n \n \n \n \n \n \n \n \n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?resource=count\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?lang=de&resource=title\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?lang=de\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?order=fifo\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?elogseqnum=8\" \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0?resource=info\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\n\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog/{domain-number}',\n method: 'GET',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Authorization': auth\n }\n}\n\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\nprocess.stdout.write(d)\n})\n})\nreq.on('error', error => {\n console.error(error)\n})\nreq.end()\n```\n"
parameters:
- name: domain-number
in: path
description: '{domain-number}'
required: true
schema:
type: string
- name: lang
in: query
description: >-
[alphanumeric] , a two letter language code e.g. en, sv, de, hi etc.
This option returns all the elog messages in the specified language.
required: false
schema:
type: string
- name: resource
in: query
description: >-
{count|info|title} count-Returns the number of events in the given
domain. info-In addition to returning a list of all elog domain,
this option returns the size of elog buffer and Number of event logs
for each elog domain. title-When this parameter is provided, only
the elog message title is returned. Allowed only along with `lang`
query parameter.
required: false
schema:
type: string
- name: order
in: query
description: '{lifo|fifo} Return the elog messages in fifo or lifo order'
required: false
schema:
type: string
- name: elogseqnum
in: query
description: >-
[numeric] Return the elog messages starting from the specified
sequence number
required: false
schema:
type: string
- name: paging
in: query
description: >-
{true|false}. Default value is true. Supported from RW7.1. Elogs can
be read page wise when paging is true. Elogs can be read
sequentially using elogseqnum query parameter when paging is false
and performance wise, it is faster.
required: false
schema:
type: string
- name: start
in: query
description: >-
[numeric]. Default value is 1. Start is a page number and allowed
only when paging query parameter value is true. Not applicable for
v=2.1.
required: false
schema:
type: string
- name: limit
in: query
description: >-
[numeric]. Default value is 50. Number of elogs should be returned
for request and max limit value is 200.
required: false
schema:
type: string
responses:
'200':
description: Standard response for successful HTTP requests
content:
application/xhtml+xml;v=2.0:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument's position e.g. arg1, arg2
etc..The type of argument can be float, string or long
title:
description: >-
[alphanumeric] The elog message title in the specified
langauge. Available only when `lang` parameter is provided
desc:
description: >-
[alphanumeric] The elog message description in the
specified langauge. Available only when `lang` parameter
is provided
conseqs:
description: >-
[alphanumeric] The elog message consequences in the
specified langauge. Available only when `lang` parameter
is provided
causes:
description: >-
[alphanumeric] The elog message causes in the specified
langauge. Available only when `lang` parameter is provided
actions:
description: >-
[alphanumeric] The elog message actions in the specified
langauge. Available only when `lang` parameter is provided
numevts:
description: '[numeric] The number of elog messages in this domain'
buffsize:
description: '[numeric] Size of elog buffer for this domain'
xml:
name: data
wrapped: true
examples:
response:
value: |
-
1
10015
MC0
2013-09-08 T 11:22:09
0
-
1
10013
MC0
2013-09-08 T 11:22:09
0
-
1
10002
MC0
2013-09-08 T 11:22:07
2
TRAFO
trafo_dm1
application/hal+json;v=2.0:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument's position e.g. arg1, arg2
etc..The type of argument can be float, string or long
title:
description: >-
[alphanumeric] The elog message title in the specified
langauge. Available only when `lang` parameter is provided
desc:
description: >-
[alphanumeric] The elog message description in the
specified langauge. Available only when `lang` parameter
is provided
conseqs:
description: >-
[alphanumeric] The elog message consequences in the
specified langauge. Available only when `lang` parameter
is provided
causes:
description: >-
[alphanumeric] The elog message causes in the specified
langauge. Available only when `lang` parameter is provided
actions:
description: >-
[alphanumeric] The elog message actions in the specified
langauge. Available only when `lang` parameter is provided
numevts:
description: '[numeric] The number of elog messages in this domain'
buffsize:
description: '[numeric] Size of elog buffer for this domain'
xml:
name: data
wrapped: true
application/xhtml+xml;v=2.1:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument's position e.g. arg1, arg2
etc..The type of argument can be float, string or long
title:
description: >-
[alphanumeric] The elog message title in the specified
langauge. Available only when `lang` parameter is provided
desc:
description: >-
[alphanumeric] The elog message description in the
specified langauge. Available only when `lang` parameter
is provided
conseqs:
description: >-
[alphanumeric] The elog message consequences in the
specified langauge. Available only when `lang` parameter
is provided
causes:
description: >-
[alphanumeric] The elog message causes in the specified
langauge. Available only when `lang` parameter is provided
actions:
description: >-
[alphanumeric] The elog message actions in the specified
langauge. Available only when `lang` parameter is provided
numevts:
description: '[numeric] The number of elog messages in this domain'
buffsize:
description: '[numeric] Size of elog buffer for this domain'
xml:
name: data
wrapped: true
examples:
response:
value: >
-
1
10129
MC0
2021-03-16 T 20:15:22
2
1
T_ROB1
-
1
10002
MC0
2021-03-16 T 20:15:22
3
1
0
T_ROB1
-
1
10150
MC0
2021-03-16 T 20:15:22
2
1
T_ROB1
application/hal+json;v=2.1:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument's position e.g. arg1, arg2
etc..The type of argument can be float, string or long
title:
description: >-
[alphanumeric] The elog message title in the specified
langauge. Available only when `lang` parameter is provided
desc:
description: >-
[alphanumeric] The elog message description in the
specified langauge. Available only when `lang` parameter
is provided
conseqs:
description: >-
[alphanumeric] The elog message consequences in the
specified langauge. Available only when `lang` parameter
is provided
causes:
description: >-
[alphanumeric] The elog message causes in the specified
langauge. Available only when `lang` parameter is provided
actions:
description: >-
[alphanumeric] The elog message actions in the specified
langauge. Available only when `lang` parameter is provided
numevts:
description: '[numeric] The number of elog messages in this domain'
buffsize:
description: '[numeric] Size of elog buffer for this domain'
xml:
name: data
wrapped: true
'404':
description: >-
The requested page could not be found but may be available again in
the future
'406':
description: >-
The server can only generate a response that is not accepted by the
client
security:
- basicAuth: []
/rw/elog/{domain-number}/{sequence-number}:
get:
tags:
- Processes in Elog Domain
summary: Get an Elog Messages
description: "**Description :**\n\n \"Get a specific elog message in the given domain and sequence-number. Also supports getting language specific elog message.\"\n\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/0/8?lang=en\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\n\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog/{domain-number}/{sequence-number}',\n method: 'GET',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Authorization': auth\n }\n}\n\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\nprocess.stdout.write(d)\n})\n})\nreq.on('error', error => {\n console.error(error)\n})\nreq.end()\n```\n"
parameters:
- name: domain-number
in: path
description: '{domain-number}, starts from 0'
required: true
schema:
type: string
- name: sequence-number
in: path
description: '{sequence-number}, starts from 1'
required: true
schema:
type: string
- name: lang
in: query
description: >-
[alphanumeric] , a two letter language code e.g. en, sv, de, hi etc.
This option returns all the elog messages in the specified language.
required: false
schema:
type: string
responses:
'200':
description: Standard response for successful HTTP requests
content:
application/xhtml+xml;v=2.0:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event.
elog-message:
description: Specifies a link to the 'elog-domain` resource.
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n]:
description: >-
type=[numeric] The argument position e.g. arg1, arg2, ....
The type of argument, can be string, long or float.
xml:
name: data
wrapped: true
examples:
response:
value: |
-
2
20573
MC0
2013-09-08 T 11:22:10
2
EIO
6.0
application/hal+json;v=2.0:
schema:
properties:
'0':
description: >-
Any event type. For search and trigger conditions only.
Cannot be used when writing an event.
'1':
description: State change, or informational event.
'2':
description: Warning Event
'3':
description: Error Event.
elog-message:
description: Specifies a link to the 'elog-domain` resource.
msg-type:
description: '[numeric] {0|1|2|3} The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n]:
description: >-
type=[numeric] The argument position e.g. arg1, arg2, ....
The type of argument, can be string, long or float.
xml:
name: data
wrapped: true
'400':
description: The request cannot be fulfilled due to bad syntax
'404':
description: >-
The requested page could not be found but may be available again in
the future
'406':
description: >-
The server can only generate a response that is not accepted by the
client
security:
- basicAuth: []
/rw/elog/seqnum/{sequence-number}:
get:
tags:
- General Elog Service Actions
summary: Get Elog message in sequence
description: "**Description :**\n\n \"Get a specific elog message based on sequence number. Also supports getting language specific elog message.\"\n\n\n\n**Pre-requisites**: None\r\n\n\n**Limitation**: None\r\n\n\n**Sample Call**: \n\n curl -u \"Default User\":robotics -H \"accept: application/xhtml+xml;v=2.0\" \"https://localhost/rw/elog/seqnum/8?lang=en\" \n\n\n\n**Example java script**: \n```\nconst https = require('https')\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n//provide the user id and passowrd\nlet encoded = Buffer.from(\"Default user:robotics\").toString('base64')\n\nvar auth = \"Basic \" + encoded;\nconst options = {\n hostname: 'localhost',\n port: 443,\n path: '/rw/elog/seqnum/{sequence-number}',\n method: 'GET',\n headers:{\n 'Accept': 'application/hal+json;v=2.0',\n 'Authorization': auth\n }\n}\n\nconst req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n res.on('data', d => {\nprocess.stdout.write(d)\n})\n})\nreq.on('error', error => {\n console.error(error)\n})\nreq.end()\n```\n"
parameters:
- name: sequence-number
in: path
description: '{sequence-number}, starts from 1'
required: true
schema:
type: string
- name: lang
in: query
description: >-
[alphanumeric] , a two letter language code e.g. en, sv, de, hi etc.
This option returns the elog message in the specified language.
required: false
schema:
type: string
responses:
'200':
description: Standard response for successful HTTP requests
content:
application/xhtml+xml;v=2.0:
schema:
properties:
elog-message:
description: Specifies a link to the 'elog-sequence` resource.
msg-type:
description: '[numeric] The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument position e.g. arg1, arg2, ....
The type of argument, can be string, long or float.
xml:
name: data
wrapped: true
examples:
response:
value: |
-
1
10002
MC0
2019-06-24 T 13:48:01
3
1
0
T_ROB1
application/hal+json;v=2.0:
schema:
properties:
elog-message:
description: Specifies a link to the 'elog-sequence` resource.
msg-type:
description: '[numeric] The elog message type'
code:
description: '[numeric] The elog message code'
src-name:
description: '[numeric] The elog message source'
tstamp:
description: '[datetime] The time stamp when the event log was generated'
argc:
description: >-
[numeric] The number of arguments present in this elog
message
arg[n:
description: >-
type=[numeric] The argument position e.g. arg1, arg2, ....
The type of argument, can be string, long or float.
xml:
name: data
wrapped: true
'400':
description: The request cannot be fulfilled due to bad syntax
'404':
description: >-
The requested page could not be found but may be available again in
the future
'406':
description: >-
The server can only generate a response that is not accepted by the
client
security:
- basicAuth: []