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/d7b3089c-b329-439d-9f47-5daef140a6a8

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTN9.IX8wQm29hnOZYNn5Uo6OOByMi0xzF-VCMARbhtKz10o
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/d7b3089c-b329-439d-9f47-5daef140a6a8" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTN9.IX8wQm29hnOZYNn5Uo6OOByMi0xzF-VCMARbhtKz10o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d7b3089c-b329-439d-9f47-5daef140a6a8",
    "url": "/v2/config/staging_security_groups/d7b3089c-b329-439d-9f47-5daef140a6a8",
    "created_at": "2015-04-07T19:11:53Z",
    "updated_at": "2015-04-07T19:11:53Z"
  },
  "entity": {
    "name": "name-1567",
    "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: cb31dc03-7071-41bf-8363-f1c92b538903
Content-Length: 477
X-Content-Type-Options: nosniff