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/596f6670-c139-4529-9d6a-d8f790929c6e

Parameters

Name Description Valid Values Example Values
guid The guid of the Security Group

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU3fQ.LOU4ZnF_FjaREG4jBtYEbC1SEi0DjlV0zEFEEPW_Q70
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjU3fQ.LOU4ZnF_FjaREG4jBtYEbC1SEi0DjlV0zEFEEPW_Q70" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "596f6670-c139-4529-9d6a-d8f790929c6e",
    "url": "/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e",
    "created_at": "2015-03-03T00:50:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "dummy1",
    "rules": [

    ],
    "running_default": false,
    "staging_default": false,
    "spaces_url": "/v2/security_groups/596f6670-c139-4529-9d6a-d8f790929c6e/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c5c58f7f-080c-4b85-8f2c-57c824fb3b08
Content-Length: 419
X-Content-Type-Options: nosniff