TritonDataCenter / node-smartdc

Legacy Client SDK and CLI for Triton Data Center
https://tritondatacenter.com/getting-started
MIT License
61 stars 42 forks source link

API Request: Pricing #22

Open evantahler opened 11 years ago

evantahler commented 11 years ago

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

evantahler commented 11 years ago

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

edef1c commented 11 years ago

Is there any progress on this?

evantahler commented 10 years ago

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 commented 10 years ago

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

xer0x commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

@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 commented 10 years ago

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

evantahler commented 10 years ago

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

ashleyschuett commented 8 years ago

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

misterbisson commented 8 years ago

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