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

Request

Route

PUT /v2/config/staging_security_groups/5fb7ec19-09f3-4ec7-b50a-9fc50f27dc3c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.Ck2GvL2HNy0KeHbWtpWsn4V-txUp-SIr1H4YDKMFhL0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/5fb7ec19-09f3-4ec7-b50a-9fc50f27dc3c" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTkyfQ.Ck2GvL2HNy0KeHbWtpWsn4V-txUp-SIr1H4YDKMFhL0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5fb7ec19-09f3-4ec7-b50a-9fc50f27dc3c",
    "url": "/v2/config/staging_security_groups/5fb7ec19-09f3-4ec7-b50a-9fc50f27dc3c",
    "created_at": "2015-08-06T00:36:32Z",
    "updated_at": "2015-08-06T00:36:32Z"
  },
  "entity": {
    "name": "name-70",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": false,
    "staging_default": true
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 42e4cd12-9573-405e-8325-3bed11afd03f
Content-Length: 475
X-Content-Type-Options: nosniff