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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.b5Z3Ujb73KdsrW8qCX_v4VGUU6b7uEOiTOSQdBc8f_o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTl9.b5Z3Ujb73KdsrW8qCX_v4VGUU6b7uEOiTOSQdBc8f_o" \
	-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": "875c3f8c-f2be-45bc-8a9f-f1aad9caaafa",
        "url": "/v2/config/staging_security_groups/875c3f8c-f2be-45bc-8a9f-f1aad9caaafa",
        "created_at": "2015-07-06T23:23:19Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-2226",
        "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: 92fb3cff-dda7-4f46-a739-b50227a020f8
Content-Length: 646
X-Content-Type-Options: nosniff