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

Parameters

Name Description Valid Values Example Values
page Page of results to fetch
results-per-page Number of results per page
order-direction Order of the results: asc (default) or desc

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtNzZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.1auiDpI20794h05ocknWeM3Z43sGmejPImkl_6ePQ5o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtNzZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.1auiDpI20794h05ocknWeM3Z43sGmejPImkl_6ePQ5o" \
	-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": "611bd883-4b93-403f-af92-3283de22e3f0",
        "url": "/v2/config/staging_security_groups/611bd883-4b93-403f-af92-3283de22e3f0",
        "created_at": "2016-06-08T16:41:27Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-1372",
        "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: 582d0f66-d02a-45cf-b2b8-ff3124328524
Content-Length: 646
X-Content-Type-Options: nosniff