(Available from version 1.8) This operation returns CDN usage details for the account related to the JSON web token used for API authentication. Defaults: from = last billing date, to = end of current day.
Success
object (account) Data for the account. | |
object The query parameters applied to the request. |
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/usage/accounts"
{- "account": {
- "id": "rfP7rDv2",
- "viewing_seconds": 44925498,
- "avg_viewing_seconds": 2634,
- "viewing_bytes": 22886,
- "egress_seconds": 49549,
- "egress_seconds_additional_targets": 345,
- "egress_bytes": 7066810,
- "trend": [
- {
- "sampled_at": "2019-10-01T08:00:00.000Z",
- "viewing_seconds": 45,
- "viewing_bytes": 20
}
]
}, - "limits": {
- "resources": [
- "transcoders",
- "vod_streams"
], - "from": "2021-01-07T00:00:00.000Z",
- "to": "2021-10-05T00:00:00.000Z"
}
}