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/5b955729-4274-401a-b869-82137b78ecff

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2NSIsImVtYWlsIjoiZW1haWwtMzMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDh9.QpjVuyfkAthSWVkVAYwoxNzGKtL8UcytrG3j6GFMnw0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2NSIsImVtYWlsIjoiZW1haWwtMzMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDh9.QpjVuyfkAthSWVkVAYwoxNzGKtL8UcytrG3j6GFMnw0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5b955729-4274-401a-b869-82137b78ecff",
    "url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff",
    "created_at": "2015-10-07T00:35:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/5b955729-4274-401a-b869-82137b78ecff/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 814ce506-e043-4981-95b2-457349932a38
Content-Length: 419
X-Content-Type-Options: nosniff