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-b83c5e30721cc
https://{api-url}/api/v2/tenants/client_7/policies/firstResponse/POLICY-AC-aa3186cb-5572-43ed-abb9-7830574ee1b2

Status code

200 OK

Sample response

This sample response displays a first response policy.

{
    "id": "POLICY-AC-aa3186cb-5572-43ed-abb9-7830574ee1b2",
    "name": "Policy1",
    "enabled": true,
    "enabledMode": "ON",
    "filterCriteria": {
        "filterBased": true,
        "matchingType": "ALL",
        "rules": [
            {
                "filterType": "nativeAttributes",
                "entityName": "resource_name",
                "operator": "Starts with",
                "entityValue": "vm"
            }
        ]
    },
    "attributeActions": {
    	"continuousLearning": true,
        "suppress": {
            "learnedConfiguration": true,
            "suppressDuration": 5
        },
        "runProcess": {
            "learnedConfiguration": true,
            "processIds": [
                "PROCESS_9beade88-834a-4229-ab34-90380214cf74"
            ]
        }
    },
    "patternActions": {
        "suppress": {
            "seasonalAlerts": true
        }
    },
    "createdBy": {
        "loginName": "opsramp_api_user",
        "lastName": " ",
        "firstName": "API User",
        "email": "helpdesk@opsramp.com"
    },
    "createdTime": "2020-08-17T13:35:29+0530",
    "updatedTime": ""
}