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/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NCIsImVtYWlsIjoiZW1haWwtMzE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTV9.VDGXTLoNsNljWurm1lFvNwVPEuiu5sNueDW0M7ippqk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NCIsImVtYWlsIjoiZW1haWwtMzE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTV9.VDGXTLoNsNljWurm1lFvNwVPEuiu5sNueDW0M7ippqk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5697b8ff-c2e9-48e3-a3ae-8b57805fd65c",
    "url": "/v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c",
    "created_at": "2016-01-13T17:29:54Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/5697b8ff-c2e9-48e3-a3ae-8b57805fd65c/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 419
X-Content-Type-Options: nosniff