Back to top

Facilities

Facility Management

Retrieve all facilities
GET
/facilities

Provides a listing of available datacenters where you can provision Packet devices.

  •  
  • Response Body Show Hide
  • Request URL Show Hide
  • cURL Show Hide
  • Response  200   ok
  • {
    	"facilities": [
    		{
    			"id": "string",
    			"name": "string",
    			"code": "string",
    			"features": [
    				"string"
    			],
    			"address": {
    				"address": "string",
    				"address2": "string",
    				"city": "string",
    				"state": "string",
    				"zip_code": "string",
    				"country": "string",
    				"coordinates": {
    					"$ref": "#\/definitions\/Coordinates"
    				}
    			}
    		}
    	]
    }
  • Response  401   unauthorized
Retrieve all facilities visible by the project
GET
/projects/{id}/facilities

Returns a listing of available datacenters for the given project

  • Parameters
  • id
    string  (required) in path

    Project UUID

    include
    string in query

    related attributes to include

    page
    integer in query

    page to display, default to 1, max 100_000

    per_page
    integer in query

    items per page, default to 10, max 1_000

  •  
  • Response Body Show Hide
  • Request URL Show Hide
  • cURL Show Hide
  • Response  200   ok
  • {
    	"facilities": [
    		{
    			"id": "string",
    			"name": "string",
    			"code": "string",
    			"features": [
    				"string"
    			],
    			"address": {
    				"address": "string",
    				"address2": "string",
    				"city": "string",
    				"state": "string",
    				"zip_code": "string",
    				"country": "string",
    				"coordinates": {
    					"$ref": "#\/definitions\/Coordinates"
    				}
    			}
    		}
    	]
    }
  • Response  401   unauthorized
  • Response  403   forbidden
  • Response  404   not found