Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the User |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjcwMn0.0gDqiZCDb8YdGlmv8mi8lkEBPKdPCgBoTD74H2pew94 Host: example.org Cookie:
GET /v2/users/uaa-id-102/spaces
curl "https://api.[your-domain.com]/v2/users/uaa-id-102/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjcwMn0.0gDqiZCDb8YdGlmv8mi8lkEBPKdPCgBoTD74H2pew94" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: cf2f6ffc-1918-4f7b-977a-e366f4f411bd 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": "85be849b-3b62-49a4-adab-87fc49ff7c9f", "url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f", "created_at": "2014-11-13T23:38:22+00:00", "updated_at": null }, "entity": { "name": "name-542", "organization_guid": "220b197f-e568-4c45-bb33-b85b2e8a303a", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/220b197f-e568-4c45-bb33-b85b2e8a303a", "developers_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/developers", "managers_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/managers", "auditors_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/auditors", "apps_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/apps", "routes_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/routes", "domains_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/domains", "service_instances_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/service_instances", "app_events_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/app_events", "events_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/events", "security_groups_url": "/v2/spaces/85be849b-3b62-49a4-adab-87fc49ff7c9f/security_groups" } } ] }