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.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC02MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.xpK3q0B7xbK1ulE9JnNGiNBByijIQ0BROESb5h89SEI
Host: example.org
Cookie: 

Route

GET /v2/security_groups/3a35e0ac-8f4b-4988-8355-9a2eb4566dd7

cURL

curl "https://api.[your-domain.com]/v2/security_groups/3a35e0ac-8f4b-4988-8355-9a2eb4566dd7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC02MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.xpK3q0B7xbK1ulE9JnNGiNBByijIQ0BROESb5h89SEI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c6b97e26-1d02-4fb7-97cb-13628924a873
Content-Length: 424
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "3a35e0ac-8f4b-4988-8355-9a2eb4566dd7",
    "url": "/v2/security_groups/3a35e0ac-8f4b-4988-8355-9a2eb4566dd7",
    "created_at": "2014-11-13T23:38:13+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/3a35e0ac-8f4b-4988-8355-9a2eb4566dd7/spaces"
  }
}