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.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTM0fQ.8UkZErXSm7wfyHOvsKebC_tZJ9pePz4Iq9VPTQa3j8Q
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.eyJ1c2VyX2lkIjoidWFhLWlkLTkyIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTM0fQ.8UkZErXSm7wfyHOvsKebC_tZJ9pePz4Iq9VPTQa3j8Q" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8a53d689-4e90-4048-8176-bef6a04f6e99
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": "3499075a-0aa0-4984-8ef5-2a52eece2fc8",
        "url": "/v2/config/staging_security_groups/3499075a-0aa0-4984-8ef5-2a52eece2fc8",
        "created_at": "2014-11-05T01:02:14+00:00",
        "updated_at": null
      },
      "entity": {
        "name": "name-328",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": false,
        "staging_default": true
      }
    }
  ]
}