URL

GET https://{api-url}/api/v2/tenants/{tenantId}/monitoring/templates/search

Sample URLs

https://{api-url}/api/v2/tenants/client_93/monitoring/templates/search
https://{api-url}/api/v2/tenants/client_93/monitoring/templates/search?pageNo=1&pageSize=10&isDescendingOrder=true&sortName=id&queryString=id:1043+name:vTemplate+scope:Global+collectorType:AWS+status:ACTIVE+generation:1
https://{api-url}/api/v2/tenants/msp_92/monitoring/templates/search?queryString=startCreationDate:2015-11-10T10:40:20 0000+endCreationDate:2015-11-11T10:40:20 0000

Parameters

The parameters are optional:

FieldDefault Value
pageNo={pageNo}1
pageSize={pageSize}100
isDescendingOrder={true/false}true
sortName={field}id
queryString={queryString}NA

NA indicates that the value is not applicable.

Query variables

Query VariablesDescription
idTemplate ID.
nameTemplate name.
scopeTemplate scope. Example: Global [note 3]
collectorTypeCollector type.
Supported values are: Agent, Gateway, OpsRamp Cloud, AWS, GOOGLE, AZURE
statusTemplate status.
Example: ACTIVE, EOL
generationThe generation.
Example: 1, 2
startCreationDateSearch for templates created within a certain duration.
startCreationDate denotes the from date.
endCreationDateSearch for templates created within a certain duration.
endCreationDate denotes the to date.
startUpdationDateSearch for templates updated within a certain duration.
startUpdationDate denotes the from update date.
endUpdationDateSearch for templates updated within a certain duration.
endUpdationDate denotes the to update date.
sourceTypeTemplate source.
Supported values are: DEVICE, DATA_CENTER, VI_CLUSTER, VI_DATASTORE, JMX_APP_CLUSTER, JMX_APP_INSTANCE, DISTRIBUTED_VIRTUAL_SWITCH, CONTRAIL_ANALYTICS_NODE, CONTRAIL_CONFIG_NODE, CONTRAIL_CONTROL_NODE, VIRTUVAL_ROUTER, STORAGE_ARRAY_VOLUME

Status code

200 OK

Sample response

 {
            "id": 26,
            "uniqueId": "c8b5f56a-7bbc-4d30-bb76-de0dee6fa3da",
            "name": "AGENT_TEMP_API_TEST_8",
            "description": "AGENT_TEMP_API_TEST_8",
            "collectorType": "OpsRamp Agent",
            "status": "ACTIVE",
            "generation": 1,
            "resourceType": "DEVICE",
            "ruleEntity": "DEVICE",
            "createdDate": "2020-07-22T11:56:31+0000",
            "updatedDate": "2020-07-22T11:56:31+0000",
            "monitors": [
                {
                    "name": "ping.metric",
                    "frequency": 15,
                    "repeatFrequency": 1,
                    "repeatCount": 1,
                    "warningThreshHold": "1",
                    "criticalThreshHold": "3",
                    "raiseAlert": false,
                    "availability": false,
                    "monitorType": "SCRIPTS",
                    "monitorScriptName": "Test_CUSTOM_MON_1",
                    "scriptUserType": 1,
                    "monitorNonExistingServices": false,
                    "monScriptMetricName": "ping.metric",
                    "customMonitorScripts": [
                        {
                            "fileName": "test",
                            "fileVersion": "0.00",
                            "fileSize": 12,
                            "timeout": 0,
                            "path": "https://mspnocsupport.com/downloadScript.do?action=downloadAgent&fileName=test&version=0.00",
                            "pathType": "local",
                            "type": "POWERSHELL",
                            "alert": false,
                            "monScriptName": "Test_CUSTOM_MON_1",
                            "fileLoc": "https://mspnocsupport.com/downloadScript.do?action=downloadAgent&fileName=test&version=0.00",
                            "exeName": "EXECUTE",
                            "exeType": "POWERSHELL",
                            "scriptVer": "0.00",
                            "scriptMeritcs": [
                                {
                                    "name": "ping.metric",
                                    "displayName": "ping.metric",
                                    "warningThreshHold": "1",
                                    "criticalThreshHold": "3",
                                    "units": "mb"
                                }
                            ],
                            "description": "Test_CUSTOM_MON_1",
                            "category": {
                                "id": 0,
                                "name": "Miscellaneous"
                            },
                            "params": []
                        }
                    ],
                    "customMonitorScriptMap": {
                        "Test_CUSTOM_MON_1": "Test_CUSTOM_MON_1"
                    }
                }
            ]
        }