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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzJ9.I5kK_pPTnMqyp6Sh6cz452H7UUEQm-ARCRSCNqaO574
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/staging_security_groups/fa019668-1070-436a-9ca4-0e0eb8ae4892

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/fa019668-1070-436a-9ca4-0e0eb8ae4892" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzJ9.I5kK_pPTnMqyp6Sh6cz452H7UUEQm-ARCRSCNqaO574" \
	-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: d5d9cd3a-6752-4e24-890f-1dd5203b8456
Content-Length: 487
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "fa019668-1070-436a-9ca4-0e0eb8ae4892",
    "url": "/v2/config/staging_security_groups/fa019668-1070-436a-9ca4-0e0eb8ae4892",
    "created_at": "2014-12-24T01:39:32+00:00",
    "updated_at": "2014-12-24T01:39:32+00:00"
  },
  "entity": {
    "name": "name-1470",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": false,
    "staging_default": true
  }
}