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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.r7jtwO65v3cJvuS48BoURtgaDo5YcSByO0qdFnXkIjY Host: example.org Cookie:
GET /v2/users/uaa-id-261/spaces
curl "https://api.[your-domain.com]/v2/users/uaa-id-261/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MiIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.r7jtwO65v3cJvuS48BoURtgaDo5YcSByO0qdFnXkIjY" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 0a516c38-2091-4f9e-8e42-bc134fdeee09 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": "66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0", "url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0", "created_at": "2015-02-13T22:35:00Z", "updated_at": null }, "entity": { "name": "name-1472", "organization_guid": "30b062fe-9d97-4113-998c-fc874ce4f877", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/30b062fe-9d97-4113-998c-fc874ce4f877", "developers_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/developers", "managers_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/managers", "auditors_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/auditors", "apps_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/apps", "routes_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/routes", "domains_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/domains", "service_instances_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/service_instances", "app_events_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/app_events", "events_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/events", "security_groups_url": "/v2/spaces/66cd0fd5-17a4-41d5-8ed6-461b55f2c5c0/security_groups" } } ] }