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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTN9.1aKGvv0ODJ7vJjw9YzkqA5Mk8Ad9Bf1tOMuF4hVI7zQ
Host: example.org
Cookie: 

Route

GET /v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc

cURL

curl "https://api.[your-domain.com]/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTN9.1aKGvv0ODJ7vJjw9YzkqA5Mk8Ad9Bf1tOMuF4hVI7zQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0cfb65ed-5a24-4acb-9521-e0af2353dc34
Content-Length: 424
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "0b01769e-6e56-486e-8368-8f682cb707cc",
    "url": "/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc",
    "created_at": "2015-01-20T01:52:15+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/0b01769e-6e56-486e-8368-8f682cb707cc/spaces"
  }
}