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/ebbf839d-b248-4e72-95a2-e95988bfc466

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk0fQ.wjXcF2lF4lbMV-okHFRLO6ulhB5IrjNkd730SjBaV-Q
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/ebbf839d-b248-4e72-95a2-e95988bfc466" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk0fQ.wjXcF2lF4lbMV-okHFRLO6ulhB5IrjNkd730SjBaV-Q" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ebbf839d-b248-4e72-95a2-e95988bfc466",
    "url": "/v2/security_groups/ebbf839d-b248-4e72-95a2-e95988bfc466",
    "created_at": "2015-03-10T23:11:30Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/ebbf839d-b248-4e72-95a2-e95988bfc466/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1ee47f2b-6d96-4b37-8fd3-0b99ab785011
Content-Length: 419
X-Content-Type-Options: nosniff