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

Route

PUT /v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/security_groups/1417d2b4-6e05-4c13-af01-a8953641e11c

cURL

curl "https://api.[your-domain.com]/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/security_groups/1417d2b4-6e05-4c13-af01-a8953641e11c" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.UmancUSKpZ3wNr5takAErmgG4SaR1f2i6OmkQe7aF0s" \
	-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: 27b63cb7-8c30-4d44-a250-1aaca6e090de
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "fa184f35-26ea-40f6-808b-0194178a9087",
    "url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087",
    "created_at": "2014-11-24T19:32:47+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-972",
    "organization_guid": "bd60987f-61ea-466a-92b8-1a8522b2699c",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/bd60987f-61ea-466a-92b8-1a8522b2699c",
    "developers_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/developers",
    "managers_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/managers",
    "auditors_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/auditors",
    "apps_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/apps",
    "routes_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/routes",
    "domains_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/domains",
    "service_instances_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/service_instances",
    "app_events_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/app_events",
    "events_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/events",
    "security_groups_url": "/v2/spaces/fa184f35-26ea-40f6-808b-0194178a9087/security_groups"
  }
}