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/b1af6d7e-0bd6-4c85-bfee-04e414947d7e

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjYzNX0.Rd8U78H4pWMxanJCgZPZNl2aDbqXpfh8tQjhLvM6zR4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/b1af6d7e-0bd6-4c85-bfee-04e414947d7e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjYzNX0.Rd8U78H4pWMxanJCgZPZNl2aDbqXpfh8tQjhLvM6zR4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b1af6d7e-0bd6-4c85-bfee-04e414947d7e",
    "url": "/v2/security_groups/b1af6d7e-0bd6-4c85-bfee-04e414947d7e",
    "created_at": "2016-04-06T00:17:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/b1af6d7e-0bd6-4c85-bfee-04e414947d7e/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 419
X-Content-Type-Options: nosniff