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/d9ef013b-c531-4b16-8c71-56292635d715

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ2fQ.1yP_7w9Vcnybruok2uoSJp12UrkSLlsa6Oa3cBxrc5k
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/d9ef013b-c531-4b16-8c71-56292635d715" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ2fQ.1yP_7w9Vcnybruok2uoSJp12UrkSLlsa6Oa3cBxrc5k" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d9ef013b-c531-4b16-8c71-56292635d715",
    "url": "/v2/security_groups/d9ef013b-c531-4b16-8c71-56292635d715",
    "created_at": "2015-06-16T23:40:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/d9ef013b-c531-4b16-8c71-56292635d715/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8974372f-ee78-41bb-b6aa-21df5334a564
Content-Length: 419
X-Content-Type-Options: nosniff