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/32b04b25-031c-42ce-bf9b-e2d62bf0d0cf/spaces/8bc5cf86-0b9e-43d7-9e32-95e3bb2b8c29

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/32b04b25-031c-42ce-bf9b-e2d62bf0d0cf/spaces/8bc5cf86-0b9e-43d7-9e32-95e3bb2b8c29" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MiIsImVtYWlsIjoiZW1haWwtMTgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzh9.hoAlMmrpISt9XSVtKVbkfkxJc2m9e0PKCOXrBgme9Xg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "32b04b25-031c-42ce-bf9b-e2d62bf0d0cf",
    "url": "/v2/space_quota_definitions/32b04b25-031c-42ce-bf9b-e2d62bf0d0cf",
    "created_at": "2016-02-19T02:03:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2111",
    "organization_guid": "4ca98671-2211-4d59-8ef2-566f4053c19e",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "app_instance_limit": -1,
    "app_task_limit": 5,
    "organization_url": "/v2/organizations/4ca98671-2211-4d59-8ef2-566f4053c19e",
    "spaces_url": "/v2/space_quota_definitions/32b04b25-031c-42ce-bf9b-e2d62bf0d0cf/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 709
X-Content-Type-Options: nosniff