GET /v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjR9.oVQ4vozNft_PBHGU-TJ4wpmOSgYhgADT_dG6ChVGOmY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjR9.oVQ4vozNft_PBHGU-TJ4wpmOSgYhgADT_dG6ChVGOmY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "80169f07-a9f5-4ebf-a408-cf67a57dfc40", "url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40", "created_at": "2015-03-18T22:52:44Z", "updated_at": null }, "entity": { "name": "name-606", "organization_guid": "de68515b-44fd-4385-a0f9-f92c1a0962d7", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/de68515b-44fd-4385-a0f9-f92c1a0962d7", "developers_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/developers", "managers_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/managers", "auditors_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/auditors", "apps_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/apps", "routes_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/routes", "domains_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/domains", "service_instances_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/service_instances", "app_events_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/app_events", "events_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/events", "security_groups_url": "/v2/spaces/80169f07-a9f5-4ebf-a408-cf67a57dfc40/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 732da7cd-2415-46b9-b6fb-e2f7e49591b0 Content-Length: 1457 X-Content-Type-Options: nosniff