Home
Version 3
Security Groups API

Security Groups API

Retrieve a Particular Security Group

GET /v2/security_groups/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Security Group

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjN9.Pn4z3JcOJIYhu7NzSUg8AZzeuoabj50M0W4ruaifI8Q
Host: example.org
Cookie: 

Route

GET /v2/security_groups/28d6f4c6-d9b9-4b12-b2b4-0c2cbb391f95

cURL

curl "https://api.[your-domain.com]/v2/security_groups/28d6f4c6-d9b9-4b12-b2b4-0c2cbb391f95" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjN9.Pn4z3JcOJIYhu7NzSUg8AZzeuoabj50M0W4ruaifI8Q" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0c806b2e-c97a-4ec1-9175-23e02f820e2b
Content-Length: 424
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "28d6f4c6-d9b9-4b12-b2b4-0c2cbb391f95",
    "url": "/v2/security_groups/28d6f4c6-d9b9-4b12-b2b4-0c2cbb391f95",
    "created_at": "2014-11-24T19:32:34+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/28d6f4c6-d9b9-4b12-b2b4-0c2cbb391f95/spaces"
  }
}