Get all SDTs for a Device
Last updated on 29 January, 2021Overview
With LogicMonitor’s REST API you can programmatically get the scheduled downtimes (SDTs) for the devices in your account.
As with all of our API calls, authentication is required.
Request Information
HTTP Method: GET
URI: /device/devices/{id}/sdts
Request Parameters: By default, a list of 50 SDT properties will be returned for each result. You can include sort, filter, fields, size and offset parameters in your request to control what data is included in the response and how it is formatted.
Property | Syntax | Description | Example URI |
sort | sort={+ or -}property | Sorts the response by the property specified in either increasing (+) or decreasing (-) order | /device/devices/76/sdts?sort=-sdtType |
filter | filter=property:value | Filters the response to include only the results that have the specified value for the specified property | /device/devices/12/sdts?filter=deviceDisplayName~prod |
fields | fields={list of properties separated by commas} | Filters the response to only include the following fields for each object | /device/devices/32/sdts?fields=deviceDisplayName,id,sdtType |
size | size=integer | The number of results to display | /device/devices/54/sdts?size=5 |
offset | offset=integer | The number of results to offset the displayed results by | /device/devices/34/sdts?offset=2 |