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/02004b00-8932-40be-8f6a-b8500afec4b5

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/02004b00-8932-40be-8f6a-b8500afec4b5" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDl9.ltNv3VzkGR5eZH5DVf6VM_POZfF4f99IfR3i5AOdC9Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "02004b00-8932-40be-8f6a-b8500afec4b5",
    "url": "/v2/config/running_security_groups/02004b00-8932-40be-8f6a-b8500afec4b5",
    "created_at": "2015-08-31T21:50:09Z",
    "updated_at": "2015-08-31T21:50:09Z"
  },
  "entity": {
    "name": "name-1046",
    "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: 14376cbd-97d0-4999-98f6-2ab0df5c676d
Content-Length: 477
X-Content-Type-Options: nosniff