Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 06, 2010 6:27 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
The PlanID parameter for avail.linodeplans() isn't working as advertised.

https://api.linode.com/api/?api_key=wou ... s&PlanID=1

Code:
{"ERRORARRAY":[],"ACTION":"avail.linodeplans","DATA":[{"AVAIL":{"7":65,"2":18,"3":23,"4":44,"6":50},"DISK":16,"PRICE":19.95,"PLANID":1,"LABEL":"Linode 512","RAM":512,"XFER":200},{"AVAIL":{"7":50,"2":45,"3":51,"4":45,"6":53},"DISK":24,"PRICE":29.95,"PLANID":2,"LABEL":"Linode 768","RAM":768,"XFER":300},{"AVAIL":{"7":31,"2":29,"3":34,"4":22,"6":25},"DISK":32,"PRICE":39.95,"PLANID":3,"LABEL":"Linode 1024","RAM":1024,"XFER":400},{"AVAIL":{"7":21,"2":18,"3":23,"4":18,"6":21},"DISK":48,"PRICE":59.95,"PLANID":4,"LABEL":"Linode 1536","RAM":1536,"XFER":600},{"AVAIL":{"7":16,"2":14,"3":17,"4":14,"6":16},"DISK":64,"PRICE":79.95,"PLANID":5,"LABEL":"Linode 2048","RAM":2048,"XFER":800},{"AVAIL":{"7":2,"2":2,"3":2,"4":2,"6":3},"DISK":128,"PRICE":159.95,"PLANID":6,"LABEL":"Linode 4GB","RAM":4096,"XFER":1600},{"AVAIL":{"7":4,"2":3,"3":3,"4":3,"6":6},"DISK":256,"PRICE":319.95,"PLANID":7,"LABEL":"Linode 8GB","RAM":8192,"XFER":2000},{"AVAIL":{"7":4,"2":3,"3":3,"4":3,"6":6},"DISK":384,"PRICE":479.95,"PLANID":8,"LABEL":"Linode 12GB","RAM":12288,"XFER":2000},{"AVAIL":{"7":4,"2":3,"3":3,"4":3,"6":6},"DISK":512,"PRICE":639.95,"PLANID":9,"LABEL":"Linode 16GB","RAM":16384,"XFER":2000},{"AVAIL":{"7":4,"2":3,"3":3,"4":3,"6":6},"DISK":640,"PRICE":799.95,"PLANID":10,"LABEL":"Linode 20GB","RAM":20480,"XFER":2000}]}


Last edited by JshWright on Fri Aug 06, 2010 7:28 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Fri Aug 06, 2010 7:27 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
At least it knows it needs to be numeric...

https://api.linode.com/api/?api_key=hah ... PlanID=foo

Code:
{"ERRORARRAY":[{"ERRORMESSAGE":"PLANID is not of type numeric.","ERRORCODE":7}],"ACTION":"avail.linodeplans","DATA":{}}


Top
   
 Post subject:
PostPosted: Mon Nov 15, 2010 2:12 pm 
Offline

Joined: Fri Apr 10, 2009 5:32 pm
Posts: 1
I have noticed this part of the API doesn't work as expected. Although I don't get an error, I just don't get a limited list of plans when I pass a PlanID into the method.

Instead I get back the full list of all available plans.

Not a blocker, but I thought it should be mentioned.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group