Scalr API Documentation

49 views
Skip to first unread message

Igor V. Savchenko (DicsyDel)

unread,
Jul 6, 2009, 8:16:18 AM7/6/09
to scalr-discuss
Scalr team is glad to announce availability of the Scalr API
documentation: http://wiki.scalr.net/API_Documentation

This is the initial version, so we are open for your comments and
suggestions.

Martin Sweeney

unread,
Jul 6, 2009, 10:56:16 AM7/6/09
to scalr-discuss
Fantastic news!

The API is really easy to use and the sample code especially helpful.

After a few false starts (declaring Timestamp as TimeStamp as the
sample requests show - I'd change this in the documentation but I
don't have the correct permissions to edit wiki pages) and IP
addresses (wildcard on the last region doesn't seem to work, eg
123.456.789.* so I added *.*.*.* ), I got a valid response.

Some small problems:
- On the action 'ListScripts', only 'Shared' and 'User-contributed'
scripts are returned, not 'Custom', which is what I was looking for.
ListRoles does not suffer this problem.
- GetFarmStats gives me an empty result set, with or without
supplying a 'Date' request parameter:
<?xml version="1.0"?> <GetFarmStatsResponse>
<TransactionID>aa663965-7163-476c-98bd-c44b1b67d6a8</TransactionID>
<StatisticsSet/> </GetFarmStatsResponse>
(this is for a valid FarmID, although I get the same response for
farms that I don't own (eg, I tried 12345 and got the same result))

Thanks,

Martin.

Igor V. Savchenko (DicsyDel)

unread,
Jul 6, 2009, 11:16:30 AM7/6/09
to scalr-discuss
Thanks a lot for your feedback. All the problems reported by you have
been fixed.

Martin Sweeney

unread,
Jul 6, 2009, 11:43:37 AM7/6/09
to scalr-discuss
> Thanks a lot for your feedback. All the problems reported by you have
> been fixed.

Brilliant, thanks.

Just encountered this php error on calling the 'ExecuteScript' action:

Fatal error: Call to a member function GetOne() on a non-object in /
usr/local/www/scalr/src/api/class.ScalrAPI20090507.php on line 160

Martin.

Igor V. Savchenko (DicsyDel)

unread,
Jul 6, 2009, 11:46:44 AM7/6/09
to scalr-discuss
Oh, sorry for this. Fixed.
Thanks, once again.

Martin Sweeney

unread,
Jul 6, 2009, 11:57:50 AM7/6/09
to scalr-discuss
No problem.

One thing I'd really like is the ability to launch a new instance and
terminate a specific instance of a role...are there any plans for
this?

These are the main functions that I find myself hitting the scalr.net
admin panel for whenever I want to push a new release of my app...and
I'd prefer to do it all from my release management app. Less moving
parts = better.

Martin.

On Jul 6, 4:46 pm, "Igor V. Savchenko (DicsyDel)" <dicsy...@gmail.com>
wrote:

Igor V. Savchenko (DicsyDel)

unread,
Jul 6, 2009, 12:16:13 PM7/6/09
to scalr-discuss
Sure. We will add those methods to the next version of Scalr API.
> > > Martin.- Hide quoted text -
>
> - Show quoted text -

Martin Sweeney

unread,
Jul 9, 2009, 7:06:06 AM7/9/09
to scalr-discuss
> Sure. We will add those methods to the next version of Scalr API.

Splendid! Any news on when I can expect this, just so I can plan?

Thanks,

Martin.

Nickolas Toursky

unread,
Jul 9, 2009, 7:18:49 AM7/9/09
to scalr-...@googlegroups.com
Hi Martin,

The new version will be released in 5-6 weeks.

2009/7/9 Martin Sweeney <martin....@gmail.com>:

kevbaker

unread,
Jul 9, 2009, 2:32:44 PM7/9/09
to scalr-discuss
Is it possible to get a list of instances for a given farm?

I would like to build some monitoring advanced monitoring around the
API for our App instances.

Thanks... this is great news!!


On Jul 9, 4:18 am, Nickolas Toursky <hin...@gmail.com> wrote:
> Hi Martin,
>
> The new version will be released in 5-6 weeks.
>
> 2009/7/9 Martin Sweeney <martin.swee...@gmail.com>:

Igor V. Savchenko (DicsyDel)

unread,
Jul 9, 2009, 2:41:42 PM7/9/09
to scalr-discuss
Ability to get list of farm roles and instances will be included to
the next release.

Amey Jain

unread,
May 19, 2016, 2:26:30 PM5/19/16
to scalr-discuss

Is the ability to change the scalr default ports is included in the APIs? I am not able to find it in the documentation.

Thanks
Amey

Michael Lochead

unread,
May 20, 2016, 11:51:59 AM5/20/16
to scalr-...@googlegroups.com
Amey, 

You are talking about the ports for agent? 

I don’t believe it’s possible to change default via API or otherwise.. 

Thanks,
ML

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalr-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amey Jain

unread,
May 20, 2016, 6:27:50 PM5/20/16
to scalr-discuss


Yes I was looking to change it from the API, from UI it is possible to change the default ports from farm role screen.

Amey Jain

unread,
May 25, 2016, 5:10:22 PM5/25/16
to scalr-discuss
If there any way I can contribute this functionlity in the coming API versions. I see most of the configs coming in the next release but this one is missing.
I can contribute if need be and API code is opensourced.

Marc O'Brien

unread,
May 27, 2016, 11:40:20 AM5/27/16
to scalr-discuss
Hi Amey,

We have no plans to add this specific functionality to the API presently.  However, could you help us understand your use case for this or the problem that you are attempting to solve? This will help us ensure there is not a better way to approach the issue.

Many thanks,
Wm. Marc O'Brien
Scalr Technical Support
Reply all
Reply to author
Forward
0 new messages