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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNSIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MH0.1Oyt8TtilvUUNxZZrxWEWJDqJ1DA3fa635NManUpTQg
Host: example.org
Cookie: 

Route

GET /v2/security_groups/6c2b3e58-20d9-4c14-9810-bebd95a7090a

cURL

curl "https://api.[your-domain.com]/v2/security_groups/6c2b3e58-20d9-4c14-9810-bebd95a7090a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNSIsImVtYWlsIjoiZW1haWwtNzdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MH0.1Oyt8TtilvUUNxZZrxWEWJDqJ1DA3fa635NManUpTQg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5fe7a95d-1374-4f46-8aaa-50bf9e06a401
Content-Length: 419
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "6c2b3e58-20d9-4c14-9810-bebd95a7090a",
    "url": "/v2/security_groups/6c2b3e58-20d9-4c14-9810-bebd95a7090a",
    "created_at": "2015-02-13T22:34:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/6c2b3e58-20d9-4c14-9810-bebd95a7090a/spaces"
  }
}