Public cloud

List project resource usage

GET
/api/cloud/project/{project_uuid}/resource-usage/

Returns hourly metered Public Cloud usage for the project (newest first), with optional date filters and pagination. Only the project owner (superadmin) can access this endpoint. total_cost_pln is the sum of OK hours in the filtered range.

Authorization

bearerAuth
AuthorizationBearer <token>

API key created in the portal (Settings → API Keys). Send as Authorization: Bearer <key>.

In: header

Path Parameters

project_uuid*string

Project UUID.

Query Parameters

end?string

Inclusive end date (YYYY-MM-DD). Defaults to start when only start is set.

limit?integer

Page size (default 100, max 500).

offset?integer

Number of hours to skip (default 0).

start?string

Inclusive start date (YYYY-MM-DD). Defaults to end when only end is set.

Response Body

application/json

curl -X GET "https://example.com/api/cloud/project/string/resource-usage/"
[  {    "count": 0,    "limit": 0,    "offset": 0,    "results": [      {        "hour_start": "2019-08-24T14:15:22Z",        "status": "ok",        "error_message": "string",        "vcore_on": 0,        "vcore_50": 0,        "vcore_25": 0,        "vcore_off": 0,        "ram_on_gib": 0,        "ram_off_gib": 0,        "storage_fast_bytes": 0,        "private_network_tags_count": 0,        "private_network_external_vlan_count": 0,        "cloud_gateway_standard_count": 0,        "public_ip_count": 0,        "backup_disk_bytes": 0,        "total_cost_pln": "string"      }    ],    "total_cost_pln": "string"  }]