Event Source (GET)

Retrieves metadata for the event source.

Roles

Users in the following roles are authorized to perform this operation:

  • worklightadmin
  • worklightdeployer
  • worklightmonitor
  • worklightoperator

Method

GET

Path

/management-apis/1.0/runtimes/runtime-name/notifications/eventsources/adapter-name/eventsource-name

Example

https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/notifications/eventsources/myadapter/myeventsource?locale=de_DE

Path Parameters

runtime-name
The name of the runtime. This is the context root of the runtime web application, without the leading slash.
adapter-name
The name of the adapter.
eventsource-name
The name of the event source.

Query Parameters

Query parameters are optional.

locale
The locale used for error messages.

Produces

application/json, application/xml, text/xml

Response

The metadata of the event source.

JSON Example

{
  "numberOfMessagesSent" : 1,
  "numberOfSubscribedUsers" : 1,
  "productVersion" : "7.0.0",
  "qname" : "SampleAdapter.SampleEventSource",
}

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<eventsources
  numberOfMessagesSent="1"
  numberOfSubscribedUsers="1"
  productVersion="7.0.0"
  qname="SampleAdapter.SampleEventSource"/>

Response Properties

The response has the following properties:

numberOfMessagesSent
Number of messages sent to this event source.
numberOfSubscribedUsers
Number of subscribed users of this event source.
productVersion
The exact product version.
qname
The name of the event source.

Errors

403
The user is not authorized to call this service.
404
The corresponding runtime is not found or not running.
500
An internal error occurred.