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/886af93c-7983-47a4-8d18-4b60ac7f85c1

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjN9.nw8zHWFd68xelhXvXWV1P3Z3lMH51dQtraCuHIEG6yw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/886af93c-7983-47a4-8d18-4b60ac7f85c1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NjN9.nw8zHWFd68xelhXvXWV1P3Z3lMH51dQtraCuHIEG6yw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "886af93c-7983-47a4-8d18-4b60ac7f85c1",
    "url": "/v2/security_groups/886af93c-7983-47a4-8d18-4b60ac7f85c1",
    "created_at": "2015-03-20T18:27:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/886af93c-7983-47a4-8d18-4b60ac7f85c1/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 805f791a-4480-4572-b316-6b5bca316a12
Content-Length: 419
X-Content-Type-Options: nosniff