URL
POST https://{api-url}/api/v2/tenants/{tenantId}/serviceGroups
Sample URLs
https://{api-url}/api/v2/tenants/client_16/serviceGroups
Use this API to create a parent (root level) 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 |
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:
|
Sample request
[{
"name": "Finance 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": "Windows",
"resourceType": "DEVICE"
}]
}
}]
Sample response
[
{
"id": "SGP-d71e0398-f33b-48ba-a283-1fa11ebe3e17",
"name": "Finance Inventory",
"createdDate": "2018-06-20T11:33:08+0000",
"updatedDate": "2018-06-20T11:43:17+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": "Windows",
"resourceType": "DEVICE"
}
],
"actions": [
]
}
}
]