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/a3715004-6a1a-4291-b252-3966d7fa89de

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDV9.vX_pZfUYGoDu2xKhqKM1ji8Gzj43nqj3nZ1jgZzE3lM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDV9.vX_pZfUYGoDu2xKhqKM1ji8Gzj43nqj3nZ1jgZzE3lM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a3715004-6a1a-4291-b252-3966d7fa89de",
    "url": "/v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de",
    "created_at": "2015-09-11T18:38:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/a3715004-6a1a-4291-b252-3966d7fa89de/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e534d830-d1ce-4fc1-994a-49ddb552d326
Content-Length: 419
X-Content-Type-Options: nosniff