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

Route

PUT /v2/config/staging_security_groups/1ac6ad6a-ef36-4ed3-ac6f-5068d2d816e7

cURL

curl "https://api.[your-domain.com]/v2/config/staging_security_groups/1ac6ad6a-ef36-4ed3-ac6f-5068d2d816e7" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.88eIqMCp989bBOLA6nzQq2Wck_NhgLOMO9YCLOIhDO0" \
	-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: 123d4534-6c96-4202-996b-1718ab465ab9
Content-Length: 486
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "1ac6ad6a-ef36-4ed3-ac6f-5068d2d816e7",
    "url": "/v2/config/staging_security_groups/1ac6ad6a-ef36-4ed3-ac6f-5068d2d816e7",
    "created_at": "2014-11-13T23:38:24+00:00",
    "updated_at": "2014-11-13T23:38:24+00:00"
  },
  "entity": {
    "name": "name-701",
    "rules": [
      {
        "protocol": "udp",
        "ports": "8080",
        "destination": "198.41.191.47/1"
      }
    ],
    "running_default": false,
    "staging_default": true
  }
}