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/59705ec4-a8fe-49a5-816b-98ab5370be0a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5Njl9.1JYo_MpqayGj3f--1HtNH9AmAGmek-m-pgLEomK_paI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5Njl9.1JYo_MpqayGj3f--1HtNH9AmAGmek-m-pgLEomK_paI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "59705ec4-a8fe-49a5-816b-98ab5370be0a",
    "url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a",
    "created_at": "2015-10-15T23:52:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/59705ec4-a8fe-49a5-816b-98ab5370be0a/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aa0c2efa-bd73-41c6-ba8d-50804489af19
Content-Length: 419
X-Content-Type-Options: nosniff