Path parameters

  • id integer Required

    VPS ID number

Responses

  • 200 application/json

    Get VPS Traffic usage

    Hide response attributes Show response attributes object
    • name string Required
    • target string Required
    • interval integer(int32) Required
    • history object Required

      VPS Traffic Data History Section

      Hide history attributes Show history attributes object
      • hour array[object] Required

        VPS Traffic History Hour and Day Sections

        Hide hour attributes Show hour attributes object
        • data array[array] Required

          VPS Traffic Hisotrty Data Row of Hour/Day Section

          VPS Traffic Hisotrty Data Row of Hour/Day Section

        • times array[string(date-time)] Required
      • day array[object] Required

        VPS Traffic History Hour and Day Sections

        Hide day attributes Show day attributes object
        • data array[array] Required

          VPS Traffic Hisotrty Data Row of Hour/Day Section

          VPS Traffic Hisotrty Data Row of Hour/Day Section

        • times array[string(date-time)] Required
    • last string(date-time) Required
    • times array[string(date-time)] Required
    • totals object Required

      VPS Traffic Totals Section

      Hide totals attributes Show totals attributes object
      • day object Required

        VPS Traffic Totals Secttions Data

        Hide day attributes Show day attributes object
        • in integer(int32) Required
        • out integer(int32) Required
      • month object Required

        VPS Traffic Totals Secttions Data

        Hide month attributes Show month attributes object
        • in integer(int32) Required
        • out integer(int32) Required
      • year object Required

        VPS Traffic Totals Secttions Data

        Hide year attributes Show year attributes object
        • in integer(int32) Required
        • out integer(int32) Required
      • all object Required

        VPS Traffic Totals Secttions Data

        Hide all attributes Show all attributes object
        • in integer(int32) Required
        • out integer(int32) Required
    • usage object Required

      VPS Traffic Usage Section

      Hide usage attributes Show usage attributes object
      • current object Required

        VPS Traffic Totals Secttions Data

        Hide current attributes Show current attributes object
        • in integer(int32) Required
        • out integer(int32) Required
      • peak object Required

        VPS Traffic Totals Secttions Data

        Hide peak attributes Show peak attributes object
        • in integer(int32) Required
        • out integer(int32) Required
      • average object Required

        VPS Traffic Usage Average Section

        Hide average attributes Show average attributes object
        • in object Required

          VPS Traffic Usage Average Section Response

          Hide in attributes Show in attributes object
          • total integer(int32) Required
          • count integer(int32) Required
          • value integer(int32) Required
        • out object Required

          VPS Traffic Usage Average Section Response

          Hide out attributes Show out attributes object
          • total integer(int32) Required
          • count integer(int32) Required
          • value integer(int32) Required
    • data array[object] Required

      VPS Traffic Data Section Response

      Hide data attributes Show data attributes object
      • name string Required
      • data array[array] Required

        VPS Traffic Data section Data subsection response

        VPS Traffic Data section Data subsection Row Response

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
GET /vps/{id}/traffic_usage
curl \
 --request GET 'https://my.interserver.net/apiv2/vps/{id}/traffic_usage' \
 --header "X-API-KEY: $API_KEY"
Response examples (200)
{
  "data": [
    {
      "data": [
        [
          "2023-09-17T03:30:30Z",
          3968
        ],
        [
          "2023-09-17T03:31:30Z",
          840
        ],
        [
          "2023-09-17T03:32:31Z",
          632
        ],
        [
          "2023-09-17T03:33:31Z",
          1232
        ],
        [
          "2023-09-17T03:34:31Z",
          2960
        ],
        [
          "2023-09-17T07:50:12Z",
          5504
        ]
      ],
      "name": "74.50.91.46 In"
    },
    {
      "data": [
        [
          "2023-09-17T03:30:30Z",
          456
        ],
        [
          "2023-09-17T03:31:30Z",
          472
        ],
        [
          "2023-09-17T03:48:30Z",
          592
        ]
      ],
      "name": "74.50.91.46 Out"
    }
  ],
  "last": "2023-09-17T07:50:12Z",
  "name": "vps2725349",
  "times": [
    "2023-09-17T03:30:30Z",
    "2023-09-17T03:31:30Z",
    "2023-09-17T03:32:31Z",
    "2023-09-17T03:33:31Z",
    "2023-09-17T04:12:30Z",
    "2023-09-17T04:13:31Z",
    "2023-09-17T04:14:30Z",
    "2023-09-17T04:15:30Z",
    "2023-09-17T04:16:31Z",
    "2023-09-17T04:17:30Z",
    "2023-09-17T04:18:31Z",
    "2023-09-17T04:19:30Z",
    "2023-09-17T04:20:30Z",
    "2023-09-17T04:21:30Z",
    "2023-09-17T04:22:31Z",
    "2023-09-17T07:50:12Z"
  ],
  "usage": {
    "peak": {
      "in": 9176,
      "out": 3600
    },
    "average": {
      "in": {
        "count": 261,
        "total": 949688,
        "value": 3639
      },
      "out": {
        "count": 261,
        "total": 200752,
        "value": 770
      }
    },
    "current": {
      "in": 5504,
      "out": 1248
    }
  },
  "target": "2725349",
  "totals": {
    "all": {
      "in": 2880512936,
      "out": 380333384
    },
    "day": {
      "in": 49719744,
      "out": 11316104
    },
    "year": {
      "in": 2880512936,
      "out": 380333384
    },
    "month": {
      "in": 2880512936,
      "out": 380333384
    }
  },
  "history": {
    "day": {
      "data": [
        [
          "2023-09-12T00:00:00Z",
          1455497448
        ],
        [
          "2023-09-13T00:00:00Z",
          182943992
        ],
        [
          "2023-09-14T00:00:00Z",
          290416056
        ],
        [
          "2023-09-15T00:00:00Z",
          440595840
        ],
        [
          "2023-09-16T00:00:00Z",
          411255120
        ],
        [
          "2023-09-17T00:00:00Z",
          346449520
        ]
      ],
      "times": [
        "2023-09-12T00:00:00Z",
        "2023-09-13T00:00:00Z",
        "2023-09-14T00:00:00Z",
        "2023-09-15T00:00:00Z",
        "2023-09-16T00:00:00Z",
        "2023-09-17T00:00:00Z"
      ]
    },
    "hour": {
      "data": [
        [
          "2023-09-11T12:00:00Z",
          834424
        ],
        [
          "2023-09-11T23:00:00Z",
          8247944
        ],
        [
          "2023-09-14T05:00:00Z",
          19763064
        ],
        [
          "2023-09-14T06:00:00Z",
          18892320
        ],
        [
          "2023-09-17T07:00:00Z",
          16546448
        ]
      ],
      "times": [
        "2023-09-12T02:00:00Z",
        "2023-09-17T05:00:00Z",
        "2023-09-17T06:00:00Z",
        "2023-09-17T07:00:00Z"
      ]
    }
  },
  "interval": 30
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}