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/28448490-1f15-4265-aac2-a8d8afb6fe70

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MSIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MjB9.WnNdRze3QJAUN6PwUhZTmcSb9iudHmWJOFUCWG6F2pM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MSIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MjB9.WnNdRze3QJAUN6PwUhZTmcSb9iudHmWJOFUCWG6F2pM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "28448490-1f15-4265-aac2-a8d8afb6fe70",
    "url": "/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70",
    "created_at": "2015-04-07T19:11:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/28448490-1f15-4265-aac2-a8d8afb6fe70/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ddeb4f97-01e7-4efc-9107-b9ae1c062420
Content-Length: 419
X-Content-Type-Options: nosniff