Get a submitted abuse report
client.AbuseReports.Submitted.Get(ctx, reportID, query) (*SubmittedGetResponse, error)
GET/accounts/{account_id}/abuse-reports/submitted/{report_id}
Retrieve a report 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)
Get a submitted abuse report
package main
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/abuse_reports"
"github.com/cloudflare/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
submitted, err := client.AbuseReports.Submitted.Get(
context.TODO(),
"report_id",
abuse_reports.SubmittedGetParams{
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", submitted.ID)
}
{
"result": {
"id": "id",
"cdate": "2019-12-27T18:11:19.117Z",
"denial_reason": "unable_to_confirm",
"domain": "domain",
"dsa_attestation": true,
"status": "submitted",
"type": "PHISH",
"urls": [
"string"
],
"agent_name": "agent_name",
"comments": "comments",
"court": "court",
"destination_ips": [
"string"
],
"host_notification": "host_notification",
"justification": "justification",
"ncmec_notification": "ncmec_notification",
"ncsei_subject_representation": true,
"original_work": "original_work",
"owner_notification": "owner_notification",
"ports_protocols": [
"string"
],
"reg_who_request": {
"reg_who_good_faith_affirmation": true,
"reg_who_lawful_processing_agreement": true,
"reg_who_legal_basis": "reg_who_legal_basis",
"reg_who_request_type": "disclosure",
"reg_who_requested_data_elements": [
"registrant_name"
],
"reg_who_authorization_statement": "reg_who_authorization_statement",
"reg_who_requestor_type": "government"
},
"reported_country": "reported_country",
"reported_user_agent": "reported_user_agent",
"source_ips": [
"string"
],
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
},
"subtypes": [
"string"
],
"title": "title",
"udrp": "udrp",
"urs": "urs"
},
"success": true,
"errors": [
{
"message": "message",
"code": "string"
}
],
"messages": [
{
"message": "message"
}
]
}Returns Examples
{
"result": {
"id": "id",
"cdate": "2019-12-27T18:11:19.117Z",
"denial_reason": "unable_to_confirm",
"domain": "domain",
"dsa_attestation": true,
"status": "submitted",
"type": "PHISH",
"urls": [
"string"
],
"agent_name": "agent_name",
"comments": "comments",
"court": "court",
"destination_ips": [
"string"
],
"host_notification": "host_notification",
"justification": "justification",
"ncmec_notification": "ncmec_notification",
"ncsei_subject_representation": true,
"original_work": "original_work",
"owner_notification": "owner_notification",
"ports_protocols": [
"string"
],
"reg_who_request": {
"reg_who_good_faith_affirmation": true,
"reg_who_lawful_processing_agreement": true,
"reg_who_legal_basis": "reg_who_legal_basis",
"reg_who_request_type": "disclosure",
"reg_who_requested_data_elements": [
"registrant_name"
],
"reg_who_authorization_statement": "reg_who_authorization_statement",
"reg_who_requestor_type": "government"
},
"reported_country": "reported_country",
"reported_user_agent": "reported_user_agent",
"source_ips": [
"string"
],
"submitter": {
"company": "company",
"email": "email",
"name": "name",
"telephone": "telephone"
},
"subtypes": [
"string"
],
"title": "title",
"udrp": "udrp",
"urs": "urs"
},
"success": true,
"errors": [
{
"message": "message",
"code": "string"
}
],
"messages": [
{
"message": "message"
}
]
}