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/320fbe85-4dc6-479d-b8fd-468b23356cee

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.sLVCzr3LDPfc4x_AfZ-kNArBdSINPsz5gPmt714nBQs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/320fbe85-4dc6-479d-b8fd-468b23356cee" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2Mzh9.sLVCzr3LDPfc4x_AfZ-kNArBdSINPsz5gPmt714nBQs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "320fbe85-4dc6-479d-b8fd-468b23356cee",
    "url": "/v2/security_groups/320fbe85-4dc6-479d-b8fd-468b23356cee",
    "created_at": "2015-05-07T23:37:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/320fbe85-4dc6-479d-b8fd-468b23356cee/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a02ddf6-e99e-4eca-8493-38808980455c
Content-Length: 419
X-Content-Type-Options: nosniff