Home
Version 3
Space Quota Definitions API

Space Quota Definitions API

Associate Space with the Space Quota Definition

PUT /v2/space_quota_definitions/:guid/spaces/:space_guid

Request

Route

PUT /v2/space_quota_definitions/c8b1b8c0-fdd2-4e50-9cdb-855acc5fa23d/spaces/4ee90aa3-e2fd-417a-a4cd-a3023524cf5e

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/c8b1b8c0-fdd2-4e50-9cdb-855acc5fa23d/spaces/4ee90aa3-e2fd-417a-a4cd-a3023524cf5e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDZ9.gXJtVtZpBr0WuHR_VCsUGj7POAi1vgLbPPQXM3viwBw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c8b1b8c0-fdd2-4e50-9cdb-855acc5fa23d",
    "url": "/v2/space_quota_definitions/c8b1b8c0-fdd2-4e50-9cdb-855acc5fa23d",
    "created_at": "2015-03-05T19:15:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-557",
    "organization_guid": "6f2e2464-0c47-42a2-b4ae-ce56bd890278",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/6f2e2464-0c47-42a2-b4ae-ce56bd890278",
    "spaces_url": "/v2/space_quota_definitions/c8b1b8c0-fdd2-4e50-9cdb-855acc5fa23d/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: aa9d4f9d-77a8-45ac-a948-c973edc97eac
Content-Length: 653
X-Content-Type-Options: nosniff