Home
Version 3
Security Group Staging Defaults API

Security Group Staging Defaults API

Set a Security Group as a default for staging

PUT /v2/config/staging_security_groups/:guid

Fields

Name Description Default Valid Values Example Values

Request

Headers

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

Route

PUT /v2/config/staging_security_groups/d62a43b1-1eaf-495c-b705-e90c24471a0d

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/d62a43b1-1eaf-495c-b705-e90c24471a0d" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzYyfQ.xZnJ8315xbQJf3cpDPfPlKBS9qsKR_tgrdHUauYt1a8" \
	-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: cc0e6e73-02cd-446c-a995-3ab23e4ef616
Content-Length: 475
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "d62a43b1-1eaf-495c-b705-e90c24471a0d",
    "url": "/v2/config/staging_security_groups/d62a43b1-1eaf-495c-b705-e90c24471a0d",
    "created_at": "2015-02-10T01:42:42Z",
    "updated_at": "2015-02-10T01:42:42Z"
  },
  "entity": {
    "name": "name-39",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": false,
    "staging_default": true
  }
}