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.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Mn0.AslMO0UP2j_OdLE08LwXumIxVMosLKycaQJSdDgDbRs
Host: example.org
Cookie: 

Route

GET /v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224

cURL

curl "https://api.[your-domain.com]/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Mn0.AslMO0UP2j_OdLE08LwXumIxVMosLKycaQJSdDgDbRs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7d813411-a39a-4721-8784-0fa064ddffd3
Content-Length: 419
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "138030d6-5b21-4a72-a3ab-5d9fa6d96224",
    "url": "/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224",
    "created_at": "2015-02-10T01:42:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/138030d6-5b21-4a72-a3ab-5d9fa6d96224/spaces"
  }
}