URL
GET https://{api-url}/api/v2/tenants/{tenantId}/serviceGroups/{sgId}/childs/search
Sample URLs
https://{api-url}/api/v2/tenants/client_14/serviceGroups/SGP-615a32d1-67b1-47f8-b4e4-e224b66d2ca1/childs/search?pageNo=1&pageSize=100&isDescendingOrder=true&sortName=id
Parameters
The parameters are optional:
Field | Default Value |
---|---|
pageNo={pageNo} | 1 |
pageSize={pageSize} | 100 |
isDescendingOrder={true/false} | true |
sortName={field} | id |
queryString={queryString} | NA |
NA indicates that the value is not applicable.
Sample responses
Sample response to retrieve child entities from a parent service group:
{
"results": [{
"id": "SGP-f4e6100a-7180-43c8-955c-679205bbc419",
"name": "Finance Inventory",
"createdDate": "2018-06-20T12:13:34+0000",
"updatedDate": "2018-06-20T12:13:34+0000",
"childType": "DEVICE",
"frequency": 5,
"thresholdType": "count",
"thresholdLimit": 1,
"monitorNames": [
"service.availability.metric"
],
"include": "ALL",
"type": "alert",
"alertType": 2,
"alert": false,
"metrics": []
}],
"totalResults": 1,
"orderBy": "id",
"pageNo": 1,
"pageSize": 100,
"totalPages": 1,
"nextPage": false,
"previousPageNo": 0,
"descendingOrder": true
}
Sample response to retrieve child resources/devices from a parent service group:
{
"results": [{
"id": "a783e031-9f97-49b2-a913-1999ac879e49",
"name": "ubuntu",
"childType": "DEVICE",
"alert": false
},
{
"id": "658ea8aa-b52c-46c4-8143-22000c15b573",
"name": "Windows SJ Lab",
"childType": "DEVICE",
"alert": false
},
{
"id": "ae7b2ca4-a08e-4940-8a32-a9568d927095",
"name": "HYDLPT039",
"childType": "DEVICE",
"alert": false
},
{
"id": "f287105e-3bd8-4c39-9f1f-49e2d3f9fdd8",
"name": "import_printer",
"childType": "DEVICE",
"alert": false
},
{
"id": "712a9177-d363-41e8-93ba-f1001d250d06",
"name": "acme-ecomm-aws-api34",
"childType": "DEVICE",
"alert": false
},
{
"id": "aad5642e-b772-4067-8727-31c84f9fbb96",
"name": "VM SJ Lab",
"childType": "DEVICE",
"alert": false
},
{
"id": "55ef8611-4bce-4eab-94bb-a0d6dabc86c9",
"name": "VG-ECC AWS",
"childType": "DEVICE",
"alert": false
},
{
"id": "936f2dea-50f5-42b5-a781-169f2cc1f48c",
"name": "JOHN-PC",
"childType": "DEVICE",
"alert": false
}
],
"totalResults": 8,
"orderBy": "id",
"pageNo": 1,
"pageSize": 100,
"totalPages": 1,
"nextPage": false,
"previousPageNo": 0,
"descendingOrder": true
}