/api/space/device-management/devices/get-syslog-events
The following operations are supported on this resource:
POST /api/space/device-management/devices/get-syslog-events (v2)
This API is used to start syslog events on managed devices. It makes an asynchronous call to the syslog service.
Access Control
The following capabilities are required to access this API:
"DefaultRead"
Example Usage
Since this API makes an asynchronous method call, the user must specify a queue parameter with this API.
POST /api/space/device-management/devices/get-syslog-events?queue-url=<queue-url>&schedule-time=<schedule-time>Note: It is assumed that the queue denoted by <queue-url> has, already, been created.
Parameters
Name | Type | URI Type | Description | Required |
queue-url | URL | Query | A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) | Y |
schedule-time | cron-like-expression | Query | Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) | N |
Content Types
-
Consumes content types:
application/vnd.net.juniper.space.device-management.get-syslog-events+xml;version=2;charset=UTF-8
application/vnd.net.juniper.space.device-management.get-syslog-events+json;version=2;charset=UTF-8 -
Produces content types:
application/vnd.net.juniper.space.device-management.get-syslog-events+xml;version=2
application/vnd.net.juniper.space.device-management.get-syslog-events+json;version=2 -
Sample Input XML:
<get-syslog-events>
<devices>
<device href="/api/space/device-management/devices/1234"/>
<device href="/api/space/device-management/devices/5678"/>
</devices>
<text-patterns>
<text-pattern>pattern1</text-pattern>
<text-pattern>pattern2</text-pattern>
</text-patterns>
</get-syslog-events> -
Sample Output XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<task>
<id>720908</id>
</task> -
Sample Input JSON:
{
"get-syslog-events":
{
"devices":
{
"device" :
{
"@href":"/api/space/device-management/devices/1234"
}
},
"text-patterns":
{
"text-pattern" :
[
"pattern1",
"pattern2"
]
},
}
} -
Sample Output JSON:
{
"task":
{
"id":1245226
}
}
For the deprecated versions of this API, refer to :
version 1