Error while creating "Farm role" using API 2.0

Chidambar Kulkarni's Avatar

Chidambar Kulkarni

03 Aug, 2016 04:35 AM

Hi Scalr team,
I have started using the Scalr API2 and I am facing the following problem.
I am from Symantec and I am trying to automate our infrastructure using Scalr API 2 using Python scripts. I am able to automate most of the other things i.e. creating roles, scripts, orchestration rules, images, global variables, farms etc. except for “farm roles”. I am getting an error "API Error (InvalidStructure): You must describe a VPC Router" HTTP bad request when I am trying to create “Farm Roles” using the API "POST /api/v1beta0/user/<env_id>/farms/<farm_id>/farm-roles/". Below is the JSON request body that is being posted to the API as mentioned in the API2 documentation here:,
Note: Subnet id specified below is a private subnet.

"placement": {
"placementConfigurationType": "AwsVpcPlacementConfiguration",
"subnets": [{
"id": "subnet-7aa1cd22"
"region": "us-east-1"
"alias": "auto-micro-dcs-webportal",
"scaling": {
"enabled": true,
"minInstances": "1",
"maxInstances": "2"
"instance": {
"instanceConfigurationType": "AwsInstanceConfiguration",
"instanceType": {
"id": "m3.xlarge"
"platform": "ec2",
"role": {
"id": 12345

Based on the error message it appears that it requires VPC router id needs to be provided in the request body. Not sure how to find VPC router id in Scalr.

I would really appreciate any help in this regard.
Chidambar Kulkarni

  1. Support Staff 1 Posted by Igor Savchenko on 03 Aug, 2016 05:10 AM

    Igor Savchenko's Avatar

    Hi Chidambar,

    What is your Hosted Scalr email address? I'm unable to locate your account.


  2. 2 Posted by Chidambar Kulka... on 03 Aug, 2016 05:30 AM

    Chidambar Kulkarni's Avatar

    Not sure what you need here. I don't have Hosted Scalr email address. Scalr is hosted at Symantec environment.


  3. Support Staff 3 Posted by Igor Savchenko on 03 Aug, 2016 05:44 AM

    Igor Savchenko's Avatar

    This support area is only for Hosted Scalr customers ( For Opensource Scalr please use and if you're using Enterprise Scalr, please use support portal from the contract.


  4. Igor Savchenko closed this discussion on 03 Aug, 2016 05:44 AM.

  5. Chidambar Kulkarni re-opened this discussion on 03 Aug, 2016 05:53 AM

  6. 4 Posted by Chidambar Kulka... on 03 Aug, 2016 05:53 AM

    Chidambar Kulkarni's Avatar

    I have already posted it on the google group,!topic/scalr-discuss/nVt033Oz30o
    Awaiting response.

  7. Igor Savchenko closed this discussion on 05 Aug, 2016 07:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

02 Jul, 2019 07:54 PM
07 Jun, 2019 07:12 PM
02 May, 2019 04:04 PM
28 Mar, 2019 05:24 PM
22 Feb, 2019 08:11 PM