GET /v2/security_groups/22677b6c-47a3-48a1-96e7-6dd74467ea94/spaces
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Security Group |
|
|
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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTN9.4cxRJeuyYWKaOpSX5RDBv2sJLpXO6n7sWzwlO-Unc_w Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/security_groups/22677b6c-47a3-48a1-96e7-6dd74467ea94/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTN9.4cxRJeuyYWKaOpSX5RDBv2sJLpXO6n7sWzwlO-Unc_w" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1", "url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1", "created_at": "2015-04-15T00:55:53Z", "updated_at": null }, "entity": { "name": "name-2148", "organization_guid": "f7a1c334-e2a2-46cf-81fe-f9d897b37226", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/f7a1c334-e2a2-46cf-81fe-f9d897b37226", "developers_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/developers", "managers_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/managers", "auditors_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/auditors", "apps_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/apps", "routes_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/routes", "domains_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/domains", "service_instances_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/service_instances", "app_events_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/app_events", "events_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/events", "security_groups_url": "/v2/spaces/66d0cc23-bc46-4b33-a2d5-c0bc79dc63e1/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 12e13d6d-29b2-466c-b592-365fa04414b4 Content-Length: 1458 X-Content-Type-Options: nosniff