Request:
curl --user 'apiUser:example' -X GET "https://api.logicmonitor.com/santaba/rest/service/groups"
Response:
{
"status" : 200,
"errmsg" : "OK",
"data" : {
"total" : 5,
"items" : [ {
"id" : 1,
"name" : "sarah",
"description" : "",
"disableAlerting" : false,
"stopMonitoring" : false,
"parentId" : 0,
"alertStatus" : "unconfirmed-critical",
"sdtStatus" : "none-none-none",
"alertDisableStatus" : "none-none-disable",
"hasServicesDisabled" : false,
"numOfServices" : 13,
"userPermission" : "write",
"serviceProperties" : [ {
"name" : "billing",
"value" : "website"
}, {
"name" : "team",
"value" : "TechOps"
} ],
"numOfDirectServices" : 3,
"testLocation" : "{\"smgIds\":[2,3,4,5],\"all\":false}",
"fullPath" : "",
"subGroups" : [ {
"id" : 12,
"name" : "Production",
"userPermission" : "write",
"disableAlerting" : false,
"stopMonitoring" : false,
"hasServicesDisabled" : false,
"numOfServices" : 4,
"numOfDirectServices" : 4,
"alertDisableStatus" : "none-none-none",
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"fullPath" : "Production",
"description" : ""
}, {
"id" : 14,
"name" : "QA",
"userPermission" : "write",
"disableAlerting" : false,
"stopMonitoring" : false,
"hasServicesDisabled" : false,
"numOfServices" : 4,
"numOfDirectServices" : 4,
"alertDisableStatus" : "none-none-none",
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"fullPath" : "QA",
"description" : ""
} ]
}, {
"id" : 12,
"name" : "Production",
"description" : "",
"disableAlerting" : false,
"stopMonitoring" : false,
"parentId" : 1,
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"alertDisableStatus" : "none-none-none",
"hasServicesDisabled" : false,
"numOfServices" : 4,
"userPermission" : "write",
"serviceProperties" : [ {
"name" : "username",
"value" : "Bob"
}, {
"name" : "password",
"value" : "password"
} ],
"numOfDirectServices" : 4,
"testLocation" : "{\"all\":false,\"smgIds\":[1,2,3,4,5]}",
"fullPath" : "Production",
"subGroups" : [ ]
}, {
"id" : 14,
"name" : "QA",
"description" : "",
"disableAlerting" : false,
"stopMonitoring" : false,
"parentId" : 1,
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"alertDisableStatus" : "none-none-none",
"hasServicesDisabled" : false,
"numOfServices" : 4,
"userPermission" : "write",
"serviceProperties" : [ ],
"numOfDirectServices" : 4,
"testLocation" : "{\"all\":true}",
"fullPath" : "QA",
"subGroups" : [ {
"id" : 15,
"name" : "Tests",
"userPermission" : "write",
"disableAlerting" : false,
"stopMonitoring" : false,
"hasServicesDisabled" : false,
"numOfServices" : 0,
"numOfDirectServices" : 0,
"alertDisableStatus" : "none-none-none",
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"fullPath" : "QA/Tests",
"description" : ""
} ]
}, {
"id" : 15,
"name" : "Tests",
"description" : "",
"disableAlerting" : false,
"stopMonitoring" : false,
"parentId" : 14,
"alertStatus" : "none",
"sdtStatus" : "none-none-none",
"alertDisableStatus" : "none-none-none",
"hasServicesDisabled" : false,
"numOfServices" : 0,
"userPermission" : "write",
"serviceProperties" : [ ],
"numOfDirectServices" : 0,
"testLocation" : "{\"all\":true}",
"fullPath" : "QA/Tests",
"subGroups" : [ ]
} ],
"searchId" : null
}