getGlobalCdnUsageData
    • PDF

    getGlobalCdnUsageData

    • PDF

    Article summary

    Overview

    Searches the Global CDN usage data.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    cdnInstanceNoList.NYesList<String>CDN instance number list
    cdnInstanceNoList.1=2323
    startDateYesStringFormat is "yyyyMMdd."Search start date and time
    endDateYesStringFormat is "yyyyMMdd."Search end date and time
    regionNoNoStringRegion number: When it's not filled out, the KR region is the default.
    responseFormatTypeNoStringJSON or XMLResponse type

    Response

    Every response returns success or failure with an HTTP status code.

    HTTP status codeCode messageDescription
    200SuccessSearch succeeded
    401UnauthorizedAuthentication failed
    500Internal Server ErrorServer error

    Property

    ItemRequirement statusTypeDescription
    startDateNoStringSearch start date and time "yyyyMMddHH"
    endDateNoStringSearch end date and time "yyyyMMddHH"
    aggregationNoLongAggregation time information of response data (sec)
    bandwidthDataUnitNoStringTraffic unit (bps)
    bandwidthDataRecordListNoList<List<Double>>Traffic data list
    volumeDataUnitNoStringTransmission unit (byte)
    volumeDataRecordListNoList<List<Long>>Transmission data list
    requestDataUnitNoLongRequest count unit (count)
    requestDataRecordListNoList<List<Long>>Request count data list
    pointStartNoLongSearch start time
    pointIntervalNoLongAggregation time information of response data (millisec)
    maxBandwidthNoDoubleMaximum edge traffic within the period
    totalVolumeNoLongTotal transmission within the period
    totalRequestNoLongTotal number of requests within the period

    Examples

    Request examples

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

    Response examples

    <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>
    

    Error codes

    Error CodeDescription
    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.

    Was this article helpful?

    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.