Skip to content
Start here

Get top locations by AS112 DNS queries with DNSSEC support

client.Radar.AS112.Top.DNSSEC(ctx, dnssec, query) (*AS112TopDNSSECResponse, error)
GET/radar/as112/top/locations/dnssec/{dnssec}

Retrieves the top locations of DNS queries to AS112 with DNSSEC (DNS Security Extensions) support.

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

DNSSEC (DNS Security Extensions) status.

One of the following:
const AS112TopDNSSECParamsDNSSECSupported AS112TopDNSSECParamsDNSSEC = "SUPPORTED"
const AS112TopDNSSECParamsDNSSECNotSupported AS112TopDNSSECParamsDNSSEC = "NOT_SUPPORTED"
query AS112TopDNSSECParams
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[AS112TopDNSSECParamsFormat]Optional

Format in which results will be returned.

const AS112TopDNSSECParamsFormatJson AS112TopDNSSECParamsFormat = "JSON"
const AS112TopDNSSECParamsFormatCsv AS112TopDNSSECParamsFormat = "CSV"
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.

Name param.Field[[]string]Optional

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

ReturnsExpand Collapse
type AS112TopDNSSECResponse struct{…}
Meta AS112TopDNSSECResponseMeta

Metadata for the results.

ConfidenceInfo AS112TopDNSSECResponseMetaConfidenceInfo
Annotations []AS112TopDNSSECResponseMetaConfidenceInfoAnnotation
DataSource AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource

Data source for annotations.

One of the following:
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAll AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ALL"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIBots AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_BOTS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceAIGateway AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "AI_GATEWAY"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBGP AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BGP"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceBots AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "BOTS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceConnectionAnomaly AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CONNECTION_ANOMALY"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceCT AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "CT"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNS AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSMagnitude AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_MAGNITUDE"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDNSAS112 AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DNS_AS112"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceDos AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "DOS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailRouting AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_ROUTING"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceEmailSecurity AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "EMAIL_SECURITY"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFw AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceFwPg AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "FW_PG"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTP AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPControl AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CONTROL"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPCrawlerReferer AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_CRAWLER_REFERER"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceHTTPOrigins AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "HTTP_ORIGINS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceIQI AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "IQI"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceLeakedCredentials AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "LEAKED_CREDENTIALS"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceNet AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "NET"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceRobotsTXT AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "ROBOTS_TXT"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceSpeed AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "SPEED"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSourceWorkersAI AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsDataSource = "WORKERS_AI"
Description string
EndDate Time
formatdate-time
EventType AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType

Event type for annotations.

One of the following:
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeEvent AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "EVENT"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeGeneral AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "GENERAL"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeOutage AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "OUTAGE"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePartialProjection AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PARTIAL_PROJECTION"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypePipeline AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "PIPELINE"
const AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventTypeTrafficAnomaly AS112TopDNSSECResponseMetaConfidenceInfoAnnotationsEventType = "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 []AS112TopDNSSECResponseMetaDateRange
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 AS112TopDNSSECResponseMetaNormalization

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

One of the following:
const AS112TopDNSSECResponseMetaNormalizationPercentage AS112TopDNSSECResponseMetaNormalization = "PERCENTAGE"
const AS112TopDNSSECResponseMetaNormalizationMin0Max AS112TopDNSSECResponseMetaNormalization = "MIN0_MAX"
const AS112TopDNSSECResponseMetaNormalizationMinMax AS112TopDNSSECResponseMetaNormalization = "MIN_MAX"
const AS112TopDNSSECResponseMetaNormalizationRawValues AS112TopDNSSECResponseMetaNormalization = "RAW_VALUES"
const AS112TopDNSSECResponseMetaNormalizationPercentageChange AS112TopDNSSECResponseMetaNormalization = "PERCENTAGE_CHANGE"
const AS112TopDNSSECResponseMetaNormalizationRollingAverage AS112TopDNSSECResponseMetaNormalization = "ROLLING_AVERAGE"
const AS112TopDNSSECResponseMetaNormalizationOverlappedPercentage AS112TopDNSSECResponseMetaNormalization = "OVERLAPPED_PERCENTAGE"
const AS112TopDNSSECResponseMetaNormalizationRatio AS112TopDNSSECResponseMetaNormalization = "RATIO"
Units []AS112TopDNSSECResponseMetaUnit

Measurement units for the results.

Name string
Value string
Top0 []AS112TopDNSSECResponseTop0
ClientCountryAlpha2 string
ClientCountryName string
Value string

A numeric string.

Get top locations by AS112 DNS queries with DNSSEC support

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.AS112.Top.DNSSEC(
    context.TODO(),
    radar.AS112TopDNSSECParamsDNSSECSupported,
    radar.AS112TopDNSSECParams{

    },
  )
  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": [
      {
        "clientCountryAlpha2": "PT",
        "clientCountryName": "Portugal",
        "value": "10"
      }
    ]
  },
  "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": [
      {
        "clientCountryAlpha2": "PT",
        "clientCountryName": "Portugal",
        "value": "10"
      }
    ]
  },
  "success": true
}