Blueprints API


Deletes the blueprint

DELETE /blueprints/:blueprint

Request

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

Response

          Status: 204 No Content
          Content-Type: 
          
            
          {
          }
            
          








Get a blueprint

GET /blueprints/:blueprint

Request

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

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprint": {
              "id": "96c99faa-d3ca-4c6e-bd6d-63eed2c00134",
              "account": "https://api.engineyard.com/accounts/00b4c052-171a-4401-b29b-ccedbe62bfa0",
              "environment": "https://api.engineyard.com/environments/35",
              "created_at": "2018-05-29T10:58:30+00:00",
              "updated_at": "2018-05-29T10:58:30+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"
            }
          }
            
          








Lists blueprints

GET /blueprints

Parameters

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

Request

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

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "44022942-b4cb-4a5f-a208-9e786b0fb196",
                "account": "https://api.engineyard.com/accounts/147b1efe-56ca-4d33-bda7-872bb8e4d579",
                "environment": "https://api.engineyard.com/environments/32",
                "created_at": "2018-05-29T10:57:33+00:00",
                "updated_at": "2018-05-29T10:57:33+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"
              }
            ]
          }
            
          








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

Request

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

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "83201bd7-fcf2-4cd2-8a57-00f1480c8d82",
                "account": "https://api.engineyard.com/accounts/4b168253-0371-42c8-8f56-06a81c29fb0f",
                "environment": "https://api.engineyard.com/environments/34",
                "created_at": "2018-05-29T10:58:13+00:00",
                "updated_at": "2018-05-29T10:58:13+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"
              }
            ]
          }
            
          








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

Request

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

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprints": [
              {
                "id": "f9de02c4-aa27-49eb-8e3d-c64f6b16b84a",
                "account": "https://api.engineyard.com/accounts/a1a7d35c-b308-4dca-ad1e-466efaa2bcb6",
                "environment": "https://api.engineyard.com/environments/33",
                "created_at": "2018-05-29T10:57:51+00:00",
                "updated_at": "2018-05-29T10:57: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": "ecd220"
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprint": {
              "id": "863be1b0-83b0-47d9-b2bf-e2d2a32d8643",
              "account": "https://api.engineyard.com/accounts/d5a59117-8f73-42d9-95b5-6b8be3557ee4",
              "environment": "https://api.engineyard.com/environments/36",
              "created_at": "2018-05-29T10:58:47+00:00",
              "updated_at": "2018-05-29T10:58:47+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": "ecd220"
            }
          }