Provider locations API


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": "cc41e289-be48-458e-8860-a398f6ce57d6",
              "created_at": "2017-02-22T17:02:12+00:00",
              "updated_at": "2017-02-22T17:02:21+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/3",
              "parent": null,
              "children": "https://api.engineyard.com/provider-locations/cc41e289-be48-458e-8860-a398f6ce57d6/provider-locations",
              "compute_flavors": "https://api.engineyard.com/provider-locations/cc41e289-be48-458e-8860-a398f6ce57d6/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": "4adbddd0-dc10-4088-a441-07a32002fa71",
                "created_at": "2017-02-22T17:01:57+00:00",
                "updated_at": "2017-02-22T17:01:57+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/1",
                "parent": "https://api.engineyard.com/provider-locations/4670dd2b-0665-469c-b124-b964bd0906dd",
                "children": "https://api.engineyard.com/provider-locations/4adbddd0-dc10-4088-a441-07a32002fa71/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/4adbddd0-dc10-4088-a441-07a32002fa71/flavors/compute"
              },
              {
                "id": "562f30b7-4acf-4943-a522-f1a9f3c5d0b4",
                "created_at": "2017-02-22T17:01:57+00:00",
                "updated_at": "2017-02-22T17:01:57+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/1",
                "parent": "https://api.engineyard.com/provider-locations/4670dd2b-0665-469c-b124-b964bd0906dd",
                "children": "https://api.engineyard.com/provider-locations/562f30b7-4acf-4943-a522-f1a9f3c5d0b4/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/562f30b7-4acf-4943-a522-f1a9f3c5d0b4/flavors/compute"
              },
              {
                "id": "dac9dba8-6668-4474-bf1c-7bb69863d32b",
                "created_at": "2017-02-22T17:01:57+00:00",
                "updated_at": "2017-02-22T17:01:57+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/1",
                "parent": "https://api.engineyard.com/provider-locations/4670dd2b-0665-469c-b124-b964bd0906dd",
                "children": "https://api.engineyard.com/provider-locations/dac9dba8-6668-4474-bf1c-7bb69863d32b/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/dac9dba8-6668-4474-bf1c-7bb69863d32b/flavors/compute"
              }
            ]
          }
            
          








List an AWS provider's locations

GET /providers/:provider/locations

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_locations": [
              {
                "id": "1b0fc420-097f-4c2b-be90-1e05272c7376",
                "created_at": "2017-02-22T17:02:28+00:00",
                "updated_at": "2017-02-22T17:02:28+00:00",
                "disabled_at": null,
                "location_id": "ap-south-1",
                "location_name": "Asia Pacific (Mumbai)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/1b0fc420-097f-4c2b-be90-1e05272c7376/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/1b0fc420-097f-4c2b-be90-1e05272c7376/flavors/compute"
              },
              {
                "id": "2bb5cd45-8347-4aa6-bbe9-24bc78e0818d",
                "created_at": "2017-02-22T17:02:28+00:00",
                "updated_at": "2017-02-22T17:02:28+00:00",
                "disabled_at": null,
                "location_id": "ap-northeast-2",
                "location_name": "Asia Pacific (Seoul)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/2bb5cd45-8347-4aa6-bbe9-24bc78e0818d/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/2bb5cd45-8347-4aa6-bbe9-24bc78e0818d/flavors/compute"
              },
              {
                "id": "ed923b67-618c-4b84-986c-b5c0e14dc153",
                "created_at": "2017-02-22T17:02:27+00:00",
                "updated_at": "2017-02-22T17:02:27+00:00",
                "disabled_at": null,
                "location_id": "ap-southeast-2",
                "location_name": "Asia Pacific (Sydney)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/ed923b67-618c-4b84-986c-b5c0e14dc153/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/ed923b67-618c-4b84-986c-b5c0e14dc153/flavors/compute"
              },
              {
                "id": "ca52ef2c-5f26-4714-8bd7-96c2186be981",
                "created_at": "2017-02-22T17:02:27+00:00",
                "updated_at": "2017-02-22T17:02:27+00:00",
                "disabled_at": null,
                "location_id": "ap-northeast-1",
                "location_name": "Asia Pacific (Tokyo)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/ca52ef2c-5f26-4714-8bd7-96c2186be981/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/ca52ef2c-5f26-4714-8bd7-96c2186be981/flavors/compute"
              },
              {
                "id": "92bdc7bc-9c7c-4325-8a82-f5ec04b32c56",
                "created_at": "2017-02-22T17:02:26+00:00",
                "updated_at": "2017-02-22T17:02:26+00:00",
                "disabled_at": null,
                "location_id": "eu-central-1",
                "location_name": "EU (Frankfurt)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/92bdc7bc-9c7c-4325-8a82-f5ec04b32c56/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/92bdc7bc-9c7c-4325-8a82-f5ec04b32c56/flavors/compute"
              },
              {
                "id": "9ec62193-0630-4ca9-889c-908c799d0402",
                "created_at": "2017-02-22T17:02:26+00:00",
                "updated_at": "2017-02-22T17:02:26+00:00",
                "disabled_at": null,
                "location_id": "ap-southeast-1",
                "location_name": "Asia Pacific (Singapore)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/9ec62193-0630-4ca9-889c-908c799d0402/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/9ec62193-0630-4ca9-889c-908c799d0402/flavors/compute"
              },
              {
                "id": "ac172987-404b-4455-b668-464f4dd5e290",
                "created_at": "2017-02-22T17:02:25+00:00",
                "updated_at": "2017-02-22T17:02:25+00:00",
                "disabled_at": null,
                "location_id": "eu-west-1",
                "location_name": "EU (Ireland)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/ac172987-404b-4455-b668-464f4dd5e290/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/ac172987-404b-4455-b668-464f4dd5e290/flavors/compute"
              },
              {
                "id": "084e056f-8ed4-4d35-a779-4bd44a784709",
                "created_at": "2017-02-22T17:02:25+00:00",
                "updated_at": "2017-02-22T17:02:25+00:00",
                "disabled_at": null,
                "location_id": "eu-west-2",
                "location_name": "EU (London)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/084e056f-8ed4-4d35-a779-4bd44a784709/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/084e056f-8ed4-4d35-a779-4bd44a784709/flavors/compute"
              },
              {
                "id": "f7cbee24-cf68-4d26-bb05-6e726c62a0ab",
                "created_at": "2017-02-22T17:02:25+00:00",
                "updated_at": "2017-02-22T17:02:25+00:00",
                "disabled_at": null,
                "location_id": "sa-east-1",
                "location_name": "South America (Sao Paulo)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/f7cbee24-cf68-4d26-bb05-6e726c62a0ab/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/f7cbee24-cf68-4d26-bb05-6e726c62a0ab/flavors/compute"
              },
              {
                "id": "34e7cb26-72cf-4de9-943e-53492fd8ebf4",
                "created_at": "2017-02-22T17:02:24+00:00",
                "updated_at": "2017-02-22T17:02:24+00:00",
                "disabled_at": null,
                "location_id": "ca-central-1",
                "location_name": "Canada (Central)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/34e7cb26-72cf-4de9-943e-53492fd8ebf4/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/34e7cb26-72cf-4de9-943e-53492fd8ebf4/flavors/compute"
              },
              {
                "id": "e179d034-1d09-476e-aa00-d985f3cd4990",
                "created_at": "2017-02-22T17:02:24+00:00",
                "updated_at": "2017-02-22T17:02:24+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/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/e179d034-1d09-476e-aa00-d985f3cd4990/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/e179d034-1d09-476e-aa00-d985f3cd4990/flavors/compute"
              },
              {
                "id": "533b1fe1-d2ee-4993-afa9-4ec4b8d1c8cc",
                "created_at": "2017-02-22T17:02:23+00:00",
                "updated_at": "2017-02-22T17:02:23+00:00",
                "disabled_at": null,
                "location_id": "us-west-1",
                "location_name": "US West (N. California)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/533b1fe1-d2ee-4993-afa9-4ec4b8d1c8cc/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/533b1fe1-d2ee-4993-afa9-4ec4b8d1c8cc/flavors/compute"
              },
              {
                "id": "27cccba0-5399-40c8-b7cf-84032cf5ed23",
                "created_at": "2017-02-22T17:02:23+00:00",
                "updated_at": "2017-02-22T17:02:23+00:00",
                "disabled_at": null,
                "location_id": "us-east-2",
                "location_name": "US East (Ohio)",
                "limits": {
                  "servers": 20,
                  "addresses": 5
                },
                "data": {
                  "vpc_by_default": true
                },
                "provider": "https://api.engineyard.com/providers/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/27cccba0-5399-40c8-b7cf-84032cf5ed23/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/27cccba0-5399-40c8-b7cf-84032cf5ed23/flavors/compute"
              },
              {
                "id": "754ea611-cbe7-4ccc-bb93-7cefbe237d8b",
                "created_at": "2017-02-22T17:02:22+00:00",
                "updated_at": "2017-02-22T17:02:22+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/4",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/754ea611-cbe7-4ccc-bb93-7cefbe237d8b/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/754ea611-cbe7-4ccc-bb93-7cefbe237d8b/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"
              }
            ]
          }