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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOCIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.tmnIvbvLklTE0vCyxdRDa7gk7VZOyuQePQerNOm7WGc
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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOCIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.tmnIvbvLklTE0vCyxdRDa7gk7VZOyuQePQerNOm7WGc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b04863a4-f55f-4a1c-bc5a-98532f67c0e2
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": "74b07f67-9fdc-4acf-84b7-09a07795bf3e",
        "url": "/v2/config/running_security_groups/74b07f67-9fdc-4acf-84b7-09a07795bf3e",
        "created_at": "2015-02-10T01:42:54Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-1537",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": true,
        "staging_default": false
      }
    }
  ]
}