| { |
| "group": { |
| "id": "1234567890", |
| "links": [ |
| { |
| "href": "https://rackspace/v1.0/010101/groups/1234567890", |
| "rel": "self" |
| } |
| ], |
| "groupConfiguration": { |
| "name": "workers", |
| "cooldown": 60, |
| "minEntities": 5, |
| "maxEntities": 100, |
| "metadata": { |
| "firstkey": "this is a string", |
| "secondkey": "1" |
| } |
| }, |
| "launchConfiguration": { |
| "type": "launch_server", |
| "args": { |
| "server": { |
| "flavorRef": "3", |
| "name": "webhead", |
| "imageRef": "0d589460-f177-4b0f-81c1-8ab8903ac7d8", |
| "OS-DCF:diskConfig": "AUTO", |
| "metadata": { |
| "mykey": "myvalue" |
| }, |
| "personality": [ |
| { |
| "path": "/root/.ssh/authorized_keys", |
| "contents": "ssh-rsa AAAAB3Nza...LiPk== user@example.net" |
| } |
| ], |
| "networks": [ |
| { |
| "uuid": "11111111-1111-1111-1111-111111111111" |
| } |
| ] |
| }, |
| "loadBalancers": [ |
| { |
| "loadBalancerId": 2200, |
| "port": 8081 |
| } |
| ] |
| } |
| }, |
| "scalingPolicies": [ |
| { |
| "id": "policyId1", |
| "links": [ |
| { |
| "href": "https://rackspace/v1.0/010101/groups/1234567890/policies/policyId1", |
| "rel": "self" |
| } |
| ], |
| "name": "scale up by 10", |
| "change": 10, |
| "cooldown": 5, |
| "type": "webhook" |
| }, |
| { |
| "id": "policyId2", |
| "links": [ |
| { |
| "href": "https://rackspace/v1.0/010101/groups/1234567890/policies/policyId2", |
| "rel": "self" |
| } |
| ], |
| "name": "scale down by 5.5 percent", |
| "changePercent": -5.5, |
| "cooldown": 6, |
| "type": "webhook" |
| }, |
| { |
| "id": "policyId3", |
| "links": [ |
| { |
| "href": "https://rackspace/v1.0/010101/groups/groupId/policies/policyId3", |
| "rel": "self" |
| } |
| ], |
| "name": "set number of servers to 10", |
| "desiredCapacity": 10, |
| "cooldown": 3, |
| "type": "webhook" |
| } |
| ] |
| } |
| } |