Docs
api
Basic Network(UNet)
GetThroughputDailyBillingInfo

Retrieve daily traffic billing information for EIP - GetThroughputDailyBillingInfo

Overview

Retrieve daily traffic billing information for EIP

💡 When EIP uses bandwidth billing, it records the daily traffic as 0.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetThroughputDailyBillingInfo.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
EIPIdstringResource ID of EIPYes
StartTimeintQuery start time timestampYes
EndTimeintEnd time timestamp queryYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Statsarray[ThroughputDailyBillingInfo]EIP Traffic Billing Information, see model ThroughputDailyBillingInfoNo
TotalOutintTotal Billing TrafficNo
EIPIdstringResource IDNo

Data Model

ThroughputDailyBillingInfo

Field NameTypeDescription InformationRequired
StartTimeintBilling Start TimeNo
EndTimeintEnd of Billing PeriodNo
QuantityOutintBilling traffic, unit ‘GB’No
BillingStatestringIs it billed, ‘Yes’ or ‘No’No

Example

Request Example

https://api.dezai.com/?Action=GetThroughputDailyBillingInfo
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=AsxKOJdn
&EIPId=OcgPtYAG
&StartTime=6
&EndTime=5

Response Example

{
  "Action": "GetThroughputDailyBillingInfoResponse",
  "EIPId": "eJkOUbRj",
  "RetCode": 0,
  "Stats": [
    {
      "BillingState": "syykRjZm",
      "EndTime": 3,
      "QuantityOut": 8,
      "StartTime": 4
    }
  ],
  "TotalOut": 3,
  "TotalOutSize": "QCZguxjs"
}