URL
GET https://api.opsramp.com/api/v2/tenants/{tenantId}/policies/firstResponse/
Parameters
Property | Description |
---|---|
pageNo | (Optional) Default: 1 By default, |
pageSize | (Optional) Default: 100 By default, |
Sample URLs
https://api.opsramp.com/api/v2/tenants/client_4/policies/firstResponse/
https://api.opsramp.com/api/v2/tenants/client_4/policies/firstResponse/?pageNo=1&pageSize=100
Status code
200 OK
Sample 1 - View first response policies of client-4
Sample request
https://api.opsramp.com/api/v2/tenants/client_4/policies/firstResponse/
Sample response
{
"results": [
{
"id": "POLICY-AC-c44f4193-154a-4aa5-b8a9-e5ea5acb386b",
"name": "Policy1",
"enabled": true,
"enabledMode": "ON"
},
{
"id": "POLICY-AC-d53e179d-8c9b-4564-b793-dc639f6a7cf2",
"name": "Policy2",
"enabled": true,
"enabledMode": "OBSERVED"
}
],
"totalResults": 2,
"orderBy": "id",
"pageNo": 1,
"pageSize": 100,
"totalPages": 1,
"nextPage": false,
"previousPageNo": 0,
"descendingOrder": false
}
Sample 2 - View first response policies of client-4
Sample request
https://api.opsramp.com/api/v2/tenants/client_4/policies/firstResponse/?pageNo=1&pageSize=10
Sample response
{
"results": [
{
"id": "POLICY-AC-c44f4193-154a-4aa5-b8a9-e5ea5acb386b",
"name": "Policy1",
"enabled": true,
"enabledMode": "ON"
},
{
"id": "POLICY-AC-d53e179d-8c9b-4564-b793-dc639f6a7cf2",
"name": "Policy2",
"enabled": true,
"enabledMode": "OBSERVED"
}
],
"totalResults": 2,
"orderBy": "id",
"pageNo": 1,
"pageSize": 10,
"totalPages": 1,
"nextPage": false,
"previousPageNo": 0,
"descendingOrder": false
}