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/390531e9-4c5e-47a3-ac9b-e419f7816ed1

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OSIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.0uO5opISWZvWB2IcaBZ1eYmV-cjh3rhNPNkZ4rxpmYE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/390531e9-4c5e-47a3-ac9b-e419f7816ed1" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OSIsImVtYWlsIjoiZW1haWwtODJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.0uO5opISWZvWB2IcaBZ1eYmV-cjh3rhNPNkZ4rxpmYE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "390531e9-4c5e-47a3-ac9b-e419f7816ed1",
    "url": "/v2/config/running_security_groups/390531e9-4c5e-47a3-ac9b-e419f7816ed1",
    "created_at": "2015-10-13T17:31:40Z",
    "updated_at": "2015-10-13T17:31:40Z"
  },
  "entity": {
    "name": "name-289",
    "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: c5172c85-94d0-411f-9344-26d30f8f03e9
Content-Length: 476
X-Content-Type-Options: nosniff