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

Route

PUT /v2/config/staging_security_groups/a8184c30-6500-4d37-8fa4-d84c3848089b

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/a8184c30-6500-4d37-8fa4-d84c3848089b" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOCIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDd9.MlpC6fVG7efopI7QncuXvsHqg_4Po7pR5_Hnm2iDryY" \
	-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: 79d6b44a-3076-4909-b158-1361bb9ca266
Content-Length: 477
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "a8184c30-6500-4d37-8fa4-d84c3848089b",
    "url": "/v2/config/staging_security_groups/a8184c30-6500-4d37-8fa4-d84c3848089b",
    "created_at": "2015-02-13T22:35:07Z",
    "updated_at": "2015-02-13T22:35:07Z"
  },
  "entity": {
    "name": "name-1924",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": false,
    "staging_default": true
  }
}