Home
Version 3
Security Group Running Defaults API

Security Group Running Defaults API

Return the Security Groups used for running Apps

GET /v2/config/running_security_groups

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzV9.l5WDSfEL8GonurUU3_gtKEDELn6dw8EWvP9uemfR128
Host: example.org
Cookie: 

Route

GET /v2/config/running_security_groups

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzV9.l5WDSfEL8GonurUU3_gtKEDELn6dw8EWvP9uemfR128" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ff41e3f1-8378-4efd-af91-e01d26cdb697
Content-Length: 646
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "f39f47ab-0ce1-46de-95b5-8fbe37b255bd",
        "url": "/v2/config/running_security_groups/f39f47ab-0ce1-46de-95b5-8fbe37b255bd",
        "created_at": "2015-01-27T19:14:35Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-1401",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": true,
        "staging_default": false
      }
    }
  ]
}