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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMwfQ.wqmAJd2NNtYy-8Q8iPIkoXJNEQ5tgwFp78pKazke8t0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/running_security_groups/c7c5a850-ec41-412e-87d0-d0207c5ff8e0

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/c7c5a850-ec41-412e-87d0-d0207c5ff8e0" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMwfQ.wqmAJd2NNtYy-8Q8iPIkoXJNEQ5tgwFp78pKazke8t0" \
	-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: a420a36b-7b0b-4962-91d1-d3da376dba96
Content-Length: 485
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "c7c5a850-ec41-412e-87d0-d0207c5ff8e0",
    "url": "/v2/config/running_security_groups/c7c5a850-ec41-412e-87d0-d0207c5ff8e0",
    "created_at": "2014-11-05T01:02:10+00:00",
    "updated_at": "2014-11-05T01:02:10+00:00"
  },
  "entity": {
    "name": "name-79",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": true,
    "staging_default": false
  }
}