API referenceConsumerConsumer.devices
Get_device_usage
Authorization
bearer_auth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Format
uuidQuery Parameters
days?integer
Format
int32Range
0 <= valueHeader Parameters
X-Project-Id*string
UUID of the project that scopes consumer accounts, devices, sessions, and VSpaces for the request.
Format
uuidResponse Body
application/json
application/json
curl -X GET "https://example.com/consumer/v1/devices/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage" \ -H "X-Project-Id: 11111111-1111-1111-1111-111111111111"{ "by_region": [ { "bytes": 0, "kind": "string", "region": "string" } ], "days": [ { "bytes_derp": 0, "bytes_direct": 0, "day": "string", "packets": 0 } ], "generated_at": "2019-08-24T14:15:22Z", "total_bytes_derp": 0, "total_bytes_direct": 0}{ "detail": "Pool slug must be unique.", "instance": "urn:forestvpn:trace:a1b2c3d4", "title": "Validation Error", "type": "https://fvpn.net/errors/validation"}