GET /v2/security_groups/94e91c57-bac9-4a3b-8d77-2d0b94238f5c/spaces?space_guid=35b71b64-281b-41ea-a3c4-228094c5784f
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: 35b71b64-281b-41ea-a3c4-228094c5784f
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTZ9.4eLnmTprR5YvuA__bjv1Luv3giCyuOapKfD3qjej6Rg Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/security_groups/94e91c57-bac9-4a3b-8d77-2d0b94238f5c/spaces?space_guid=35b71b64-281b-41ea-a3c4-228094c5784f" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTZ9.4eLnmTprR5YvuA__bjv1Luv3giCyuOapKfD3qjej6Rg" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a", "url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a", "created_at": "2015-08-31T21:50:16Z", "updated_at": null }, "entity": { "name": "name-2280", "organization_guid": "16752cd0-7f7c-48ea-8cc8-e877f9828227", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/16752cd0-7f7c-48ea-8cc8-e877f9828227", "developers_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/developers", "managers_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/managers", "auditors_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/auditors", "apps_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/apps", "routes_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/routes", "domains_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/domains", "service_instances_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/service_instances", "app_events_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/app_events", "events_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/events", "security_groups_url": "/v2/spaces/0437056c-8fcc-43cf-bcdb-fecbcd2c5f6a/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 3d129711-f4d0-4ee3-b413-4de013e12439 Content-Length: 1485 X-Content-Type-Options: nosniff