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/3e4f9d08-a7f0-44f5-9296-46042127bf36

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjR9.vU2i-C7lSAPEORX8RByT9YZF4F80_OhmUPpkyG_Hwpo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NjR9.vU2i-C7lSAPEORX8RByT9YZF4F80_OhmUPpkyG_Hwpo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3e4f9d08-a7f0-44f5-9296-46042127bf36",
    "url": "/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36",
    "created_at": "2015-03-18T22:52:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/3e4f9d08-a7f0-44f5-9296-46042127bf36/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b099230a-479b-4154-ad1b-752e9a546240
Content-Length: 419
X-Content-Type-Options: nosniff