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

Fields

Name Description Default Valid Values Example Values

Request

Headers

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

Route

PUT /v2/config/running_security_groups/7f60e78c-ac29-44a3-bdbb-af8383be9299

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/7f60e78c-ac29-44a3-bdbb-af8383be9299" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNjUyNjY5NH0.Cn9medeoZpt97eA9pSis3TPuxHuyHeq94C9KEXcCnho" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1503d06c-75b1-4894-88d8-d56e4e5ff2d3
Content-Length: 484
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "7f60e78c-ac29-44a3-bdbb-af8383be9299",
    "url": "/v2/config/running_security_groups/7f60e78c-ac29-44a3-bdbb-af8383be9299",
    "created_at": "2014-11-13T23:38:14+00:00",
    "updated_at": "2014-11-13T23:38:14+00:00"
  },
  "entity": {
    "name": "name-1",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": true,
    "staging_default": false
  }
}