Provider locations API


List an AWS provider's locations

GET /providers/:provider/locations

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_locations": [
              {
                "id": "be72dc09-8fa0-463e-98e3-4be242a43e93",
                "created_at": "2017-10-10T15:55:20+00:00",
                "updated_at": "2017-10-10T15:55:20+00:00",
                "disabled_at": null,
                "location_id": "us-west-2",
                "location_name": "US West (Oregon)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/205",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/be72dc09-8fa0-463e-98e3-4be242a43e93/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/be72dc09-8fa0-463e-98e3-4be242a43e93/flavors/compute"
              },
              {
                "id": "6baebaf9-2f59-4acd-8eb4-815df18c0fc0",
                "created_at": "2017-10-10T15:55:19+00:00",
                "updated_at": "2017-10-10T15:55:19+00:00",
                "disabled_at": null,
                "location_id": "us-east-1",
                "location_name": "US East (N. Virginia)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": false
                },
                "provider": "https://api.engineyard.com/providers/205",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/6baebaf9-2f59-4acd-8eb4-815df18c0fc0/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/6baebaf9-2f59-4acd-8eb4-815df18c0fc0/flavors/compute"
              }
            ]
          }
            
          








List an AWS provider locations' children

GET /provider-locations/:provider_location_id/provider-locations

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_locations": [
              {
                "id": "145992a3-f8db-4c62-bf61-860409e2b8e0",
                "created_at": "2017-10-10T15:55:12+00:00",
                "updated_at": "2017-10-10T15:55:12+00:00",
                "disabled_at": null,
                "location_id": "us-west-2b",
                "location_name": "US West (Oregon) Zone 2b",
                "limits": {
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/202",
                "parent": "https://api.engineyard.com/provider-locations/aaae4225-9e96-465a-a43f-bdae3f08b233",
                "children": "https://api.engineyard.com/provider-locations/145992a3-f8db-4c62-bf61-860409e2b8e0/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/145992a3-f8db-4c62-bf61-860409e2b8e0/flavors/compute"
              },
              {
                "id": "23cf65b6-2147-494e-b2f5-c5072460250d",
                "created_at": "2017-10-10T15:55:12+00:00",
                "updated_at": "2017-10-10T15:55:12+00:00",
                "disabled_at": null,
                "location_id": "us-west-2a",
                "location_name": "US West (Oregon) Zone 2a",
                "limits": {
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/202",
                "parent": "https://api.engineyard.com/provider-locations/aaae4225-9e96-465a-a43f-bdae3f08b233",
                "children": "https://api.engineyard.com/provider-locations/23cf65b6-2147-494e-b2f5-c5072460250d/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/23cf65b6-2147-494e-b2f5-c5072460250d/flavors/compute"
              },
              {
                "id": "e2928717-7988-4a09-8660-ca6deb397e41",
                "created_at": "2017-10-10T15:55:12+00:00",
                "updated_at": "2017-10-10T15:55:12+00:00",
                "disabled_at": null,
                "location_id": "us-west-2c",
                "location_name": "US West (Oregon) Zone 2c",
                "limits": {
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/202",
                "parent": "https://api.engineyard.com/provider-locations/aaae4225-9e96-465a-a43f-bdae3f08b233",
                "children": "https://api.engineyard.com/provider-locations/e2928717-7988-4a09-8660-ca6deb397e41/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/e2928717-7988-4a09-8660-ca6deb397e41/flavors/compute"
              }
            ]
          }
            
          








List server flavors available in a given provider location

GET /provider-locations/:provider_location_id/flavors/compute

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "flavors": [
              {
                "id": "m3_medium",
                "api_name": "m3.medium",
                "dedicated": false,
                "description": "General Purpose (M3) Medium",
                "volume_optimized": false,
                "architecture": 64,
                "name": "m3_medium"
              },
              {
                "id": "m3_large",
                "api_name": "m3.large",
                "dedicated": false,
                "description": "General Purpose (M3) Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "m3_large"
              },
              {
                "id": "m3_xlarge",
                "api_name": "m3.xlarge",
                "dedicated": false,
                "description": "General Purpose (M3) Extra Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "m3_xlarge"
              },
              {
                "id": "c4_large",
                "api_name": "c4.large",
                "dedicated": false,
                "description": "Compute Optimized (C4) Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "c4_large"
              },
              {
                "id": "c4_xlarge",
                "api_name": "c4.xlarge",
                "dedicated": false,
                "description": "Compute Optimized (C4) Extra Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "c4_xlarge"
              },
              {
                "id": "c3_large",
                "api_name": "c3.large",
                "dedicated": false,
                "description": "Compute Optimized (C3) Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "c3_large"
              },
              {
                "id": "c3_xlarge",
                "api_name": "c3.xlarge",
                "dedicated": false,
                "description": "Compute Optimized (C3) Extra Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "c3_xlarge"
              },
              {
                "id": "r3_large",
                "api_name": "r3.large",
                "dedicated": false,
                "description": "Memory Optimized (R3) Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "r3_large"
              },
              {
                "id": "r3_xlarge",
                "api_name": "r3.xlarge",
                "dedicated": false,
                "description": "Memory Optimized (R3) Extra Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "r3_xlarge"
              },
              {
                "id": "t2_micro",
                "api_name": "t2.micro",
                "dedicated": false,
                "description": "General Purpose (T2) Micro",
                "volume_optimized": false,
                "architecture": 64,
                "name": "t2_micro"
              },
              {
                "id": "t2_small",
                "api_name": "t2.small",
                "dedicated": false,
                "description": "General Purpose (T2) Small",
                "volume_optimized": false,
                "architecture": 64,
                "name": "t2_small"
              },
              {
                "id": "t2_medium",
                "api_name": "t2.medium",
                "dedicated": false,
                "description": "General Purpose (T2) Medium",
                "volume_optimized": false,
                "architecture": 64,
                "name": "t2_medium"
              },
              {
                "id": "t2_large",
                "api_name": "t2.large",
                "dedicated": false,
                "description": "General Purpose (T2) Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "t2_large"
              },
              {
                "id": "t2_xlarge",
                "api_name": "t2.xlarge",
                "dedicated": false,
                "description": "General Purpose (T2) Extra Large",
                "volume_optimized": false,
                "architecture": 64,
                "name": "t2_xlarge"
              },
              {
                "id": "m4_large",
                "api_name": "m4.large",
                "dedicated": false,
                "description": "General Purpose (M4) Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "m4_large"
              },
              {
                "id": "m4_xlarge",
                "api_name": "m4.xlarge",
                "dedicated": false,
                "description": "General Purpose (M4) Extra Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "m4_xlarge"
              }
            ]
          }
            
          








Update limits on a provider location

PUT /provider-locations/:provider_location_id

Request

          Accept: application/json
          Content-Type: application/json
          
            
          {
            "provider_location": {
              "limits": {
                "servers": 21,
                "addresses": 42
              }
            }
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_location": {
              "id": "8396591c-1615-4470-ade0-76daa7b74b61",
              "created_at": "2017-10-10T15:55:16+00:00",
              "updated_at": "2017-10-10T15:55:18+00:00",
              "disabled_at": null,
              "location_id": "us-west-2",
              "location_name": "US West (Oregon)",
              "limits": {
                "servers": 21,
                "addresses": 42
              },
              "data": {
                "vpc_by_default": true
              },
              "provider": "https://api.engineyard.com/providers/204",
              "parent": null,
              "children": "https://api.engineyard.com/provider-locations/8396591c-1615-4470-ade0-76daa7b74b61/provider-locations",
              "compute_flavors": "https://api.engineyard.com/provider-locations/8396591c-1615-4470-ade0-76daa7b74b61/flavors/compute"
            }
          }