URL
POST https://{api-url}/api/v2/tenants/{tenantId}/serviceGroups
Sample URLs
https://{api-url}/api/v2/tenants/client_14/serviceGroups
This API can perform the following actions on a service group:
- Rename a service group
- Add set of services to a service group
- Change knowledge base articles assigned to a service group
- Add a service group as child to a parent service group
Parameters
Field | Data Type | Description |
---|---|---|
name | String | Unique name for the service group. The service group is identified with this name. |
childType | String | Child service group type. Example: DEVICE, SERVICEGROUP, SNS, SQS |
parent
| String | Add a service group as a child under an existing service group (parent). This field is required for adding a service group to a parent service group. |
filterCriteria: Filter for resources that should be part of the service group with the below rules. | ||
| String | Match Any or All of the filter rules:
|
| String | Filter resources with help of specific attributes.
|
| String | Assign knowledge base articles to a device group.Note: To fetch a knowledge base article ID:
|
Determine the service availability monitor with the following rules: | ||
frequency | Integer | (Optional) |
thresholdType | String | (Optional) Define the availability status for a service group with below threshold types:
"thresholdType": "count","thresholdLimit": 5. |
thresholdLimit | Integer | (Optional) Provide a specific threshold value to determine count or percentage. |
type | String | (Optional)
|
alert | Boolean | (Optional) Generate an alert when the threshold limits are breached. |
alertType | Integer | (Optional) Provide specific alertType value to set service availability monitor:
|
Rename a service group
Sample request
[{
"id": "SGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af",
"name": "Warehouse servers",
"description": "Warehouse maintenance servers in North VJ",
"childType": "SERVICEGROUP",
"kbArticlesIds": [1]
}]
Sample response
[{
"id": "SGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af",
"name": "Warehouse servers",
"description": "Warehouse maintenance servers in North VJ",
"childType": "SERVICEGROUP",
"kbArticlesIds": [1]
}]
Add a child service group to an existing service group (the parent)
Sample request
[{
"name": "Warehouse Inventory",
"createdDate": "2018-06-20T11:33:08+0000",
"updatedDate": "2018-06-20T11:33:08+0000",
"childType": "DEVICE",
"frequency": 5,
"thresholdType": "count",
"thresholdLimit": 1,
"monitorNames": [
"service.availability.metric"
],
"include": "ALL",
"type": "alert",
"alertType": 2,
"alert": false,
"metrics": [],
"filterCriteria": {
"matchType": "ANY",
"rules": [{
"key": "Name",
"operator": "Contains",
"value": "Linux",
"resourceType": "DEVICE"
}]
},
"parent": {
"id": "SGP-c93673d0-355e-40bf-807c-44cc1d8678a4"
}
}]
Sample response
[{
"id": "SGP-f4e6100a-7180-43c8-955c-679205bbc419",
"name": "Warehouse 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": [],
"filterCriteria": {
"matchType": "ANY",
"rules": [{
"key": "Name",
"operator": "Contains",
"value": "Linux",
"resourceType": "DEVICE"
}]
}
}]