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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/space_quota_definitions/a7f190f0-1b8a-408c-82e7-09ec63e4980d/spaces/04c3de2d-e7c0-4199-ab1e-135cb0c73e7e

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/a7f190f0-1b8a-408c-82e7-09ec63e4980d/spaces/04c3de2d-e7c0-4199-ab1e-135cb0c73e7e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5IiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMxfQ.n9AzjGEaKYkSTibm69nB7CzkxY_FhEip7AB3yvsPAnY" \
	-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: 8966a850-044f-4529-ab7c-01b10a353c17
Content-Length: 658
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a7f190f0-1b8a-408c-82e7-09ec63e4980d",
    "url": "/v2/space_quota_definitions/a7f190f0-1b8a-408c-82e7-09ec63e4980d",
    "created_at": "2014-11-05T01:02:11+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-110",
    "organization_guid": "2cc94ccc-de1d-48d2-a330-e6ad02d2435d",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/2cc94ccc-de1d-48d2-a330-e6ad02d2435d",
    "spaces_url": "/v2/space_quota_definitions/a7f190f0-1b8a-408c-82e7-09ec63e4980d/spaces"
  }
}