account

Get monthly resource billing summary

Returns a billing summary for one resource during the specified month. The API user must have permission to read billing details.

get/1.3/account/resource_billing_summary/{resource_id}/{year}-{month}

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/account/resource_billing_summary/{resource_id}/{year}-{month}
  • Auth: HTTP bearer

Path parameters

resource_idstring required

Server UUID, storage UUID, or IP address.

yearstring required

Billing year.

monthstring required

Billing month.

Response

Monthly resource billing summary.

Example response

{
  "billing": {
    "daily_sums": {
      "2019-12-02": 3.33684,
      "2019-12-03": 52.77344,
      "2019-12-04": 1.07424,
      "2019-12-05": 1.07424,
      "2019-12-06": 1.07424,
      "2019-12-07": 1.07424,
      "2019-12-08": 1.07424,
      "2019-12-09": 1.07424,
      "2019-12-12": 3.22272,
      "2019-12-13": 0.58188
    },
    "details": {
      "hours": 792,
      "plan": "1xCPU-1GB",
      "resource_id": "00ce9363-9065-4c2a-9d66-3b0c762f556b",
      "title": "My Glorious Server",
      "type": "server",
      "zone": "fi-hel1"
    },
    "total_amount": 66.36032
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.