GET /v2/security_groups/6e52c9ae-50df-44a0-949a-032b4c292156/spaces?space_guid=a881700e-598a-4294-ac12-23a2647b60ee
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Security Group |
|
|
space_guid | The guid of the space |
|
|
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 |
|
|
space_guid: a881700e-598a-4294-ac12-23a2647b60ee
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjR9.TvQKBfwk5sVihGG8gICbf_AhFl5AB-pzX_5C0K3WQTA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/security_groups/6e52c9ae-50df-44a0-949a-032b4c292156/spaces?space_guid=a881700e-598a-4294-ac12-23a2647b60ee" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjR9.TvQKBfwk5sVihGG8gICbf_AhFl5AB-pzX_5C0K3WQTA" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "bb1d964b-d00d-480d-960f-db128895a8bd", "url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd", "created_at": "2015-11-13T17:02:44Z", "updated_at": null }, "entity": { "name": "name-1785", "organization_guid": "4005b42b-26de-4061-946a-a423a8c3c7ae", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/4005b42b-26de-4061-946a-a423a8c3c7ae", "developers_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/developers", "managers_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/managers", "auditors_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/auditors", "apps_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/apps", "routes_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/routes", "domains_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/domains", "service_instances_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/service_instances", "app_events_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/app_events", "events_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/events", "security_groups_url": "/v2/spaces/bb1d964b-d00d-480d-960f-db128895a8bd/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 1485 X-Content-Type-Options: nosniff