Get all SDTs for a Website Group

Last updated on 20 January, 2020

You can use LogicMonitor’s REST API to programmatically get information about SDTs scheduled for your website groups.

Get a list of SDTs for a website group

Returns all SDTs for a website group

HTTP Method:GET

URI: /service/groups/{id}/sdts

Request Parameters:

By default, all SDTs will be included in the response. You can include sort, size, filter, and fields parameters that control which properties are displayed in the response:

Property

Syntax

Description

Example URI

sort sort={+ or -}property Sorts the response by the property specified in either increasing (+) or decreasing (-) order /service/groups/34/sdts?sort=-id
filter filter=property:value Filters the response to include only the results that have the specified value for the specified property /service/groups/67/sdts?filter=name:QAserviceGroup
fields fields={list of properties separated by commas} Filters the response to only include the following fields for each object /service/groups/89/sdts?fields=name,id,services
size size=integer The number of results to display /service/groups/16/sdts?size=5
offset offset=integer The number of results to offset the displayed results by /service/groups/23/sdts?offset=2

 

Example 1: Get a list of SDTs for a website group

The following request returns all scheduled SDTs for the website group with id 1.

Request:

curl --user 'apiUser:example' -X GET "https://api.logicmonitor.com/santaba/rest/service/groups/1/sdts"

Response:

{
  "status" : 200,
  "errmsg" : "OK",
  "data" : {
    "total" : 1,
    "items" : [ {
      "id" : "S_61",
      "sdtType" : 3,
      "admin" : "sarah",
      "comment" : "",
      "weekDay" : 1,
      "monthDay" : 1,
      "hour" : 14,
      "minute" : 33,
      "endHour" : 15,
      "endMinute" : 33,
      "duration" : 60,
      "startDateTimeOnLocal" : "2015-08-01 14:33:00 PDT",
      "startDateTime" : 1438464780519,
      "endDateTimeOnLocal" : "2015-08-01 15:33:00 PDT",
      "endDateTime" : 1438468380519,
      "isEffective" : false,
      "type" : "ServiceSDT",
      "serviceId" : 32,
      "serviceName" : "pingService"
    } ],
    "searchId" : null
  }
In This Article