getCdnPlusUsageData
    • PDF

    getCdnPlusUsageData

    • PDF

    記事の要約

    概要

    CDNインスタンスの使用量データを照会

    説明

    CDNインスタンスの使用量情報を照会する APIを提供します。

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    cdnInstanceNoList.NYesList<String>-CDNインスタンスの番号リスト
    startDateYesString形式は「yyyyMMdd」照会開始日時
    endDateYesString形式は「yyyyMMdd」照会終了日時

    レスポンスデータのタイプ

    • CdnPlusUsageDataのタイプ
    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;

    呼び出し

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

    レスポンス

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

    この記事は役に立ちましたか?
    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.