Home
Version 3
Spaces API

Spaces API

Associate Security Group with the Space

PUT /v2/spaces/:guid/security_groups/:security_group_guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.i_73K4voRB_9vyUa_orswnfCI4SE7f60tUhRBwwKh1U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/security_groups/593ed989-a9b7-4d26-8998-2489dcb55a0d

cURL

curl "https://api.[your-domain.com]/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/security_groups/593ed989-a9b7-4d26-8998-2489dcb55a0d" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.i_73K4voRB_9vyUa_orswnfCI4SE7f60tUhRBwwKh1U" \
	-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: ef1d80f9-b610-4613-b104-8301ec95ae91
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b",
    "url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b",
    "created_at": "2014-12-24T01:39:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-114",
    "organization_guid": "c3fefaef-ca84-4faa-83d4-a5ab9747ec17",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/c3fefaef-ca84-4faa-83d4-a5ab9747ec17",
    "developers_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/developers",
    "managers_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/managers",
    "auditors_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/auditors",
    "apps_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/apps",
    "routes_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/routes",
    "domains_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/domains",
    "service_instances_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/service_instances",
    "app_events_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/app_events",
    "events_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/events",
    "security_groups_url": "/v2/spaces/bddc4310-3c6e-4218-9e2d-b9b97c4f5b2b/security_groups"
  }
}