Docs
api
Global Dynamic Acceleration(PathX)
GetGlobalSSHTraffic

- GetGlobalSSHTraffic

Overview

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetGlobalSSHTraffic.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
ProjectIdstringYes
UGAIdstringYes
BeginTimeintYes
EndTimeintYes

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
UGAIdstringYes
DataSetarray[TrafficDaily]Yes
TrafficDailyRecentlyarray[TrafficDailyRecently]No

Data Model

TrafficDaily

Field NameTypeDescription InformationRequired
DateintDateYes
TrafficintTraffic (Unit GB)Yes
BillingStatestringYes: Fee Deducted, No: Fee Not DeductedYes

TrafficDailyRecently

Field NameTypeDescription InformationRequired
DaystringDateNo
TrafficUnitMBstringDaily Traffic (in MB)No
TrafficUnitGBstringDaily Traffic (Unit: GB)No

Example

Request Example

https://api.dezai.com/?Action=GetGlobalSSHTraffic
&ProjectId=org-xxxx
&UGAId=uga-usai7d
&BeginTime=1525017600
&EndTime=1526399999

Response Example

{
  "Action": "GetGlobalSSHTrafficResponse",
  "DataSet": [
    {
      "BillingState": "No",
      "Date": 1568304000,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568390400,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568476800,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568563200,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568649600,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568131200,
      "Traffic": 0
    },
    {
      "BillingState": "No",
      "Date": 1568217600,
      "Traffic": 0
    }
  ],
  "Message": "",
  "RetCode": 0,
  "TrafficDailyRecently": [
    {
      "Day": "uZZsUBmp",
      "TrafficUnitGB": "sJNgQpQk",
      "TrafficUnitMB": "lRVjQUCU"
    }
  ],
  "UGAId": "uga-usai7d"
}