getCdnPlusUsageData
    • PDF

    getCdnPlusUsageData

    • PDF

    Article Summary

    概要

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

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    cdnInstanceNoList.NYesList<String>CDNのインスタンス番号リスト
    cdnInstanceNoList.1=2323
    startDateYesString形式はyyyyMMdd照会開始日時
    endDateYesString形式はyyyyMMdd照会終了日時
    regionNoNoStringリージョン番号:作成しない場合、デフォルトはKRリージョン
    responseFormatTypeNoStringJSONまたはXMLレスポンスタイプ

    レスポンス

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

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

    属性

    項目必須タイプ説明
    startDateNoString照会開始日時「yyyyMMdd」
    endDateNoString照会終了日時「yyyyMMdd」
    startDateEpochNoLong照会開始日時EpochTime
    endDateEpochNoLong照会終了日時EpochTime
    intervalNoLongレスポンスデータのAggregation時間情報
    2日以内:5分
    2日超過-1週間以内:30分
    1週間超過-1か月以内:2時間
    1か月超過-3か月以内:6時間
    bandwidthDataUnitNoStringトラフィックの単位(bps)
    bandwidthDataRecordListNoList<List<Double>>トラフィックデータリスト
    volumeDataUnitNoString転送量の単位(Byte)
    volumeDataRecordListNoList<List<Long>>転送量データリスト
    requestDataUnitNoLongリクエスト数の単位(件数)
    requestDataRecordListNoList<List<Long>>リクエスト数データリスト
    maxBandwidthNoDouble期間内の最大Edgeトラフィック
    totalVolumeNoLong期間内の総転送量
    totalRequestNoLong期間内の総リクエスト数

    リクエスト例

    https://ncloud.apigw.ntruss.com/cdn/v2/getCdnPlusUsageData?cdnInstanceNoList.1=1234&endDate=20220325&startDate=20220320&responseFormatType=XML
    

    レスポンス例

    <?xml version="1.0" encoding="UTF-8"?>
    <getCdnPlusUsageDataResponse>
    <requestId>bfe70938-807b-4fa2-8f20-16085fd2743b</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <startDate>20220320</startDate>
    <endDate>20220325</endDate>
    <startDateEpoch>1647702000000</startDateEpoch>
    <endDateEpoch>1648134000000</endDateEpoch>
    <interval>86400000</interval>
    <bandwidthDataUnit>bps</bandwidthDataUnit>
    <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>
    <int>0</int>
    </list>
    </bandwidthDataRecordList>
    <volumeDataUnit>byte</volumeDataUnit>
    <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>0</int>
    </list>
    </volumeDataRecordList>
    <requestDataUnit>count</requestDataUnit>
    <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>0</int>
    </list>
    </requestDataRecordList>
    <maxBandwidth>0.0</maxBandwidth>
    <totalVolume>0</totalVolume>
    <totalRequest>0</totalRequest>
    </getCdnPlusUsageDataResponse>
    

    エラーコード

    エラーコード説明
    29200Invalid CDN rule.
    29201Can not operate this CDN service. Please check status.
    29202Invalid CDN purge request.
    29203Invalid CDN service domain type code.
    29204Invalid CDN instance.
    29205Unable to control the CDN service because this CDN service is for Live Transcoder.
    29211An error occurred while creating CDN service.
    29215This CDN service can not request purge with partial domains.
    29216Invalid CDN service domain.
    29209The certificate can not register for CDN.
    29217Please enter target file list or directory.
    29218Please select target service domains.
    29221Unable to control the CDN service because this CDN service is for Image Optimizer.
    29222Invalid image optimizer instance number.
    29223Cache Key Hostname can not be set Origin Hostname if there is only one service domain.
    29224Cache Key Hostname can not be set Origin Hostname if use CDN domain.

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

    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.