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

Request

Route

GET /v2/config/running_security_groups

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODZ9.xJ_yJ9UVPpf6LCXVPT1d1NTk2ND_4TQelJiiWym1w_E
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "cba3533c-9f4d-49e3-806a-a75540a7b8df",
        "url": "/v2/config/running_security_groups/cba3533c-9f4d-49e3-806a-a75540a7b8df",
        "created_at": "2015-12-22T18:28:06Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-713",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": true,
        "staging_default": false
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 645
X-Content-Type-Options: nosniff