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/4af1a3b3-ed2f-4b9f-89b4-c1b7daa5accf/spaces/9f47b587-0e12-4713-af44-6f76cd7ca9be

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.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMxfQ.wP21P7jbkB6sUIi80gynkj-q-lmyYK_95ahDQ6fU8Gk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/4af1a3b3-ed2f-4b9f-89b4-c1b7daa5accf/spaces/9f47b587-0e12-4713-af44-6f76cd7ca9be" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMxfQ.wP21P7jbkB6sUIi80gynkj-q-lmyYK_95ahDQ6fU8Gk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4af1a3b3-ed2f-4b9f-89b4-c1b7daa5accf",
    "url": "/v2/space_quota_definitions/4af1a3b3-ed2f-4b9f-89b4-c1b7daa5accf",
    "created_at": "2015-11-03T00:53:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-507",
    "organization_guid": "839812c2-c439-40f9-8ce2-27b6c281927a",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "app_instance_limit": -1,
    "organization_url": "/v2/organizations/839812c2-c439-40f9-8ce2-27b6c281927a",
    "spaces_url": "/v2/space_quota_definitions/4af1a3b3-ed2f-4b9f-89b4-c1b7daa5accf/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3ea29649-adcb-4942-b413-31993da36200
Content-Length: 683
X-Content-Type-Options: nosniff