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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNSIsImVtYWlsIjoiZW1haWwtODdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxOTk4OTk2N30.dw5bzz76adnYj4A1foT3Eysqi5QAISroj1e-sMihjkI
Host: example.org
Cookie: 

Route

GET /v2/security_groups/bb9f52ce-33be-4675-a81c-cb220ef914b2

cURL

curl "https://api.[your-domain.com]/v2/security_groups/bb9f52ce-33be-4675-a81c-cb220ef914b2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNSIsImVtYWlsIjoiZW1haWwtODdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxOTk4OTk2N30.dw5bzz76adnYj4A1foT3Eysqi5QAISroj1e-sMihjkI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e70a9165-e780-44a5-bf67-da53c7dcdb5c
Content-Length: 424
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "bb9f52ce-33be-4675-a81c-cb220ef914b2",
    "url": "/v2/security_groups/bb9f52ce-33be-4675-a81c-cb220ef914b2",
    "created_at": "2014-12-24T01:39:20+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/bb9f52ce-33be-4675-a81c-cb220ef914b2/spaces"
  }
}