Hi,

I am getting an error while trying to automate using Scalr API2. I get an 
error message "*API Error (InvalidStructure): You must describe a VPC 
Router*" HTTP bad request when I am trying to create Farm Role 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: 
https://api-explorer.scalr.com/user/farms/farm-roles/post.html,

{'role': {'id': 83190}, 'scaling': {'maxInstances': '2', 'enabled': True, 
'minInstances': '1'}, 'instance': {instanceType': {'id': 'm3.xlarge'}, 
'instanceConfigurationType': 'AwsInstanceConfiguration'}, 'platform': 'ec', 
'placement': {'region': 'us-east-1', 'subnets': [{'id': 
'subnet-7bb1ef22'}], 'placementConfigurationType': 
'AwsVpcPlacementConfiguration'}, 'alias': 'auto-micro-dcs-webportal'}

I am able to automate most of the other things that include creating roles, 
scripts, orchestration rules, images, global variables, farm etc. except 
farm role as stated above. I would appreciate any help in this regard.

Thanks,
Chidambar

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