Name | Description | Default | Valid Values | Example Values |
---|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1OH0.1fqWl13N_QfI7knzs2y1xePLbYyS9j0xmuJUd4kSQ8Y Host: example.org Cookie:
GET /v2/organizations/6ca98a18-6664-4bb7-822e-8141320670bd/spaces
curl "https://api.[your-domain.com]/v2/organizations/6ca98a18-6664-4bb7-822e-8141320670bd/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1OH0.1fqWl13N_QfI7knzs2y1xePLbYyS9j0xmuJUd4kSQ8Y" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 02a9b7be-86ab-47d9-ae63-dd6e1f0e710b Content-Length: 1462 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "d2c01d38-eb8c-425c-acb5-3696116c705f", "url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f", "created_at": "2014-11-24T19:32:38+00:00", "updated_at": null }, "entity": { "name": "name-515", "organization_guid": "6ca98a18-6664-4bb7-822e-8141320670bd", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/6ca98a18-6664-4bb7-822e-8141320670bd", "developers_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/developers", "managers_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/managers", "auditors_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/auditors", "apps_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/apps", "routes_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/routes", "domains_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/domains", "service_instances_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/service_instances", "app_events_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/app_events", "events_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/events", "security_groups_url": "/v2/spaces/d2c01d38-eb8c-425c-acb5-3696116c705f/security_groups" } } ] }