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/310e1911-e69b-4a6c-abd7-be5fd6f75cdb

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/310e1911-e69b-4a6c-abd7-be5fd6f75cdb" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDZ9.NZ6OzXzuDMahYMhcVi0gzjT9SsNa9UDtzf7wIdU_reA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "310e1911-e69b-4a6c-abd7-be5fd6f75cdb",
    "url": "/v2/config/running_security_groups/310e1911-e69b-4a6c-abd7-be5fd6f75cdb",
    "created_at": "2015-11-03T00:54:06Z",
    "updated_at": "2015-11-03T00:54:06Z"
  },
  "entity": {
    "name": "name-1195",
    "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: 89ef87c5-60f6-45d8-b149-fdbe77166c00
Content-Length: 477
X-Content-Type-Options: nosniff