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/875fa37e-4512-4e3b-ac35-1c842c925069

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNyIsImVtYWlsIjoiZW1haWwtMjg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODl9.xbxR9O0U4j7rDK6dVfoijJ5urD6dn0B1pqJH4Y5T4Sk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/875fa37e-4512-4e3b-ac35-1c842c925069" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNyIsImVtYWlsIjoiZW1haWwtMjg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODl9.xbxR9O0U4j7rDK6dVfoijJ5urD6dn0B1pqJH4Y5T4Sk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "875fa37e-4512-4e3b-ac35-1c842c925069",
    "url": "/v2/security_groups/875fa37e-4512-4e3b-ac35-1c842c925069",
    "created_at": "2016-03-17T21:41:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/875fa37e-4512-4e3b-ac35-1c842c925069/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 419
X-Content-Type-Options: nosniff