List abuse report mitigations
client.abuseReports.mitigations.list(stringreportId, MitigationListParams { account_id, effective_after, effective_before, 6 more } params, RequestOptionsoptions?): V4PagePagination<MitigationListResponse { mitigations } >
GET/accounts/{account_id}/abuse-reports/{report_id}/mitigations
List mitigations done to remediate the abuse report.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
List abuse report mitigations
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const mitigationListResponse of client.abuseReports.mitigations.list('report_id', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
})) {
console.log(mitigationListResponse.mitigations);
}{
"success": true,
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message"
}
],
"result": {
"mitigations": [
{
"id": "id",
"effective_date": "2009-11-10T23:00:00Z",
"entity_id": "entity_id",
"entity_type": "url_pattern",
"status": "pending",
"type": "legal_block"
}
]
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}Returns Examples
{
"success": true,
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "message"
}
],
"result": {
"mitigations": [
{
"id": "id",
"effective_date": "2009-11-10T23:00:00Z",
"entity_id": "entity_id",
"entity_type": "url_pattern",
"status": "pending",
"type": "legal_block"
}
]
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}