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/e45e3b21-7969-4285-a534-4b3c0349cffd/spaces/b1f928bc-74de-430a-a2de-0335e01c332d

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM3fQ.1IEK2mngnj7kLV5_DtaGwURnpwWCr-pcMearbg4sDD4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/e45e3b21-7969-4285-a534-4b3c0349cffd/spaces/b1f928bc-74de-430a-a2de-0335e01c332d" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM3fQ.1IEK2mngnj7kLV5_DtaGwURnpwWCr-pcMearbg4sDD4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e45e3b21-7969-4285-a534-4b3c0349cffd",
    "url": "/v2/space_quota_definitions/e45e3b21-7969-4285-a534-4b3c0349cffd",
    "created_at": "2016-04-06T00:17:17Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-85",
    "organization_guid": "9ff6a839-5532-43d1-94e9-d56f28fcf078",
    "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,
    "total_service_keys": 600,
    "organization_url": "/v2/organizations/9ff6a839-5532-43d1-94e9-d56f28fcf078",
    "spaces_url": "/v2/space_quota_definitions/e45e3b21-7969-4285-a534-4b3c0349cffd/spaces"
  }
}

Headers

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