Provider locations API


List an AWS provider's locations

GET /providers/:provider/locations

Request

          Accept: application/json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_locations": [
              {
                "id": "13b048a8-5307-4f0d-9823-f3c42702028e",
                "created_at": "2018-04-12T18:15:27+00:00",
                "updated_at": "2018-04-12T18:15:27+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/118",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/13b048a8-5307-4f0d-9823-f3c42702028e/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/13b048a8-5307-4f0d-9823-f3c42702028e/flavors/compute"
              },
              {
                "id": "ff6143d6-f40d-452e-acfe-ab0154b9596e",
                "created_at": "2018-04-12T18:15:26+00:00",
                "updated_at": "2018-04-12T18:15:26+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/118",
                "parent": null,
                "children": "https://api.engineyard.com/provider-locations/ff6143d6-f40d-452e-acfe-ab0154b9596e/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/ff6143d6-f40d-452e-acfe-ab0154b9596e/flavors/compute"
              }
            ]
          }
            
          








List an AWS provider locations' children

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

Request

          Accept: application/json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "provider_locations": [
              {
                "id": "0681d25f-e742-49f1-92b5-e2d7eeccbd22",
                "created_at": "2018-04-12T18:15:20+00:00",
                "updated_at": "2018-04-12T18:15:20+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/115",
                "parent": "https://api.engineyard.com/provider-locations/994b4a59-fad6-439f-9544-cb3aec77d82c",
                "children": "https://api.engineyard.com/provider-locations/0681d25f-e742-49f1-92b5-e2d7eeccbd22/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/0681d25f-e742-49f1-92b5-e2d7eeccbd22/flavors/compute"
              },
              {
                "id": "4396493c-73bc-4933-955d-a6a5bac3b213",
                "created_at": "2018-04-12T18:15:20+00:00",
                "updated_at": "2018-04-12T18:15:20+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/115",
                "parent": "https://api.engineyard.com/provider-locations/994b4a59-fad6-439f-9544-cb3aec77d82c",
                "children": "https://api.engineyard.com/provider-locations/4396493c-73bc-4933-955d-a6a5bac3b213/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/4396493c-73bc-4933-955d-a6a5bac3b213/flavors/compute"
              },
              {
                "id": "cb31f7fe-e3d8-4c55-92d5-f6bc71a1b927",
                "created_at": "2018-04-12T18:15:20+00:00",
                "updated_at": "2018-04-12T18:15:20+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/115",
                "parent": "https://api.engineyard.com/provider-locations/994b4a59-fad6-439f-9544-cb3aec77d82c",
                "children": "https://api.engineyard.com/provider-locations/cb31f7fe-e3d8-4c55-92d5-f6bc71a1b927/provider-locations",
                "compute_flavors": "https://api.engineyard.com/provider-locations/cb31f7fe-e3d8-4c55-92d5-f6bc71a1b927/flavors/compute"
              }
            ]
          }
            
          








List server flavors available in a given provider location

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

Request

          Accept: application/json
          Content-Type: application/json
          
            
          {
          }
            
          

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"
              },
              {
                "id": "r4_large",
                "api_name": "r4.large",
                "dedicated": false,
                "description": "Memory Optimized (R4) Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "r4_large"
              },
              {
                "id": "r4_xlarge",
                "api_name": "r4.xlarge",
                "dedicated": false,
                "description": "Memory Optimized (R4) Extra Large",
                "volume_optimized": true,
                "architecture": 64,
                "name": "r4_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": "13eca47f-7165-4187-825e-4e944b22803d",
              "created_at": "2018-04-12T18:15:24+00:00",
              "updated_at": "2018-04-12T18:15:25+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/117",
              "parent": null,
              "children": "https://api.engineyard.com/provider-locations/13eca47f-7165-4187-825e-4e944b22803d/provider-locations",
              "compute_flavors": "https://api.engineyard.com/provider-locations/13eca47f-7165-4187-825e-4e944b22803d/flavors/compute"
            }
          }