GET /v2/security_groups
Name | Description | Valid Values | Example Values |
---|---|---|---|
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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.USjUEB_SrWfDuvC__ebHlr7-hna3Vni8STWegfkxJS8 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/security_groups" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.USjUEB_SrWfDuvC__ebHlr7-hna3Vni8STWegfkxJS8" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 5, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "320fbe85-4dc6-479d-b8fd-468b23356cee", "url": "/v2/security_groups/320fbe85-4dc6-479d-b8fd-468b23356cee", "created_at": "2015-05-07T23:37:05Z", "updated_at": null }, "entity": { "name": "dummy1", "rules": [ ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/320fbe85-4dc6-479d-b8fd-468b23356cee/spaces" } }, { "metadata": { "guid": "c27d6dcf-dea2-4e2a-98c5-d5b9c2c7441d", "url": "/v2/security_groups/c27d6dcf-dea2-4e2a-98c5-d5b9c2c7441d", "created_at": "2015-05-07T23:37:05Z", "updated_at": null }, "entity": { "name": "dummy2", "rules": [ ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/c27d6dcf-dea2-4e2a-98c5-d5b9c2c7441d/spaces" } }, { "metadata": { "guid": "a633bd72-85ef-4682-b883-69c615bceced", "url": "/v2/security_groups/a633bd72-85ef-4682-b883-69c615bceced", "created_at": "2015-05-07T23:37:18Z", "updated_at": null }, "entity": { "name": "name-1514", "rules": [ { "protocol": "udp", "ports": "8080", "destination": "198.41.191.47/1" } ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/a633bd72-85ef-4682-b883-69c615bceced/spaces" } }, { "metadata": { "guid": "6a591809-d1d9-48ba-84df-15e33c01367c", "url": "/v2/security_groups/6a591809-d1d9-48ba-84df-15e33c01367c", "created_at": "2015-05-07T23:37:18Z", "updated_at": null }, "entity": { "name": "name-1515", "rules": [ { "protocol": "udp", "ports": "8080", "destination": "198.41.191.47/1" } ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/6a591809-d1d9-48ba-84df-15e33c01367c/spaces" } }, { "metadata": { "guid": "c9f10cc1-daef-4e9f-89ed-977a7eec7a30", "url": "/v2/security_groups/c9f10cc1-daef-4e9f-89ed-977a7eec7a30", "created_at": "2015-05-07T23:37:18Z", "updated_at": null }, "entity": { "name": "name-1516", "rules": [ { "protocol": "udp", "ports": "8080", "destination": "198.41.191.47/1" } ], "running_default": false, "staging_default": false, "spaces_url": "/v2/security_groups/c9f10cc1-daef-4e9f-89ed-977a7eec7a30/spaces" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: fa791519-555c-4917-8e76-98b342360acf Content-Length: 2923 X-Content-Type-Options: nosniff