Get a table of costs

What:
Is there a table of costs for resources accessible by API / JSON ?

There is this page of course: https://www.linode.com/pricing/

But I'd have to web scrape it, which isn't elegant.

Why:
I'm a sysadmin for an organization using linode. I don't have billing access - separation of duties - but I'd like to keep a rough tally of of the monthly cost as resources are spun up, turned off, etc.

I have in mind a script that can fire up daily, use linode-cli to tally my assets, query the table for costs, and store a running tally for the month.

Thanks,

4 Replies

For Linodes:
The api has the hourly cost and the monthly cap for each linode type along with similar values for the backups.

The account view in the api has balance_uninvoiced that shows the current running total (I'm not sure if this one shows to a limited account or not).

If you know the number of Linodes, which plans they’re on, and any extras like block storage, you could pretty much figure out the monthly bill.

Any Linode’s not running, but still on the account still get billed at the monthly rate.

Anything more detailed would probably require billing access.

@millisa Thanks! I'd missed this in the API

"price": {
"hourly": 0.008,
"monthly": 5

@LouWestin

Anything more detailed would probably require billing access.

Thanks for the input. I'm not looking to be super detailed, just have an idea of the cost without bugging the guy who has billing control.

@bdunbar NP. Also forgot to mention Linode backups too.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct