Home
Version 3
Security Groups API

Security Groups API

Retrieve a Particular Security Group

GET /v2/security_groups/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Security Group

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDN9.3Yze8c_2abnyCXjYHTj20jAX7qTAq7I2T4yfBTK6QV4
Host: example.org
Cookie: 

Route

GET /v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf

cURL

curl "https://api.[your-domain.com]/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDN9.3Yze8c_2abnyCXjYHTj20jAX7qTAq7I2T4yfBTK6QV4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7f9565b1-80c1-4565-aebf-0e678c186205
Content-Length: 424
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "5e9d4c04-a516-441c-bf41-115d044128cf",
    "url": "/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf",
    "created_at": "2014-11-05T01:02:07+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/5e9d4c04-a516-441c-bf41-115d044128cf/spaces"
  }
}