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/d4286de0-af07-46c1-94ec-be906d830d50

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5NX0.CXf22apyw59UfDjqAkmvDHSEdc--nA5gNy0Gt9PL0hw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/d4286de0-af07-46c1-94ec-be906d830d50" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5NX0.CXf22apyw59UfDjqAkmvDHSEdc--nA5gNy0Gt9PL0hw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d4286de0-af07-46c1-94ec-be906d830d50",
    "url": "/v2/config/staging_security_groups/d4286de0-af07-46c1-94ec-be906d830d50",
    "created_at": "2015-10-13T17:31:35Z",
    "updated_at": "2015-10-13T17:31:35Z"
  },
  "entity": {
    "name": "name-55",
    "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: a28f7aad-4cb8-47ca-8730-6ce39cdc8719
Content-Length: 475
X-Content-Type-Options: nosniff