Create

Create
Create a Monitoring Template

Creates a Monitoring Template and maps it to its Custom Groups. Its Plugin configuration is pushed automatically, in the background, to every current and future member of its mapped Custom Groups.

Request
URI
POST
https://{api_host}/suite-api/api/applications/templates
COPY
Request Body

The Monitoring Template to create

MonitoringTemplate of type(s) application/json
Required  

Show optional properties

{
    "name": "string",
    "services": [
        {
            "configurations": [
                {
                    "configName": "string",
                    "parameters": [
                        {}
                    ]
                }
            ],
            "serviceName": "string"
        }
    ]
}
"{\n  \"name\" : \"OS Process Monitoring Template\",\n  \"description\" : \"Monitors common OS-level processes across the mapped custom groups\",\n  \"customGroups\" : [ \"6d4c1e2a-6a2a-4f3b-9e8a-6a2a4f3b9e8a\" ],\n  \"services\" : [ {\n    \"serviceName\" : \"processavailability\",\n    \"configurations\" : [ {\n      \"configName\" : \"NGINX Process Check\",\n      \"isActivated\" : true,\n      \"parameters\" : [ {\n        \"key\" : \"FILTER_VALUE\",\n        \"value\" : \"nginx\"\n      }, {\n        \"key\" : \"FILTER_TYPE\",\n        \"value\" : \"exec\"\n      } ]\n    } ]\n  } ]\n}"
array of string
customGroups
Optional

Identifiers of the Custom Groups this template is mapped to

string
description
Optional

The description of the monitoring template

string As uuid As uuid
id
Optional

Identifier of the monitoring template

string As ^[A-Za-z0-9_]+$
name
Required  

The name of the monitoring template - alphanumeric characters and underscores only

array of object
services
Required  
Constraints: minItems: 1

The Plugin configuration carried by this template

Authentication
This operation uses the following authentication methods.
Responses
201

The created Monitoring Template, now carrying its server-generated id.

Returns MonitoringTemplate of type(s) application/json
{
    "customGroups": [
        "string"
    ],
    "description": "string",
    "id": "string",
    "name": "string",
    "services": [
        {
            "configurations": [
                {
                    "configName": "string",
                    "isActivated": false,
                    "parameters": [
                        {
                            "key": "string",
                            "value": "string"
                        }
                    ]
                }
            ],
            "serviceName": "string"
        }
    ]
}
array of string
customGroups
Optional

Identifiers of the Custom Groups this template is mapped to

string
description
Optional

The description of the monitoring template

string As uuid As uuid
id
Optional

Identifier of the monitoring template

string As ^[A-Za-z0-9_]+$
name
Required  

The name of the monitoring template - alphanumeric characters and underscores only

array of object
services
Required  
Constraints: minItems: 1

The Plugin configuration carried by this template


400

The Monitoring Template failed validation (e.g. a duplicate Plugin configuration, an unknown customGroup id, or a disallowed parameter character)

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name":"string","services":["object"]}' https://{api_host}/suite-api/api/applications/templates