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/41cc6e75-33f7-4e65-8574-08b1afffadcd

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTV9.IQOXPXVxw7xmphqD4MTG1IzRKsf6EiTFKKa_BGicvAA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/41cc6e75-33f7-4e65-8574-08b1afffadcd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NyIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTV9.IQOXPXVxw7xmphqD4MTG1IzRKsf6EiTFKKa_BGicvAA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "41cc6e75-33f7-4e65-8574-08b1afffadcd",
    "url": "/v2/security_groups/41cc6e75-33f7-4e65-8574-08b1afffadcd",
    "created_at": "2015-09-30T23:30:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/41cc6e75-33f7-4e65-8574-08b1afffadcd/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 43ab0b50-e605-4b81-93d7-aefcf352c823
Content-Length: 419
X-Content-Type-Options: nosniff