Open evantahler opened 11 years ago
Hey Evan, that's pretty cool. We used to have a hidden API call to get the prices. I'll let you know if/when it is available again.
Thanks! An alternative approach would be to add that metadata to sdc-listmachines
. Either way!
Is there any progress on this?
With no progress on an official pricing API, I'm considering changing smartdc-cost to be a scraper for joyent's public pricing page. Thoughts?
Evan
There is an internal JIRA filed for you and other customers that have requested this feature(s).
Would wait for the Joyent product manager to respond on feature requests
On Wed, Dec 4, 2013 at 2:00 PM, Evan Tahler notifications@github.comwrote:
With no progress on an official pricing API, I'm considering changing smartdc-cost to be a scraper for joyent's public pricing pagehttp://www.joyent.com/products/compute-service/pricing. Thoughts?
— Reply to this email directly or view it on GitHubhttps://github.com/joyent/node-smartdc/issues/22#issuecomment-29850198 .
Peter Yorke Joyent Cloud / node.js pyorke@joyent.com www.joyentcloud.com
Evan a scraper seems like a good idea. I'd love to see pricing metadata in sdc-listmachines
but I don't expect that to happen soon.
FYI, the website has a .json file that it renders client-side. NB: that the public catalog on the front web page only lists the most common types.
@xer0x @benzenwen it looks like @joyent is working on this, so I'd rather wait for a supported API from them.
@peteryorke do you have a rough ETA?
Hi Evan
Here are the urls that power the joyent.com web grid.
http://www.joyent.com/assets/js/pricing.json
http://www.joyent.com/assets/js/pricing-images.json
Note that they are not comprehensive, they get updated sporadically, format, availability, etc are subject to change without notice.
I'm still working with Product Management on when this type of functionality can be in the API
Peter
On Mon, Dec 9, 2013 at 9:00 PM, Evan Tahler notifications@github.comwrote:
@xer0x https://github.com/xer0x @benzenwenhttps://github.com/benzenwenit looks like @joyent https://github.com/joyent is working on this, so I'd rather wait for a supported API from them.
@peteryorke https://github.com/peteryorke do you have a rough ETA?
— Reply to this email directly or view it on GitHubhttps://github.com/joyent/node-smartdc/issues/22#issuecomment-30199776 .
Peter Yorke Joyent Cloud / node.js pyorke@joyent.com www.joyentcloud.com
Thanks @peteryorke!
For now, I've updated smartdc-cost to use the pricing.json
endpoint with https://github.com/evantahler/smartdc-cost/pull/5.
I'm keeping around a list of costs for some of the older machine images, but I'll always replace any value saved there with that returned by pricing.json
Hey, looks like this hasn't been updated in a few years. Is this still in progress, or is this feature request dead?
@ashleyschuett this doesn't answer your question, but node-smartdc is now all but deprecated in favor of node-triton, and my guess is that we actually want the pricing data to be included in instances packages from cloudapi, rather than assembled client-side in either node-smartdc or node-triton.
As you can see, your question made me realize that there's some issue pruning to be done in this repo, but it also reminds me of this not-too-uncommon request for pricing data. Thank you.
Hi Joyent!
I woud like to request a
sdc-listprices
API call which would return the cost per hour of the various services you offer.In the interim, I've cobbled tougher a new method:
sdc-listmachines-cost
which returns the list if servers I currently have running and what they cost. You can see that I'm currently relying on a static list of prices [[ https://github.com/evantahler/smartdc-cost/blob/master/lib/prices.js ]], and having an accurate list from the source would be appreciated.Github: https://github.com/evantahler/smartdc-cost NPM: https://npmjs.org/package/smartdc-cost