Name | Description | Default | Valid Values | Example Values |
---|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzV9.yjJXz4uvmrBrmJu93-x5aYu5oM0HNFjVmbGOKi1ajQ0 Host: example.org Cookie:
GET /v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327/spaces
curl "https://api.[your-domain.com]/v2/security_groups/32b8532a-ec24-434a-9ea9-3e5a6db66327/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzV9.yjJXz4uvmrBrmJu93-x5aYu5oM0HNFjVmbGOKi1ajQ0" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 4b6c8ac7-49ef-4430-8783-d0072f8fd5d3 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": "71ce6be4-a188-453b-86e0-7d8fa4229ed6", "url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6", "created_at": "2015-01-27T19:14:34Z", "updated_at": null }, "entity": { "name": "name-1375", "organization_guid": "77f1f3dc-b0ad-498c-8e65-f4fac5f4d5ff", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/77f1f3dc-b0ad-498c-8e65-f4fac5f4d5ff", "developers_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/developers", "managers_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/managers", "auditors_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/auditors", "apps_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/apps", "routes_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/routes", "domains_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/domains", "service_instances_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/service_instances", "app_events_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/app_events", "events_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/events", "security_groups_url": "/v2/spaces/71ce6be4-a188-453b-86e0-7d8fa4229ed6/security_groups" } } ] }