Home
Version 3
Security Group Staging Defaults API

Security Group Staging Defaults API

Set a Security Group as a default for staging

PUT /v2/config/staging_security_groups/:guid

Request

Route

PUT /v2/config/staging_security_groups/59bd7eb7-b951-4157-b585-a5c87adc9ff3

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTB9.4c6w1Ch_I5B8sy709kXuha08YTw3zSTHpxitZFUzHVo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/59bd7eb7-b951-4157-b585-a5c87adc9ff3" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTB9.4c6w1Ch_I5B8sy709kXuha08YTw3zSTHpxitZFUzHVo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "59bd7eb7-b951-4157-b585-a5c87adc9ff3",
    "url": "/v2/config/staging_security_groups/59bd7eb7-b951-4157-b585-a5c87adc9ff3",
    "created_at": "2015-09-30T23:30:50Z",
    "updated_at": "2015-09-30T23:30:50Z"
  },
  "entity": {
    "name": "name-1682",
    "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: 897b8b00-9f81-43b9-8d35-3017a74359dd
Content-Length: 477
X-Content-Type-Options: nosniff