Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Request: Pricing #22

Open
evantahler opened this issue Dec 17, 2012 · 12 comments
Open

API Request: Pricing #22

evantahler opened this issue Dec 17, 2012 · 12 comments

Comments

@evantahler
Copy link

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

@xer0x
Copy link

xer0x commented Dec 23, 2012

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.

@evantahler
Copy link
Author

Thanks! An alternative approach would be to add that metadata to sdc-listmachines. Either way!

@edef1c
Copy link

edef1c commented Aug 17, 2013

Is there any progress on this?

@evantahler
Copy link
Author

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?

@peteryorke
Copy link

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 [email protected]:

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//issues/22#issuecomment-29850198
.

Peter Yorke
Joyent Cloud / node.js
[email protected]
www.joyentcloud.com

@xer0x
Copy link

xer0x commented Dec 5, 2013

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.

@benzenwen
Copy link

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.

@evantahler
Copy link
Author

@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?

@peteryorke
Copy link

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 [email protected]:

@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//issues/22#issuecomment-30199776
.

Peter Yorke
Joyent Cloud / node.js
[email protected]
www.joyentcloud.com

@evantahler
Copy link
Author

Thanks @peteryorke!

For now, I've updated smartdc-cost to use the pricing.json endpoint with evantahler/smartdc-cost#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

@ashleyschuett
Copy link

Hey, looks like this hasn't been updated in a few years. Is this still in progress, or is this feature request dead?

@misterbisson
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants