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/dbc8b22c-6beb-4e3f-aa02-760b3943746f

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTF9.OsD4u2MlQ8uNNyWL-Cwtnk8aWqQRYSqVCWJRILtNDqk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/dbc8b22c-6beb-4e3f-aa02-760b3943746f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTF9.OsD4u2MlQ8uNNyWL-Cwtnk8aWqQRYSqVCWJRILtNDqk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "dbc8b22c-6beb-4e3f-aa02-760b3943746f",
    "url": "/v2/security_groups/dbc8b22c-6beb-4e3f-aa02-760b3943746f",
    "created_at": "2015-07-06T23:23:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/dbc8b22c-6beb-4e3f-aa02-760b3943746f/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 105ae6fb-f1ba-40c7-9097-b283b17fcefe
Content-Length: 419
X-Content-Type-Options: nosniff