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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.3uXzcKP_emZM0CN9d9i6O70OFYotb_oQrrd36w2Jlxw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/running_security_groups/cbe6daf1-f6b0-4ebf-b7a1-db9fb29fc7c1

cURL

curl "https://api.[your-domain.com]/v2/config/running_security_groups/cbe6daf1-f6b0-4ebf-b7a1-db9fb29fc7c1" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUwfQ.3uXzcKP_emZM0CN9d9i6O70OFYotb_oQrrd36w2Jlxw" \
	-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: 4020f60e-b3d4-44d4-8f67-8fa0d90601f3
Content-Length: 486
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "cbe6daf1-f6b0-4ebf-b7a1-db9fb29fc7c1",
    "url": "/v2/config/running_security_groups/cbe6daf1-f6b0-4ebf-b7a1-db9fb29fc7c1",
    "created_at": "2014-11-24T19:32:30+00:00",
    "updated_at": "2014-11-24T19:32:30+00:00"
  },
  "entity": {
    "name": "name-277",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": true,
    "staging_default": false
  }
}