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/3c616b6f-27d4-4d89-b392-86613cc0d763

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDR9.Bld1YcQ1VzrpCqojWEAvkPDLJroudUnO1Yym5xwCYd4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/3c616b6f-27d4-4d89-b392-86613cc0d763" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOSIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDR9.Bld1YcQ1VzrpCqojWEAvkPDLJroudUnO1Yym5xwCYd4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3c616b6f-27d4-4d89-b392-86613cc0d763",
    "url": "/v2/security_groups/3c616b6f-27d4-4d89-b392-86613cc0d763",
    "created_at": "2016-04-22T19:33:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/3c616b6f-27d4-4d89-b392-86613cc0d763/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6cdfcd98-00b4-4c78-a0ba-61a72a9f1dfe
Content-Length: 419
X-Content-Type-Options: nosniff