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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.1clArK6AT6RvXx8YKmg5J8jMSSl2ztd4zuXOscxofMk
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.1clArK6AT6RvXx8YKmg5J8jMSSl2ztd4zuXOscxofMk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d68d86e0-d9f6-4659-ba65-b18661f8ea8c
Content-Length: 650
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "b21ccb6e-3384-44c8-a4fc-d6f04d92c72b",
        "url": "/v2/config/running_security_groups/b21ccb6e-3384-44c8-a4fc-d6f04d92c72b",
        "created_at": "2014-11-24T19:32:30+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "name-280",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": true,
        "staging_default": false
      }
    }
  ]
}