List submitted abuse reports
abuse_reports.submitted.list(SubmittedListParams**kwargs) -> SyncV4PagePagination[SubmittedListResponse]
GET/accounts/{account_id}/abuse-reports/submitted
List abuse reports submitted by the account.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Parameters
created_after: Optional[Union[str, datetime]]
Return reports submitted after this time.
formatdate-time
created_before: Optional[Union[str, datetime]]
Return reports submitted before this time.
formatdate-time
List submitted abuse reports
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
page = client.abuse_reports.submitted.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
page = page.result.items[0]
print(page.reports){
"result": {
"reports": [
{
"id": "id",
"cdate": "2019-12-27T18:11:19.117Z",
"denial_reason": "unable_to_confirm",
"domain": "domain",
"status": "submitted",
"type": "PHISH",
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
}
}
]
},
"success": true,
"errors": [
{
"message": "message",
"code": "string"
}
],
"messages": [
{
"message": "message"
}
],
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}Returns Examples
{
"result": {
"reports": [
{
"id": "id",
"cdate": "2019-12-27T18:11:19.117Z",
"denial_reason": "unable_to_confirm",
"domain": "domain",
"status": "submitted",
"type": "PHISH",
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
}
}
]
},
"success": true,
"errors": [
{
"message": "message",
"code": "string"
}
],
"messages": [
{
"message": "message"
}
],
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0,
"total_pages": 0
}
}