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.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.rUGW1OgdxmbHT3oQOGP-x4Q9SzdsE0I9Y9x441Ilo54
Host: example.org
Cookie: 

Route

GET /v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8

cURL

curl "https://api.[your-domain.com]/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIyfQ.rUGW1OgdxmbHT3oQOGP-x4Q9SzdsE0I9Y9x441Ilo54" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: df95377e-deb5-4bc0-8e2a-3d6c0553c1be
Content-Length: 419
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "479b592b-f278-430f-9745-624de4c93fd8",
    "url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8",
    "created_at": "2015-02-12T01:41:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/479b592b-f278-430f-9745-624de4c93fd8/spaces"
  }
}