URL
GET https://{api-url}/api/v2/tenants/{tenantId}/policies/firstResponse/{policyId}
Sample URLs
https://{api-url}/api/v2/tenants/client_7/policies/firstResponse/POLICY-AC-3218d82f-25c6-4d4d-bd88-b83c5e30721c
https://{api-url}/api/v2/tenants/client_7/policies/firstResponse/POLICY-AC-ce200249-bcb0-47ef-8b24-9b5744053243
Status code
200 OK
Sample response
{
"id": "POLICY-AC-d53e179d-8c9b-4564-b793-dc639f6a7cf2",
"name": "Policy2",
"enabled": true,
"precedence": 2,
"filterCriteria": {
"filterBased": true,
"matchingType": "ALL",
"rules": [
{
"filterType": "nativeAttributes",
"entityName": "host_name",
"operator": "Starts with",
"entityValue": "vm"
}
]
},
"firstResponseType": "SUPPRESSION",
"suppression": {
"suppressSeasonalAlerts": false,
"suppressByAttributes": false,
"autoSnooze": true,
"continuousLearning": true,
"trainingFileId": "ml_alert_suppression_training"
},
"createdBy": {
"loginName": "opsramp_api_user",
"lastName": " ",
"firstName": "OpsRamp API User",
"email": "opsAdmin@opsramp.com"
},
"createdTime": "2019-02-28T09:25:56+0000",
"updatedTime": ""
}