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/5117ceee-fdee-4dec-be3b-fb9c53b355bd

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/5117ceee-fdee-4dec-be3b-fb9c53b355bd" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjJ9.BWOV8OEz5hK6d6hgElI4bBT6gKcIeg2xlynuQPSakkk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5117ceee-fdee-4dec-be3b-fb9c53b355bd",
    "url": "/v2/config/running_security_groups/5117ceee-fdee-4dec-be3b-fb9c53b355bd",
    "created_at": "2015-10-15T23:52:42Z",
    "updated_at": "2015-10-15T23:52:42Z"
  },
  "entity": {
    "name": "name-2189",
    "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: b2a4d4e2-3b7b-41ab-b3fd-8775cca701d2
Content-Length: 477
X-Content-Type-Options: nosniff