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

Request

Route

GET /v2/config/staging_security_groups

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzV9.Y1hTdKo3-521ANFSfewrGZYGJ6DmjsIU8pH39fHlFPY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOCIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5NzV9.Y1hTdKo3-521ANFSfewrGZYGJ6DmjsIU8pH39fHlFPY" \
	-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": "49f6a8d0-a447-48ae-a470-14e87c8a90d3",
        "url": "/v2/config/staging_security_groups/49f6a8d0-a447-48ae-a470-14e87c8a90d3",
        "created_at": "2015-03-18T22:52:55Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-1217",
        "rules": [
          {
            "protocol": "udp",
            "ports": "8080",
            "destination": "198.41.191.47/1"
          }
        ],
        "running_default": false,
        "staging_default": true
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c920de7f-8303-4bba-9bc0-c232912e58d5
Content-Length: 646
X-Content-Type-Options: nosniff