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/2ee1324d-e622-4305-a26d-d6d2d990ba08/spaces/532333bf-3f23-4faf-80a3-c2563b575775

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDV9.uy1J5Jr5wRFqLX3UrwTTNXBx4fs5fmShGhd7P_hkXtk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/2ee1324d-e622-4305-a26d-d6d2d990ba08/spaces/532333bf-3f23-4faf-80a3-c2563b575775" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDV9.uy1J5Jr5wRFqLX3UrwTTNXBx4fs5fmShGhd7P_hkXtk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2ee1324d-e622-4305-a26d-d6d2d990ba08",
    "url": "/v2/space_quota_definitions/2ee1324d-e622-4305-a26d-d6d2d990ba08",
    "created_at": "2016-03-14T22:30:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2153",
    "organization_guid": "a62604a7-6c3c-4c9f-842f-650e0f4db80a",
    "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/a62604a7-6c3c-4c9f-842f-650e0f4db80a",
    "spaces_url": "/v2/space_quota_definitions/2ee1324d-e622-4305-a26d-d6d2d990ba08/spaces"
  }
}

Headers

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