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/72264b3d-e1cd-45cc-af73-75a7720a0f6a

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.Arg5x-zpr3PEpYJs5ox8gywkl5vRo_zrQUWQU80LTNU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/72264b3d-e1cd-45cc-af73-75a7720a0f6a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.Arg5x-zpr3PEpYJs5ox8gywkl5vRo_zrQUWQU80LTNU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "72264b3d-e1cd-45cc-af73-75a7720a0f6a",
    "url": "/v2/security_groups/72264b3d-e1cd-45cc-af73-75a7720a0f6a",
    "created_at": "2015-05-21T01:03:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/72264b3d-e1cd-45cc-af73-75a7720a0f6a/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1bbf63b3-5f26-4bf0-b570-e53335c6b8bb
Content-Length: 419
X-Content-Type-Options: nosniff