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/12e71bee-8376-43ff-8d29-45e930ad23d8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDV9.jAMt5aK1nWOH8ueg0fDk70p5_RimPbaVQPBtgLGGUlU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDV9.jAMt5aK1nWOH8ueg0fDk70p5_RimPbaVQPBtgLGGUlU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "12e71bee-8376-43ff-8d29-45e930ad23d8",
    "url": "/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8",
    "created_at": "2015-08-06T00:36:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/12e71bee-8376-43ff-8d29-45e930ad23d8/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c11b8d03-e3e7-46b3-bab0-bca273fe900d
Content-Length: 419
X-Content-Type-Options: nosniff