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": "9fa5ff0f-8680-4a6b-aca9-555806029a38",
              "account": "https://api.engineyard.com/accounts/f1a5bc83-9942-499d-bace-5b56e71c7374",
              "environment": "https://api.engineyard.com/environments/35",
              "created_at": "2018-04-12T18:02:15+00:00",
              "updated_at": "2018-04-12T18:02:15+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": "5f957e89-1301-40b2-ad90-a73600662183",
                "account": "https://api.engineyard.com/accounts/727bc454-a86f-4e0b-9ed1-a6ad9e0819b3",
                "environment": "https://api.engineyard.com/environments/32",
                "created_at": "2018-04-12T18:01:15+00:00",
                "updated_at": "2018-04-12T18:01:16+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": "15345d80-a970-4ebb-9772-2a271a767076",
                "account": "https://api.engineyard.com/accounts/e3388dde-7b74-4483-9bb6-50a29d4546b6",
                "environment": "https://api.engineyard.com/environments/34",
                "created_at": "2018-04-12T18:01:56+00:00",
                "updated_at": "2018-04-12T18:01:56+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": "90cea6fe-e9a0-48b7-a82d-4ede8a48b081",
                "account": "https://api.engineyard.com/accounts/33af96d7-8a05-45db-8534-3abb237d55db",
                "environment": "https://api.engineyard.com/environments/33",
                "created_at": "2018-04-12T18:01:36+00:00",
                "updated_at": "2018-04-12T18:01:36+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": "88d1e6"
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "blueprint": {
              "id": "3886be07-ce23-4738-82ca-dedbcf484679",
              "account": "https://api.engineyard.com/accounts/3b84ab1d-243d-4022-a84c-fcca2d948dc7",
              "environment": "https://api.engineyard.com/environments/36",
              "created_at": "2018-04-12T18:02:36+00:00",
              "updated_at": "2018-04-12T18:02:36+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": "88d1e6"
            }
          }