閱讀803 返回首頁    go 新東方


查詢熱門URL__資源監控接口_API 手冊_CDN-阿裏雲

描述

獲取加速域名某天內的熱門URL列表

不指定StartTime,默認讀取前一天的數據。

  • 隻支持一個域名,或當前用戶下所有域名
  • 最多可獲取最近90天的數據

請求參數

參數 類型 必要 描述
Action String 操作接口名,係統規定參數
取值:DescribeDomainTopUrlVisit
DomainName String 隻支持一個域名,若參數為空,默認返回所有加速域名合並後數據
StartTime String 獲取數據起始時間點,日期格式按照ISO8601表示法,並使用UTC時間。
格式為:YYYY-MM-DD
, 不寫默認讀取前一天的數據

返回參數

名稱 類型 描述
RequestId String 請求ID
DomainName String 加速域名信息
StartTime String 查詢指定日期
AllUrlList UrlList[] 全部熱門URLlist
Url200List UrlList[] 返回為2xx的Urllist
Url300List UrlList[] 返回為3xx的Urllist
Url400List UrlList[] 返回為4xx的Urllist
Url500List UrlList[] 返回為5xx的Urllist

UrlList

名稱 類型 描述
UrlDetail String 完整的Url地址
VisitData String 訪問次數

特殊錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
Throttling Request was denied due to request throttling. 503 請求被流量控製限製
IllegalOperation Illegal domain, operation is not permitted. 403 非法域名, 無法操作
OperationDenied Your account does not open CDN service yet. 403 未開通CDN服務
OperationDenied Your CDN service is suspended. 403 CDN服務已被停止
InvalidDomain.NotFound The domain provided does not belong to you. 404 域名不存在或不屬於當前用戶
InvalidDomain.Offline The domain provided is offline. 404 域名已下線
ServiceBusy The specified Domain is configuring, please retry later. 403 域名正在配置中, 請稍後再試
InvalidDomain.Configure_failed Failed to configure the provided domain. 500 域名配置失敗
MissingParameter The specified value of parameter StartTime is not valid. 400 缺少StartTime參數
InvalidStartTime.Malformed Specified start time is malformed. 400 StartTime格式錯誤
InvalidStartTime.ValueNotSupported Specified end time does not math the specified start time. 400 當前時間和StartTime差值超過90天

示例

請求示例:

https://cdn.aliyuncs.com?Action=DescribeDomainTopUrlVisit&DomainName=test.com
&StartTime=2015-12-03
&<公共請求參數>

返回示例:

JSON格式

{
    "Url300List": {
        "TopUrlVisitModel": []
    },
    "AllUrlList": {
        "UrlList": [
            {
                "VisitData": "161673",
                "UrlDetail": "https://test.com/nn_live/nn_x64/a0.m3u8"
            },
            {
                "VisitData": "37",
                "UrlDetail": "https://test.com/nn_live/nn_x64/ZXg9MQ,,/HNJSMPP360.ts"
            }                      
        ]
    },
    "Url400List": {
        "UrlList": [
            {
                "VisitData": "1884",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUhbGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8"
            },
            {
                "VisitData": "1",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SEEwODgmpbmRleZPTE,/HNJSMPP360.ts"
            }           
        ]
    },
    "RequestId": "64D28B53-5902-409B-94F6-FD46680144FE",
    "DomainName": "test.com",
    "Url200List": {
        "UrlList": [
            {
                "VisitData": "161673",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SE5KU0bGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8"
            },
            {
                "VisitData": "3",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDMlPTIwMTxMDk5ZXg9MQ,,/HNJSMPP360.ts"
            }
        ]
    },
    "StartTime": "2015-12-03",
    "Url500List": {
        "UrlList": [
            {
                "VisitData": "161673",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8"
            },           
            {
                "VisitData": "3",
                "UrlDetail": "https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDZXg9MQ,,/HNJSMPP360.ts"
            }
        ]
    }
}

XML格式:

<DescribeDomainTopUrlVisitResponse>
    <Url300List></Url300List>
    <AllUrlList>
        <UrlList>
            <VisitData>161673</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
        </UrlList>
        <UrlList>
            <VisitData>37</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/ZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
        </UrlList>
    </AllUrlList>
    <Url400List>
        <UrlList>
            <VisitData>1884</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUhbGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
        </UrlList>
        <UrlList>
            <VisitData>1</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SEEwODgmpbmRleZPTE,/HNJSMPP360.ts</UrlDetail>
        </UrlList>
    </Url400List>
    <RequestId>64D28B53-5902-409B-94F6-FD46680144FE</RequestId>
    <DomainName>test.com</DomainName>
    <Url200List>
        <UrlList>
            <VisitData>161673</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SE5KU0bGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
        </UrlList>
        <UrlList>
            <VisitData>3</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDMlPTIwMTxMDk5ZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
        </UrlList>
    </Url200List>
    <StartTime>2015-12-03</StartTime>
    <Url500List>
        <UrlList>
            <VisitData>161673</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
        </UrlList>
        <UrlList>
            <VisitData>3</VisitData>
            <UrlDetail>https://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
        </UrlList>
    </Url500List>
</DescribeDomainTopUrlVisitResponse>

最後更新:2016-11-23 17:16:03

  上一篇:go 運營商占比__資源監控接口_API 手冊_CDN-阿裏雲
  下一篇:go 查詢熱門Refer__資源監控接口_API 手冊_CDN-阿裏雲