Release Date: 06/Nov/17
...
Expand | ||
---|---|---|
| ||
1. BC change in APIv2. Farm role creation without explicitly specified FarmRole.scaling.enabled = true won't have auto-scaling enabled by default. If you want Scalr to launch instances automatically, you need to explicetly pass FarmRole.scaling.enabled = true to the API call or specify it in Farm Template.
POST http://my.scalr.com/api/v1beta0/user/5/farms/9800014/farm-roles HTTP/1.1 Content-Type: application/json; charset=utf-8 X-Scalr-Key-Id: APIK12345 X-Scalr-Date: 2017-10-30T15:19:47Z X-Scalr-Signature: .... Content-Length: 185 { "alias": "farm-role-example", "cloudPlatform": "ec2", "cloudLocation": "us-east-1", "role": { "id": 64080 }, "security": { "securityGroups": [{ "id": "sg-4faa5424" }] }, "instanceType": { "id": "m1.small" } } HTTP/1.1 201 Created Server: nginx/1.12.1 Date: Mon, 30 Oct 2017 15:19:49 GMT Content-Type: application/json; utf-8 Content-Length: 957 { "meta": { "requestId": "d9c691e5-8182-4faf-a5f6-dae148057088" }, "data": { "id": 74, "alias": "farm-role-example", "farm": { "id": 9800014 }, "role": { "id": 64080 }, "cloudPlatform": "ec2", "cloudLocation": "us-east-1", "availabilityZones": [], "instanceType": { "id": "m1.small" }, "scaling": { "considerSuspendedServers": "running", "enabled": true, "maxInstances": 2, "minInstances": 1, "rules": [], "scalingBehavior": "launch-terminate" }, "networking": { "hostname": { "type": "TemplateHostnameConfiguration" } }, "security": { "securityGroups": [{ "id": "sg-4faa5424" }, { "id": "sg-307ea059" }, { "id": "sg-4c19c224" }] }, "cloudFeatures": { "type": "AwsCloudFeatures", "ebsOptimized": false } }, "warnings": [] } After: POST http://my.scalr.com/api/v1beta0/user/5/farms/9800014/farm-roles HTTP/1.1 Content-Type: application/json; charset=utf-8 X-Scalr-Key-Id: APIK12345 X-Scalr-Date: 2017-10-30T15:26:18Z X-Scalr-Signature: .... Content-Length: 185 { "alias": "farm-role-example", "cloudPlatform": "ec2", "cloudLocation": "us-east-1", "role": { "id": 64080 }, "security": { "securityGroups": [{ "id": "sg-4faa5424" }] }, "instanceType": { "id": "m1.small" } } HTTP/1.1 201 Created Server: nginx/1.12.1 Date: Mon, 30 Oct 2017 15:26:20 GMT Content-Type: application/json; utf-8 Content-Length: 811 Connection: keep-alive { "meta": { "requestId": "945ce4ef-34e4-4f02-b410-fe238367c7e6" }, "data": { "id": 74, "alias": "farm-role-example", "farm": { "id": 9800014 }, "role": { "id": 64080 }, "cloudPlatform": "ec2", "cloudLocation": "us-east-1", "availabilityZones": [], "instanceType": { "id": "m1.small" }, "networking": { "hostname": { "type": "TemplateHostnameConfiguration" } }, "security": { "securityGroups": [{ "id": "sg-4faa5424" }, { "id": "sg-307ea059" }, { "id": "sg-4c19c224" }] }, "cloudFeatures": { "type": "AwsCloudFeatures", "ebsOptimized": false } }, "warnings": [] } |
Expand | ||
---|---|---|
| ||
memcached: 1.4.22 -> 1.4.39 |