Auto Scaling Groups API


Create an auto scaling group

POST /auto_scaling_groups

Parameters

environment
required: true
ID of the environment for which you wish to enable auto scaling
minimum_size
required: true
scope: auto_scaling_group
Minimum number of servers for the auto scaling group
maximum_size
required: true
scope: auto_scaling_group
Maximum number of servers for the auto scaling group

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
            "environment": 1,
            "auto_scaling_group": {
              "minimum_size": 1,
              "maximum_size": 50
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "request": {
              "type": "provision_auto_scaling_group",
              "id": "09d30202-d2d9-4803-b19b-4eef7209112f",
              "created_at": "2018-05-29T11:16:21+00:00",
              "started_at": "2018-05-29T11:16:21+00:00",
              "finished_at": "2018-05-29T11:16:23+00:00",
              "message": null,
              "request_status": "Finished: Provision auto scaling group (09d30202-d2d9-4803-b19b-4eef7209112f) (less than a minute ago)",
              "successful": true,
              "updated_at": "2018-05-29T11:16:23+00:00",
              "read_channel": null,
              "stage": "protect-app-master",
              "dependencies": "https://api.engineyard.com/requests/09d30202-d2d9-4803-b19b-4eef7209112f/dependencies",
              "stages": "https://api.engineyard.com/requests/09d30202-d2d9-4803-b19b-4eef7209112f/stages",
              "account": "https://api.engineyard.com/accounts/be54183a-435e-4974-ae7c-9a8666dcfeff",
              "requester": "https://api.engineyard.com/requests/09d30202-d2d9-4803-b19b-4eef7209112f/requester",
              "messages": "https://api.engineyard.com/requests/09d30202-d2d9-4803-b19b-4eef7209112f/messages",
              "callback_url": "https://api.engineyard.com/requests/09d30202-d2d9-4803-b19b-4eef7209112f/callback",
              "progress": false,
              "resource": "https://api.engineyard.com/auto_scaling_groups/8bee0918-44bb-4f0a-836b-41c39dc4e4ec"
            }
          }
            
          








Deprovision an auto scaling group

DELETE /auto_scaling_groups/:auto_scaling_group_id

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "request": {
              "type": "deprovision_auto_scaling_group",
              "id": "0d00f697-1063-42a4-bb64-02a40308ac27",
              "created_at": "2018-05-29T11:17:46+00:00",
              "started_at": "2018-05-29T11:17:46+00:00",
              "finished_at": "2018-05-29T11:17:46+00:00",
              "message": null,
              "request_status": "Finished: Deprovision auto scaling group (0d00f697-1063-42a4-bb64-02a40308ac27) (less than a minute ago)",
              "successful": true,
              "updated_at": "2018-05-29T11:17:46+00:00",
              "read_channel": null,
              "stage": "destroy",
              "dependencies": "https://api.engineyard.com/requests/0d00f697-1063-42a4-bb64-02a40308ac27/dependencies",
              "stages": "https://api.engineyard.com/requests/0d00f697-1063-42a4-bb64-02a40308ac27/stages",
              "account": "https://api.engineyard.com/accounts/45f40762-06f7-49e5-80a6-4f37259ef404",
              "requester": "https://api.engineyard.com/requests/0d00f697-1063-42a4-bb64-02a40308ac27/requester",
              "messages": "https://api.engineyard.com/requests/0d00f697-1063-42a4-bb64-02a40308ac27/messages",
              "callback_url": "https://api.engineyard.com/requests/0d00f697-1063-42a4-bb64-02a40308ac27/callback",
              "progress": false,
              "resource": "https://api.engineyard.com/auto_scaling_groups/d88324b2-85f5-4caf-a704-90a59b84ccd9"
            }
          }
            
          








Get an auto scaling group

GET /auto_scaling_groups/:auto_scaling_group_id

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "auto_scaling_group": {
              "created_at": "2018-05-29T11:17:02+00:00",
              "deleted_at": null,
              "id": "d804f998-8edf-4d83-aaa5-622846dc460e",
              "environment": "https://api.engineyard.com/environments/3",
              "provisioned_id": "9bab3edb5dcd7d-319c-4c05-a0ef-29ea57396388",
              "minimum_size": 4,
              "maximum_size": 10,
              "desired_capacity": 4,
              "location_id": "us-east-1"
            }
          }
            
          








List auto scaling groups

GET /auto_scaling_groups

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "auto_scaling_groups": [
              {
                "created_at": "2018-05-29T11:16:43+00:00",
                "deleted_at": null,
                "id": "7c095e6c-2d9f-4346-92ab-95ea1932d889",
                "environment": "https://api.engineyard.com/environments/2",
                "provisioned_id": "d9227803431594-e8a9-4ca6-850a-22d11a998b05",
                "minimum_size": 4,
                "maximum_size": 10,
                "desired_capacity": 4,
                "location_id": "us-east-1"
              }
            ]
          }
            
          








Update an auto scaling group

PUT /auto_scaling_groups/:auto_scaling_group_id

Parameters

minimum_size
required: true
scope: auto_scaling_group
Minimum number of servers for the auto scaling group
maximum_size
required: true
scope: auto_scaling_group
Maximum number of servers for the auto scaling group
desired_capacity
required: true
scope: auto_scaling_group
Desired number of servers for the auto scaling group

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
            "auto_scaling_group": {
              "minimum_size": 2,
              "maximum_size": 5,
              "desired_capacity": 3
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "request": {
              "type": "update_auto_scaling_group",
              "id": "8e882ab5-4c17-4ef5-b3c3-13cb41625dbe",
              "created_at": "2018-05-29T11:17:25+00:00",
              "started_at": "2018-05-29T11:17:25+00:00",
              "finished_at": "2018-05-29T11:17:25+00:00",
              "message": null,
              "request_status": "Finished: Update auto scaling group (8e882ab5-4c17-4ef5-b3c3-13cb41625dbe) (less than a minute ago)",
              "successful": true,
              "updated_at": "2018-05-29T11:17:25+00:00",
              "read_channel": null,
              "stage": "update",
              "dependencies": "https://api.engineyard.com/requests/8e882ab5-4c17-4ef5-b3c3-13cb41625dbe/dependencies",
              "stages": "https://api.engineyard.com/requests/8e882ab5-4c17-4ef5-b3c3-13cb41625dbe/stages",
              "account": "https://api.engineyard.com/accounts/9df021c7-788f-4bdb-97c6-8c10d8c22ca6",
              "requester": "https://api.engineyard.com/requests/8e882ab5-4c17-4ef5-b3c3-13cb41625dbe/requester",
              "messages": "https://api.engineyard.com/requests/8e882ab5-4c17-4ef5-b3c3-13cb41625dbe/messages",
              "callback_url": "https://api.engineyard.com/requests/8e882ab5-4c17-4ef5-b3c3-13cb41625dbe/callback",
              "progress": false,
              "resource": "https://api.engineyard.com/auto_scaling_groups/4c36fb83-4dce-407a-b511-39696f8b40d7"
            }
          }