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/94ce525c-5a97-4955-b2b3-2378cf91c947

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDF9.A4YAz3iLxc_z144EWZaeQdHntVd7mJfL1WTRACoCHMk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/94ce525c-5a97-4955-b2b3-2378cf91c947" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDF9.A4YAz3iLxc_z144EWZaeQdHntVd7mJfL1WTRACoCHMk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "94ce525c-5a97-4955-b2b3-2378cf91c947",
    "url": "/v2/security_groups/94ce525c-5a97-4955-b2b3-2378cf91c947",
    "created_at": "2016-04-16T01:23:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/94ce525c-5a97-4955-b2b3-2378cf91c947/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 259cb350-15c0-4e38-bdc2-7099311ef699
Content-Length: 419
X-Content-Type-Options: nosniff