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/2d83e509-7bda-40c5-9be7-188008c8afb2

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTd9.5Uw1Hdu0-ynx03Qb3Qt_js2EH4Pw0HyK72trBp0tU-c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/2d83e509-7bda-40c5-9be7-188008c8afb2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTd9.5Uw1Hdu0-ynx03Qb3Qt_js2EH4Pw0HyK72trBp0tU-c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "2d83e509-7bda-40c5-9be7-188008c8afb2",
    "url": "/v2/security_groups/2d83e509-7bda-40c5-9be7-188008c8afb2",
    "created_at": "2015-05-15T16:53:33Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/2d83e509-7bda-40c5-9be7-188008c8afb2/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 80007cac-51e0-4085-adc4-2f1013d50d77
Content-Length: 419
X-Content-Type-Options: nosniff