Delete

Delete
Delete a batch of Monitoring Templates

Deletes each listed Monitoring Template independently - best-effort, not all-or-nothing: an id with no matching Monitoring Template, or one that otherwise fails to delete, does not block the rest of the batch. The per-id outcome (which ids were deleted, which failed and why) is reported in the response body - the caller checks the failed list, not the HTTP status, for partial failures. Any plugin configuration already pushed onto a successfully-deleted template's members is removed automatically, in the background, not synchronously as part of this call.

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

Identifiers of the Monitoring Templates to delete

MonitoringTemplateIdentifiers of type(s) application/json
Required  

Show optional properties

{
    "templateIds": [
        {}
    ]
}
"{\n  \"templateIds\" : [ \"3902b93e-422a-4c4e-888e-28e0bf82f5d0\", \"b7e2c4a1-9d3e-4f6a-8c2b-1e5d7f9a3c0e\" ]\n}"
array of string
templateIds
Required  
Constraints: minItems: 1

Identifiers of the Monitoring Templates to operate on

Authentication
This operation uses the following authentication methods.
Responses
200

The per-id outcome of the batch - see failed for which ids, if any, could not be deleted and why

Returns MonitoringTemplateDeleteResult of type(s) application/json
"{\n  \"deleted\" : [ \"3902b93e-422a-4c4e-888e-28e0bf82f5d0\" ],\n  \"failed\" : [ {\n    \"id\" : \"b7e2c4a1-9d3e-4f6a-8c2b-1e5d7f9a3c0e\",\n    \"reason\" : \"No Monitoring Template found with id 'b7e2c4a1-9d3e-4f6a-8c2b-1e5d7f9a3c0e'\"\n  } ]\n}"
array of string
deleted
Optional

Ids of the Monitoring Templates that were deleted

array of object
failed
Optional

Ids of the Monitoring Templates that could not be deleted, with the reason for each


403

The caller lacks the privilege to manage Application Monitoring

Operation doesn't return any data structure

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