Blueprints API


Lists blueprints

GET /blueprints

Parameters

account
required: false
Filter by account
environment
required: false
Filter by environment
name
required: false
Filter by name

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "9877397c-e02d-4d83-b3d6-0ff890b5c4af",
                "account": "https://api.engineyard.com/accounts/3696838e-b830-47ed-800d-0b37eb8dbc8e",
                "environment": "https://api.engineyard.com/environments/1",
                "created_at": "2017-02-22T17:02:22+00:00",
                "updated_at": "2017-02-22T17:02:22+00:00",
                "data": {
                  "app_instances": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    },
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_master": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_slaves": [
          
                  ],
                  "utils": [
          
                  ]
                },
                "name": "spec_0"
              }
            ]
          }
            
          








Get a blueprint

GET /blueprints/:blueprint

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprint": {
              "id": "03567fc3-0ad3-41b5-ba6d-1d1670e62b0e",
              "account": "https://api.engineyard.com/accounts/51d31477-a4cc-47a2-857a-03b25f529ed4",
              "environment": "https://api.engineyard.com/environments/4",
              "created_at": "2017-02-22T17:03:51+00:00",
              "updated_at": "2017-02-22T17:03:51+00:00",
              "data": {
                "app_instances": [
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  },
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  }
                ],
                "db_master": [
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  }
                ],
                "db_slaves": [
          
                ],
                "utils": [
          
                ]
              },
              "name": "spec_0"
            }
          }
            
          








Updates the name

PUT /blueprints/:blueprint_id

Parameters

blueprint
required: true
Hash of options to update on the blueprint.
name
required: true
scope: blueprint
New name of the blueprint.

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
            "blueprint": {
              "name": "de88b2"
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprint": {
              "id": "947b2450-9e7d-482a-a02e-815a4c253411",
              "account": "https://api.engineyard.com/accounts/5e8db8b1-fb6d-440e-b382-85b60a95610a",
              "environment": "https://api.engineyard.com/environments/5",
              "created_at": "2017-02-22T17:04:17+00:00",
              "updated_at": "2017-02-22T17:04:17+00:00",
              "data": {
                "app_instances": [
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  },
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  }
                ],
                "db_master": [
                  {
                    "encrypted": false,
                    "flavor": "m3_large",
                    "mnt_volume_size": 25,
                    "name": null,
                    "volume_iops": null,
                    "volume_size": 15
                  }
                ],
                "db_slaves": [
          
                ],
                "utils": [
          
                ]
              },
              "name": "de88b2"
            }
          }
            
          








Lists blueprints by account

GET /blueprints

Parameters

account
required: false
Filter by account
environment
required: false
Filter by environment
name
required: false
Filter by name

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "59d9640e-8fcf-48ab-ad81-c01c2fd282e7",
                "account": "https://api.engineyard.com/accounts/35161c64-cca1-4f2a-a5e1-545c77ea9622",
                "environment": "https://api.engineyard.com/environments/3",
                "created_at": "2017-02-22T17:03:25+00:00",
                "updated_at": "2017-02-22T17:03:25+00:00",
                "data": {
                  "app_instances": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    },
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_master": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_slaves": [
          
                  ],
                  "utils": [
          
                  ]
                },
                "name": "spec_0"
              }
            ]
          }
            
          








Deletes the blueprint

DELETE /blueprints/:blueprint

Response

          Status: 204 No Content
          Content-Type: 
          
            
          {
          }
            
          








Lists blueprints by environment

GET /blueprints

Parameters

account
required: false
Filter by account
environment
required: false
Filter by environment
name
required: false
Filter by name

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "bc1e2d93-e086-422a-870a-ca1fac5d8145",
                "account": "https://api.engineyard.com/accounts/a9d44b02-d0a7-4069-a464-418cfcc7cd4e",
                "environment": "https://api.engineyard.com/environments/2",
                "created_at": "2017-02-22T17:02:58+00:00",
                "updated_at": "2017-02-22T17:02:58+00:00",
                "data": {
                  "app_instances": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    },
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_master": [
                    {
                      "encrypted": false,
                      "flavor": "m3_large",
                      "mnt_volume_size": 25,
                      "name": null,
                      "volume_iops": null,
                      "volume_size": 15
                    }
                  ],
                  "db_slaves": [
          
                  ],
                  "utils": [
          
                  ]
                },
                "name": "spec_0"
              }
            ]
          }