Update

Update
Update a Monitoring Template

Updates a Monitoring Template's Custom Group mappings and/or Plugin configuration. The updated configuration is pushed automatically, in the background, to every affected resource (newly- or no-longer-mapped groups' members, or every mapped group's members if the Plugin configuration itself changed).

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

The Monitoring Template to update

MonitoringTemplate of type(s) application/json
Required  

Show optional properties

{
    "name": "string",
    "services": [
        {
            "configurations": [
                {
                    "configName": "string",
                    "parameters": [
                        {}
                    ]
                }
            ],
            "serviceName": "string"
        }
    ]
}
"{\n  \"id\" : \"3902b93e-422a-4c4e-888e-28e0bf82f5d0\",\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\", \"a1f2e3d4-5b6c-4d7e-8f9a-0b1c2d3e4f5a\" ],\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      \"configName\" : \"SYSLOG Process Check\",\n      \"isActivated\" : true,\n      \"parameters\" : [ {\n        \"key\" : \"FILTER_VALUE\",\n        \"value\" : \"syslog\"\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
200

The updated Monitoring Template.

Returns MonitoringTemplate of type(s) application/json
"{\n  \"id\" : \"3902b93e-422a-4c4e-888e-28e0bf82f5d0\",\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\", \"a1f2e3d4-5b6c-4d7e-8f9a-0b1c2d3e4f5a\" ],\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      \"configName\" : \"SYSLOG Process Check\",\n      \"isActivated\" : true,\n      \"parameters\" : [ {\n        \"key\" : \"FILTER_VALUE\",\n        \"value\" : \"syslog\"\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


400

The Monitoring Template failed validation

Operation doesn't return any data structure

404

No Monitoring Template exists with the given id

Operation doesn't return any data structure

409

The Monitoring Template was concurrently modified by another request

Operation doesn't return any data structure

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