DescribeDcdnDomainTopUrlVisit - 查询热门URL列表

调用DescribeDcdnDomainTopUrlVisit获取加速域名某天内的热门URL列表。

接口说明

说明

最多可获取近 7 天的数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

dcdn:DescribeDcdnDomainTopUrlVisit

get

*domain

acs:dcdn:*:{#accountId}:domain/{#domainName}

请求参数

名称

类型

必填

描述

示例值

DomainName

string

加速域名,只支持传入一个域名。

example.com

StartTime

string

开始获取数据的时间点。

日期格式按照 ISO8601 表示法,并使用 UTC 时间,格式为:YYYY-MM-DDThh:mm:ssZ。

如果需要查询某天的数据,建议传入:YYYY-MM-DDT16:00:00Z。

说明

不传该参数默认读取过去 24 小时的数据。

2018-10-03T16:00:00Z

SortBy

string

排序方式。取值:

  • traf:流量。

  • pv:访问次数。

默认值为 pv

pv

返回参数

名称

类型

描述

示例值

object

StartTime

string

查询指定日期。

2018-10-03T16:00:00Z

RequestId

string

请求 ID。

64D28B53-5902-409B-94F6-FD46680144FE

DomainName

string

加速域名。

example.com

AllUrlList

object

UrlList

array<object>

全部热门 URL 列表。

object

Flow

string

流量。单位:byte。

460486880

UrlDetail

string

完整的 URL 地址。

http://example.com/nn_live/nn_x64/a0.m3u8

FlowProportion

number

流量占比。

0.35

VisitData

string

访问次数。

161673

VisitProportion

number

访问占比。

0.35

Url200List

object

UrlList

array<object>

返回为 2xx 的 URL 列表。

object

Flow

string

流量。单位:byte。

460486880

UrlDetail

string

完整的 URL 地址。

http://example.com/nn_live/nn_x64/a0.m3u8

FlowProportion

number

流量占比。

0.35

VisitData

string

访问次数。

161673

VisitProportion

number

访问占比。

0.35

Url300List

object

UrlList

array<object>

返回为 3xx 的 URL 列表。

object

Flow

string

流量。单位:byte。

460486880

UrlDetail

string

完整的 URL 地址。

http://example.com/nn_live/nn_x64/a0.m3u8

FlowProportion

number

流量占比。

0.35

VisitData

string

访问次数。

161673

VisitProportion

number

访问占比。

0.35

Url400List

object

UrlList

array<object>

返回为 4xx 的 URL 列表。

object

Flow

string

流量。单位:byte。

460486880

UrlDetail

string

完整的 URL 地址。

http://example.com/nn_live/nn_x64/a0.m3u8

FlowProportion

number

流量占比。

0.35

VisitData

string

访问次数。

161673

VisitProportion

number

访问占比。

0.35

Url500List

object

UrlList

array<object>

返回为 5xx 的 URL 列表。

object

Flow

string

流量。单位:byte。

460486880

UrlDetail

string

完整的 URL 地址。

http://example.com/nn_live/nn_x64/a0.m3u8

FlowProportion

number

流量占比。

0.35

VisitData

string

访问次数。

161673

VisitProportion

number

访问占比。

0.35

示例

正常返回示例

JSON格式

{
  "StartTime": "2018-10-03T16:00:00Z",
  "RequestId": "64D28B53-5902-409B-94F6-FD46680144FE",
  "DomainName": "example.com",
  "AllUrlList": {
    "UrlList": [
      {
        "Flow": "460486880",
        "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
        "FlowProportion": 0.35,
        "VisitData": "161673",
        "VisitProportion": 0.35
      }
    ]
  },
  "Url200List": {
    "UrlList": [
      {
        "Flow": "460486880",
        "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
        "FlowProportion": 0.35,
        "VisitData": "161673",
        "VisitProportion": 0.35
      }
    ]
  },
  "Url300List": {
    "UrlList": [
      {
        "Flow": "460486880",
        "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
        "FlowProportion": 0.35,
        "VisitData": "161673",
        "VisitProportion": 0.35
      }
    ]
  },
  "Url400List": {
    "UrlList": [
      {
        "Flow": "460486880",
        "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
        "FlowProportion": 0.35,
        "VisitData": "161673",
        "VisitProportion": 0.35
      }
    ]
  },
  "Url500List": {
    "UrlList": [
      {
        "Flow": "460486880",
        "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
        "FlowProportion": 0.35,
        "VisitData": "161673",
        "VisitProportion": 0.35
      }
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. 请提供正确的开始时间格式。日期格式按照ISO8601表示法,并使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ。
400 InvalidEndTime.Malformed The specified EndTime is invalid. 请提供正确的结束时间格式。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:yyyy-MM-ddTHH:mm:ssZ。
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. 不支持该开始时间,请重新填写。
400 MissingTimeParameter The StartTime and EndTime must be both specified. 请同时提供开始时间和结束时间。
400 InvalidDomainName.Malformed The specified DomainName is invalid. 域名格式错误。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情