Skip to content
Start here

Get top verticals targeted by layer 7 attacks

client.Radar.Attacks.Layer7.Top.Vertical(ctx, query) (*AttackLayer7TopVerticalResponse, error)
GET/radar/attacks/layer7/top/vertical

This endpoint is deprecated. To continue getting this data, switch to the summary by vertical endpoint.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
query AttackLayer7TopVerticalParams
ASN param.Field[[]string]Optional

Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with - to exclude ASNs from results. For example, -174, 3356 excludes results from AS174, but includes results from AS3356.

Continent param.Field[[]string]Optional

Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude continents from results. For example, -EU,NA excludes results from EU, but includes results from NA.

DateEnd param.Field[[]Time]Optional

End of the date range (inclusive).

DateRange param.Field[[]string]Optional

Filters results by date range. For example, use 7d and 7dcontrol to compare this week with the previous week. Use this parameter or set specific start and end dates (dateStart and dateEnd parameters).

DateStart param.Field[[]Time]Optional

Start of the date range.

Format param.Field[AttackLayer7TopVerticalParamsFormat]Optional

Format in which results will be returned.

const AttackLayer7TopVerticalParamsFormatJson AttackLayer7TopVerticalParamsFormat = "JSON"
const AttackLayer7TopVerticalParamsFormatCsv AttackLayer7TopVerticalParamsFormat = "CSV"
HTTPMethod param.Field[[]AttackLayer7TopVerticalParamsHTTPMethod]Optional

Filters results by HTTP method.

const AttackLayer7TopVerticalParamsHTTPMethodGet AttackLayer7TopVerticalParamsHTTPMethod = "GET"
const AttackLayer7TopVerticalParamsHTTPMethodPost AttackLayer7TopVerticalParamsHTTPMethod = "POST"
const AttackLayer7TopVerticalParamsHTTPMethodDelete AttackLayer7TopVerticalParamsHTTPMethod = "DELETE"
const AttackLayer7TopVerticalParamsHTTPMethodPut AttackLayer7TopVerticalParamsHTTPMethod = "PUT"
const AttackLayer7TopVerticalParamsHTTPMethodHead AttackLayer7TopVerticalParamsHTTPMethod = "HEAD"
const AttackLayer7TopVerticalParamsHTTPMethodPurge AttackLayer7TopVerticalParamsHTTPMethod = "PURGE"
const AttackLayer7TopVerticalParamsHTTPMethodOptions AttackLayer7TopVerticalParamsHTTPMethod = "OPTIONS"
const AttackLayer7TopVerticalParamsHTTPMethodPropfind AttackLayer7TopVerticalParamsHTTPMethod = "PROPFIND"
const AttackLayer7TopVerticalParamsHTTPMethodMkcol AttackLayer7TopVerticalParamsHTTPMethod = "MKCOL"
const AttackLayer7TopVerticalParamsHTTPMethodPatch AttackLayer7TopVerticalParamsHTTPMethod = "PATCH"
const AttackLayer7TopVerticalParamsHTTPMethodACL AttackLayer7TopVerticalParamsHTTPMethod = "ACL"
const AttackLayer7TopVerticalParamsHTTPMethodBcopy AttackLayer7TopVerticalParamsHTTPMethod = "BCOPY"
const AttackLayer7TopVerticalParamsHTTPMethodBdelete AttackLayer7TopVerticalParamsHTTPMethod = "BDELETE"
const AttackLayer7TopVerticalParamsHTTPMethodBmove AttackLayer7TopVerticalParamsHTTPMethod = "BMOVE"
const AttackLayer7TopVerticalParamsHTTPMethodBpropfind AttackLayer7TopVerticalParamsHTTPMethod = "BPROPFIND"
const AttackLayer7TopVerticalParamsHTTPMethodBproppatch AttackLayer7TopVerticalParamsHTTPMethod = "BPROPPATCH"
const AttackLayer7TopVerticalParamsHTTPMethodCheckin AttackLayer7TopVerticalParamsHTTPMethod = "CHECKIN"
const AttackLayer7TopVerticalParamsHTTPMethodCheckout AttackLayer7TopVerticalParamsHTTPMethod = "CHECKOUT"
const AttackLayer7TopVerticalParamsHTTPMethodConnect AttackLayer7TopVerticalParamsHTTPMethod = "CONNECT"
const AttackLayer7TopVerticalParamsHTTPMethodCopy AttackLayer7TopVerticalParamsHTTPMethod = "COPY"
const AttackLayer7TopVerticalParamsHTTPMethodLabel AttackLayer7TopVerticalParamsHTTPMethod = "LABEL"
const AttackLayer7TopVerticalParamsHTTPMethodLock AttackLayer7TopVerticalParamsHTTPMethod = "LOCK"
const AttackLayer7TopVerticalParamsHTTPMethodMerge AttackLayer7TopVerticalParamsHTTPMethod = "MERGE"
const AttackLayer7TopVerticalParamsHTTPMethodMkactivity AttackLayer7TopVerticalParamsHTTPMethod = "MKACTIVITY"
const AttackLayer7TopVerticalParamsHTTPMethodMkworkspace AttackLayer7TopVerticalParamsHTTPMethod = "MKWORKSPACE"
const AttackLayer7TopVerticalParamsHTTPMethodMove AttackLayer7TopVerticalParamsHTTPMethod = "MOVE"
const AttackLayer7TopVerticalParamsHTTPMethodNotify AttackLayer7TopVerticalParamsHTTPMethod = "NOTIFY"
const AttackLayer7TopVerticalParamsHTTPMethodOrderpatch AttackLayer7TopVerticalParamsHTTPMethod = "ORDERPATCH"
const AttackLayer7TopVerticalParamsHTTPMethodPoll AttackLayer7TopVerticalParamsHTTPMethod = "POLL"
const AttackLayer7TopVerticalParamsHTTPMethodProppatch AttackLayer7TopVerticalParamsHTTPMethod = "PROPPATCH"
const AttackLayer7TopVerticalParamsHTTPMethodReport AttackLayer7TopVerticalParamsHTTPMethod = "REPORT"
const AttackLayer7TopVerticalParamsHTTPMethodSearch AttackLayer7TopVerticalParamsHTTPMethod = "SEARCH"
const AttackLayer7TopVerticalParamsHTTPMethodSubscribe AttackLayer7TopVerticalParamsHTTPMethod = "SUBSCRIBE"
const AttackLayer7TopVerticalParamsHTTPMethodTrace AttackLayer7TopVerticalParamsHTTPMethod = "TRACE"
const AttackLayer7TopVerticalParamsHTTPMethodUncheckout AttackLayer7TopVerticalParamsHTTPMethod = "UNCHECKOUT"
const AttackLayer7TopVerticalParamsHTTPMethodUnlock AttackLayer7TopVerticalParamsHTTPMethod = "UNLOCK"
const AttackLayer7TopVerticalParamsHTTPMethodUnsubscribe AttackLayer7TopVerticalParamsHTTPMethod = "UNSUBSCRIBE"
const AttackLayer7TopVerticalParamsHTTPMethodUpdate AttackLayer7TopVerticalParamsHTTPMethod = "UPDATE"
const AttackLayer7TopVerticalParamsHTTPMethodVersioncontrol AttackLayer7TopVerticalParamsHTTPMethod = "VERSIONCONTROL"
const AttackLayer7TopVerticalParamsHTTPMethodBaselinecontrol AttackLayer7TopVerticalParamsHTTPMethod = "BASELINECONTROL"
const AttackLayer7TopVerticalParamsHTTPMethodXmsenumatts AttackLayer7TopVerticalParamsHTTPMethod = "XMSENUMATTS"
const AttackLayer7TopVerticalParamsHTTPMethodRpcOutData AttackLayer7TopVerticalParamsHTTPMethod = "RPC_OUT_DATA"
const AttackLayer7TopVerticalParamsHTTPMethodRpcInData AttackLayer7TopVerticalParamsHTTPMethod = "RPC_IN_DATA"
const AttackLayer7TopVerticalParamsHTTPMethodJson AttackLayer7TopVerticalParamsHTTPMethod = "JSON"
const AttackLayer7TopVerticalParamsHTTPMethodCook AttackLayer7TopVerticalParamsHTTPMethod = "COOK"
const AttackLayer7TopVerticalParamsHTTPMethodTrack AttackLayer7TopVerticalParamsHTTPMethod = "TRACK"
HTTPVersion param.Field[[]AttackLayer7TopVerticalParamsHTTPVersion]Optional

Filters results by HTTP version.

const AttackLayer7TopVerticalParamsHTTPVersionHttPv1 AttackLayer7TopVerticalParamsHTTPVersion = "HTTPv1"
const AttackLayer7TopVerticalParamsHTTPVersionHttPv2 AttackLayer7TopVerticalParamsHTTPVersion = "HTTPv2"
const AttackLayer7TopVerticalParamsHTTPVersionHttPv3 AttackLayer7TopVerticalParamsHTTPVersion = "HTTPv3"
IPVersion param.Field[[]AttackLayer7TopVerticalParamsIPVersion]Optional

Filters results by IP version (Ipv4 vs. IPv6).

const AttackLayer7TopVerticalParamsIPVersionIPv4 AttackLayer7TopVerticalParamsIPVersion = "IPv4"
const AttackLayer7TopVerticalParamsIPVersionIPv6 AttackLayer7TopVerticalParamsIPVersion = "IPv6"
Limit param.Field[int64]Optional

Limits the number of objects returned in the response.

exclusiveMinimum
minimum0
Location param.Field[[]string]Optional

Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with - to exclude locations from results. For example, -US,PT excludes results from the US, but includes results from PT.

MitigationProduct param.Field[[]AttackLayer7TopVerticalParamsMitigationProduct]Optional

Filters the results by layer 7 mitigation product.

const AttackLayer7TopVerticalParamsMitigationProductDDoS AttackLayer7TopVerticalParamsMitigationProduct = "DDOS"
const AttackLayer7TopVerticalParamsMitigationProductWAF AttackLayer7TopVerticalParamsMitigationProduct = "WAF"
const AttackLayer7TopVerticalParamsMitigationProductBotManagement AttackLayer7TopVerticalParamsMitigationProduct = "BOT_MANAGEMENT"
const AttackLayer7TopVerticalParamsMitigationProductAccessRules AttackLayer7TopVerticalParamsMitigationProduct = "ACCESS_RULES"
const AttackLayer7TopVerticalParamsMitigationProductIPReputation AttackLayer7TopVerticalParamsMitigationProduct = "IP_REPUTATION"
const AttackLayer7TopVerticalParamsMitigationProductAPIShield AttackLayer7TopVerticalParamsMitigationProduct = "API_SHIELD"
const AttackLayer7TopVerticalParamsMitigationProductDataLossPrevention AttackLayer7TopVerticalParamsMitigationProduct = "DATA_LOSS_PREVENTION"
Name param.Field[[]string]Optional

Array of names used to label the series in the response.

ReturnsExpand Collapse
type AttackLayer7TopVerticalResponse struct{…}
Meta AttackLayer7TopVerticalResponseMeta

Metadata for the results.

ConfidenceInfo AttackLayer7TopVerticalResponseMetaConfidenceInfo
Annotations []AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotation
DataSource AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceAll AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceBGP AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceBots AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceCT AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceDNS AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceDos AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceFw AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceIQI AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceNet AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypeEvent AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypeOutage AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypePipeline AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AttackLayer7TopVerticalResponseMetaConfidenceInfoAnnotationsEventType = "TRAFFIC_ANOMALY"
IsInstantaneous bool

Whether event is a single point in time or a time range.

LinkedURL string
formaturi
StartDate Time
formatdate-time
Tags []stringOptional
Level int64

Provides an indication of how much confidence Cloudflare has in the data.

DateRange []AttackLayer7TopVerticalResponseMetaDateRange
EndTime Time

Adjusted end of date range.

formatdate-time
StartTime Time

Adjusted start of date range.

formatdate-time
LastUpdated Time

Timestamp of the last dataset update.

formatdate-time
Normalization AttackLayer7TopVerticalResponseMetaNormalization

Normalization method applied to the results. Refer to Normalization methods.

One of the following:
const AttackLayer7TopVerticalResponseMetaNormalizationPercentage AttackLayer7TopVerticalResponseMetaNormalization = "PERCENTAGE"
const AttackLayer7TopVerticalResponseMetaNormalizationMin0Max AttackLayer7TopVerticalResponseMetaNormalization = "MIN0_MAX"
const AttackLayer7TopVerticalResponseMetaNormalizationMinMax AttackLayer7TopVerticalResponseMetaNormalization = "MIN_MAX"
const AttackLayer7TopVerticalResponseMetaNormalizationRawValues AttackLayer7TopVerticalResponseMetaNormalization = "RAW_VALUES"
const AttackLayer7TopVerticalResponseMetaNormalizationPercentageChange AttackLayer7TopVerticalResponseMetaNormalization = "PERCENTAGE_CHANGE"
const AttackLayer7TopVerticalResponseMetaNormalizationRollingAverage AttackLayer7TopVerticalResponseMetaNormalization = "ROLLING_AVERAGE"
const AttackLayer7TopVerticalResponseMetaNormalizationOverlappedPercentage AttackLayer7TopVerticalResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const AttackLayer7TopVerticalResponseMetaNormalizationRatio AttackLayer7TopVerticalResponseMetaNormalization = "RATIO"
Units []AttackLayer7TopVerticalResponseMetaUnit

Measurement units for the results.

Name string
Value string
Top0 []AttackLayer7TopVerticalResponseTop0
Name string
Value string

Get top verticals targeted by layer 7 attacks

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/option"
  "github.com/stainless-sdks/cloudflare-go/radar"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.Attacks.Layer7.Top.Vertical(context.TODO(), radar.AttackLayer7TopVerticalParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Meta)
}
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "name": "Internet and Telecom",
        "value": "65"
      }
    ]
  },
  "success": true
}
Returns Examples
{
  "result": {
    "meta": {
      "confidenceInfo": {
        "annotations": [
          {
            "dataSource": "ALL",
            "description": "Cable cut in Tonga",
            "endDate": "2019-12-27T18:11:19.117Z",
            "eventType": "EVENT",
            "isInstantaneous": true,
            "linkedUrl": "https://example.com",
            "startDate": "2019-12-27T18:11:19.117Z",
            "tags": [
              "BOT_CLASS"
            ]
          }
        ],
        "level": 0
      },
      "dateRange": [
        {
          "endTime": "2022-09-17T10:22:57.555Z",
          "startTime": "2022-09-16T10:22:57.555Z"
        }
      ],
      "lastUpdated": "2019-12-27T18:11:19.117Z",
      "normalization": "PERCENTAGE",
      "units": [
        {
          "name": "*",
          "value": "requests"
        }
      ]
    },
    "top_0": [
      {
        "name": "Internet and Telecom",
        "value": "65"
      }
    ]
  },
  "success": true
}