Home
Version 3
Security Group Staging Defaults API

Security Group Staging Defaults API

Return the Security Groups used for staging

GET /v2/config/staging_security_groups

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzU2fQ.SDBsGACDoVoB_GNZuDMrxQ7wdutHbpb-EMPEJr_aZeo
Host: example.org
Cookie: 

Route

GET /v2/config/staging_security_groups

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzU2fQ.SDBsGACDoVoB_GNZuDMrxQ7wdutHbpb-EMPEJr_aZeo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bbfaffe8-e5f9-40f7-8ec8-b0ae9e94d637
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": "b07a1d0b-bfa2-4c14-ad38-d1ca9b6c2111",
        "url": "/v2/config/staging_security_groups/b07a1d0b-bfa2-4c14-ad38-d1ca9b6c2111",
        "created_at": "2014-11-24T19:32:36+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "name-470",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": false,
        "staging_default": true
      }
    }
  ]
}