Home
Version 3
Security Group Running Defaults API

Security Group Running Defaults API

Set a Security Group as a default for running Apps

PUT /v2/config/running_security_groups/:guid

Request

Route

PUT /v2/config/running_security_groups/22d32678-8ea5-4f00-a5b6-8c6654cf2e32

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjV9.nTLe4gc0fmnD6uXwsPozgAldp49mlZE6haDD_JRuYcY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/22d32678-8ea5-4f00-a5b6-8c6654cf2e32" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjV9.nTLe4gc0fmnD6uXwsPozgAldp49mlZE6haDD_JRuYcY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "22d32678-8ea5-4f00-a5b6-8c6654cf2e32",
    "url": "/v2/config/running_security_groups/22d32678-8ea5-4f00-a5b6-8c6654cf2e32",
    "created_at": "2015-06-16T23:41:05Z",
    "updated_at": "2015-06-16T23:41:05Z"
  },
  "entity": {
    "name": "name-2208",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": true,
    "staging_default": false
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 404b378a-008f-43f0-88ea-1053e0fdca37
Content-Length: 477
X-Content-Type-Options: nosniff