getCdnPlusUsageData
    • PDF

    getCdnPlusUsageData

    • PDF

    Article Summary

    Overview

    Views CDN instance usage data.

    Description

    Provides an API to view CDN instance usage information.

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    cdnInstanceNoList.NYesList<String>-List of CDN instance numbers
    startDateYesStringFormat is "yyyyMMdd."Search start date and time
    endDateYesStringFormat is "yyyyMMdd."Search end date and time

    Response data type

    • CdnPlusUsageData type
    CdnPlusUsageData extends CommonResponse
    private String startDate;
    private String endDate;
    private Long startDateEpoch;
    private Long endDateEpoch;
    private Long interval;
    private String bandwidthDataUnit;
    private List<List<Double>> bandwidthDataRecordList;
    private String volumeDataUnit;
    private List<List<Long>> volumeDataRecordList;
    private String requestDataUnit;
    private List<List<Long>> requestDataRecordList;
    private Double maxBandwidth;
    private Long totalVolume;
    private Long totalRequest;

    Examples

    Call

    ncloud cdn getCdnPlusUsageData --cdnInstanceNoList 456400 --startDate 20220320 --endDate 20220325
    

    Response

    {"getCdnPlusUsageDataResponse": {
      "requestId": "6eaf4f7f-011a-46a1-85f0-298c462f1df2",
      "returnCode": "0",
      "returnMessage": "success",
      "startDate": "20220320",
      "endDate": "20220325",
      "startDateEpoch": 1647702000000,
      "endDateEpoch": 1648134000000,
      "interval": 86400000,
      "bandwidthDataUnit": "Mbps",
      "bandwidthDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "volumeDataUnit": "byte",
      "volumeDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "requestDataUnit": "count",
      "requestDataRecordList": [
        [
          1647702000000,
          0
        ],
        [
          1647788400000,
          0
        ],
        [
          1647874800000,
          0
        ],
        [
          1647961200000,
          0
        ],
        [
          1648047600000,
          0
        ],
        [
          1648134000000,
          0
        ]
      ],
      "maxBandwidth": 0.0,
      "totalVolume": 0,
      "totalRequest": 0
    }}
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <getCdnPlusUsageDataResponse>
    <requestId>deeeafc0-9432-4cee-adf6-3e970cbb35c0</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <startDate>20220320</startDate>
    <endDate>20220325</endDate>
    <startDateEpoch>1647702000000</startDateEpoch>
    <endDateEpoch>1648134000000</endDateEpoch>
    <interval>86400000</interval>
    <bandwidthDataUnit>Mbps</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>
    

    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.