Home
Version 3
Security Groups API

Security Groups API

Retrieve a Particular Security Group

GET /v2/security_groups/:guid

Request

Route

GET /v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDF9.1nHbczYtajnH8t4Pc03xHWsBBbIozFyI_dwmsvBnCRI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDF9.1nHbczYtajnH8t4Pc03xHWsBBbIozFyI_dwmsvBnCRI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f331aa11-b39e-4577-8c80-59d374f28364",
    "url": "/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364",
    "created_at": "2015-11-03T00:53:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/f331aa11-b39e-4577-8c80-59d374f28364/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ca63f351-5c51-4f3c-a63e-e69ca444ebbd
Content-Length: 419
X-Content-Type-Options: nosniff