getGlobalCdnUsageData
    • PDF

    getGlobalCdnUsageData

    • PDF

    Article Summary

    概要

    Global CDNの使用量データを照会します。

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    cdnInstanceNoList.NYesList<String>CDNのインスタンス番号リスト
    cdnInstanceNoList.1=2323
    startDateYesString形式はyyyyMMddHH照会開始日時
    endDateYesString形式はyyyyMMddHH照会終了日時
    responseFormatTypeNoStringJSONまたはXMLレスポンスタイプ

    レスポンス

    すべてのレスポンスは、HTTPステータスコードで成功または失敗を返します。

    HTTPステータスコードコードのメッセージ説明
    200Success照会成功
    401Unauthorized認証失敗
    500Internal Server Errorサーバエラー

    属性

    項目必須タイプ説明
    startDateNoString照会開始日時「yyyyMMddHH」
    endDateNoString照会終了日時「yyyyMMddHH」
    aggregationNoLong応答データのAgregation時間情報 (sec)
    bandwidthDataUnitNoStringトラフィックの単位(bps)
    bandwidthDataRecordListNoList<List<Double>>トラフィックデータリスト
    volumeDataUnitNoString転送量の単位(Byte)
    volumeDataRecordListNoList<List<Long>>転送量データリスト
    requestDataUnitNoLongリクエスト数の単位(件数)
    requestDataRecordListNoList<List<Long>>リクエスト数データリスト
    pointStartNoLong照会開始時間
    pointIntervalNoLong応答データのAgregation時間情報 (millisec)
    maxBandwidthNoDouble期間内の最大Edgeトラフィック
    totalVolumeNoLong期間内の総転送量
    totalRequestNoLong期間内の総リクエスト数

    リクエスト例

    https://ncloud.apigw.ntruss.com/cdn/v2/getGlobalCdnUsageData?cdnInstanceNoList.1=1234&endDate=2022032600&startDate=2022032000&responseFormatType=XML
    

    レスポンス例

    <getGlobalCdnUsageDataResponse>
    <requestId>e6b23362-b742-4640-b536-a1b30d3b2f04</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <startDate>2022032000</startDate>
    <endDate>2022032600</endDate>
    <aggregation>86400</aggregation>
    <volumeDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <int>5373083</int>
    </list>
    <list>
    <long>1648220400000</long>
    <int>0</int>
    </list>
    </volumeDataRecordList>
    <requestDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <int>25</int>
    </list>
    <list>
    <long>1648220400000</long>
    <int>0</int>
    </list>
    </requestDataRecordList>
    <bandwidthDataRecordList>
    <list>
    <long>1647702000000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647788400000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647874800000</long>
    <int>0</int>
    </list>
    <list>
    <long>1647961200000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648047600000</long>
    <int>0</int>
    </list>
    <list>
    <long>1648134000000</long>
    <double>0.0030166777777777777</double>
    </list>
    <list>
    <long>1648220400000</long>
    <int>0</int>
    </list>
    </bandwidthDataRecordList>
    <volumeDataUnit>bytes</volumeDataUnit>
    <requestDataUnit>count</requestDataUnit>
    <bandwidthDataUnit>bps</bandwidthDataUnit>
    <pointStart>1647702000000</pointStart>
    <pointInterval>86400000</pointInterval>
    <maxBandwidth>0.006033355555555555</maxBandwidth>
    <totalVolume>5373083</totalVolume>
    <totalRequest>25</totalRequest>
    </getGlobalCdnUsageDataResponse>
    

    エラーコード

    エラーコード説明
    29100Invalid Global CDN rule format.
    29101Can not operate this Global CDN service. Please check status.
    29102Invalid Global CDN purge request.
    29103Invalid Global CDN service domain type code.
    29104Please enter Forward Host Header.
    29105Invalid Origin server.
    29106Invalid Origin server ports.
    29107Invalid Origin File Storage.
    29108Please enter Referrer Domain.
    29109Invalid service name.
    29110Please enter service domain.
    29111Invalid service domain.
    29112Invalid Global CDN instance.
    29113Only HTTP protocol is allowed when Origin is File Storage.
    29114This domain can not set as origin.
    29115For HTTPS protocol, only CDN domain can be set.
    29116An error occurred in purge request.
    29117Invalid origin path.
    29118Invalid referrer domain.
    29119Invalid rule for access log.
    29120Invalid Forward Host Header.
    29121Referrer Domains can be added up to 50.
    29122Can not request purge for the CDN service. Please check status.
    29123The purge function can only be used after about 3 hours after the creation request is made.
    29124There is an error in the service domain name entered during the purge request.

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.