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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOSIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Nn0.K4gPV4KYiKmvSjFOHsK-M4NP7A7OFYQViaXTlwpFYLg Host: example.org Cookie:
GET /v2/users/uaa-id-128/managed_spaces
curl "https://api.[your-domain.com]/v2/users/uaa-id-128/managed_spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOSIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Nn0.K4gPV4KYiKmvSjFOHsK-M4NP7A7OFYQViaXTlwpFYLg" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 875144f6-af55-4e9b-a14f-f8e19ac2a93a Content-Length: 1457 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "7cbe5c06-6d8c-465a-a30a-3a9a97373942", "url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942", "created_at": "2015-02-10T01:42:46Z", "updated_at": null }, "entity": { "name": "name-288", "organization_guid": "52fd0c91-530b-4259-9908-290afa5638e0", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/52fd0c91-530b-4259-9908-290afa5638e0", "developers_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/developers", "managers_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/managers", "auditors_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/auditors", "apps_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/apps", "routes_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/routes", "domains_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/domains", "service_instances_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/service_instances", "app_events_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/app_events", "events_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/events", "security_groups_url": "/v2/spaces/7cbe5c06-6d8c-465a-a30a-3a9a97373942/security_groups" } } ] }