By Marco Pedota
I would like to get the data of the outgoing traffic used for a space, to be able to notify the current use and the extra cost in a web page available to the customer. Can I do it via API?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Greetings!
I wish that I had a way for you to do that in such an easily automated way, and perhaps that may happen in future iterations. Currently the only way to determine this is to check the usage/invoices here:
https://cloud.digitalocean.com/settings/billing
Jarland
Thanks for the reply. Since I resell the service, applying a markup to the cost I pay to DO, I am developing a panel where I can show the excess traffic and therefore the current monthly price, including my mark-up. So obviously I can’t show the customer the invoice page of the DO account (which among other things shows me my other services, droplets, etc.). Moreover, in the page you link I see the traffic of the droplets, and not that of the spaces
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.