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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzJ9.TXdAZpSUWA8qfsRm65qblkC2oyZZPmX3pa0jf_l0EXA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/running_security_groups/85306ef3-64ef-4b04-a343-7242856aa4cd

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/85306ef3-64ef-4b04-a343-7242856aa4cd" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzJ9.TXdAZpSUWA8qfsRm65qblkC2oyZZPmX3pa0jf_l0EXA" \
	-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: 0621e663-e892-4892-baae-b4a914470226
Content-Length: 477
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "85306ef3-64ef-4b04-a343-7242856aa4cd",
    "url": "/v2/config/running_security_groups/85306ef3-64ef-4b04-a343-7242856aa4cd",
    "created_at": "2015-02-12T01:42:12Z",
    "updated_at": "2015-02-12T01:42:12Z"
  },
  "entity": {
    "name": "name-1392",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": true,
    "staging_default": false
  }
}