GET /v2/spaces/539f0bbd-b727-41e5-86a5-1c79f51b2565/security_groups?security_group_guid=00bee0e1-593c-46b1-bfd9-cd1d55c4156e
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
security_group_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 |
|
|
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 |
|
|
security_group_guid: 00bee0e1-593c-46b1-bfd9-cd1d55c4156e
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY4IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.aIgboQfvhXN7qI7On8cA5nCN7iGR6HEtzRPknCPSZdk Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/539f0bbd-b727-41e5-86a5-1c79f51b2565/security_groups?security_group_guid=00bee0e1-593c-46b1-bfd9-cd1d55c4156e" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY4IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.aIgboQfvhXN7qI7On8cA5nCN7iGR6HEtzRPknCPSZdk" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "af76d4b0-c8fd-47cb-ad2a-8cf304418937", "url": "/v2/security_groups/af76d4b0-c8fd-47cb-ad2a-8cf304418937", "created_at": "2015-10-13T17:31:37Z", "updated_at": null }, "entity": { "name": "name-161", "rules": [ { "protocol": "udp", "ports": "8080", "destination": "198.41.191.47/1" } ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/af76d4b0-c8fd-47cb-ad2a-8cf304418937/spaces" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: e6fa8847-1510-4305-9a8a-05b5e6a11d4a Content-Length: 720 X-Content-Type-Options: nosniff