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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDF9.sgL4C9opJiGoOD6niF34ipGhNR86-wLYvhn1n4DF6zM Host: example.org Cookie:
GET /v2/organizations/c11afed3-bf56-4deb-8aba-43d754b32be9/spaces
curl "https://api.[your-domain.com]/v2/organizations/c11afed3-bf56-4deb-8aba-43d754b32be9/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDF9.sgL4C9opJiGoOD6niF34ipGhNR86-wLYvhn1n4DF6zM" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 6bf9ea35-afd0-46da-86d2-f64aa1232ff8 Content-Length: 1458 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "bce16385-3e22-4837-8ec6-c59e21eb2c82", "url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82", "created_at": "2015-02-12T01:42:21Z", "updated_at": null }, "entity": { "name": "name-1941", "organization_guid": "c11afed3-bf56-4deb-8aba-43d754b32be9", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/c11afed3-bf56-4deb-8aba-43d754b32be9", "developers_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/developers", "managers_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/managers", "auditors_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/auditors", "apps_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/apps", "routes_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/routes", "domains_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/domains", "service_instances_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/service_instances", "app_events_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/app_events", "events_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/events", "security_groups_url": "/v2/spaces/bce16385-3e22-4837-8ec6-c59e21eb2c82/security_groups" } } ] }