GET /v2/organizations/0b8a1ffd-9ebc-435c-b42f-5a3c8a8d6734/spaces
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Organization |
|
|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: name, organization_guid, developer_guid, app_guid |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQyfQ.NS5iVJCVgTDQ-2A1FQECi_92MBM5yjK9JguZNUi6lMM Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/organizations/0b8a1ffd-9ebc-435c-b42f-5a3c8a8d6734/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQyfQ.NS5iVJCVgTDQ-2A1FQECi_92MBM5yjK9JguZNUi6lMM" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "a72d843b-ea5a-4c9c-828f-be0b49a31739", "url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739", "created_at": "2015-03-20T18:27:22Z", "updated_at": null }, "entity": { "name": "name-151", "organization_guid": "0b8a1ffd-9ebc-435c-b42f-5a3c8a8d6734", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/0b8a1ffd-9ebc-435c-b42f-5a3c8a8d6734", "developers_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/developers", "managers_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/managers", "auditors_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/auditors", "apps_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/apps", "routes_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/routes", "domains_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/domains", "service_instances_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/service_instances", "app_events_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/app_events", "events_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/events", "security_groups_url": "/v2/spaces/a72d843b-ea5a-4c9c-828f-be0b49a31739/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 58ca81bd-f3eb-4660-b0b2-2c11c719f65a Content-Length: 1457 X-Content-Type-Options: nosniff