servers endpoint is available only since 5.11 version
https://github.com/Scalr/scalr/tree/5.10/api/doc/autodoc/rest/api/v1beta0/user/%7BenvId%7D

On Wed, Aug 10, 2016 at 10:30 AM, Vinod Pattel <[email protected]>
wrote:

>
> 5.10.21 (Community Edition)
>
> On Wednesday, August 10, 2016 at 12:25:42 PM UTC+5:30, Vitaliy Demidov
> wrote:
>>
>> What was the version of Scalr?
>>
>> On Wed, Aug 10, 2016 at 9:49 AM, Vinod Pattel <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am trying to use Scalr APIs to automate few things. I see few APIs
>>> return 404 response, while the requests are still valid.
>>> Couple of them are listed below.
>>> There is an environment with ID 17, containing a Farm with ID 8.
>>>
>>> 1. scalr -e 17 list-servers --farm-id=8  <<-- This command returns the
>>> list of servers in farm 8.
>>>
>>> I try to get the same list using API call: /api/v1beta0/user/17/farms/8/s
>>> ervers/?status=running
>>> This returns 404 response:
>>>
>>> GET /api/v1beta0/user/17/farms/8/servers/?status=running - 404
>>> API Error (EndpointNotFound): The endpoint you are trying to access does
>>> not exist.
>>>
>>> 2. I try to get the list of environments using the API -
>>> /api/v1beta0/account/environments/
>>> This also returns 404 error.
>>>
>>> API Key, Secret, URL configurations are proper. I am able to create
>>> farms, farm roles, query farms, farm roles.
>>> Few APIs like above fail.
>>>
>>> Appreciate any help on this.
>>>
>>>
>>> --
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to