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/de5bcb13-5d9d-4660-a690-c7038342a8c7/spaces/8cbf321c-f4d2-4031-9630-aebeb2889cf5

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MCIsImVtYWlsIjoiZW1haWwtMzAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjl9.hvfy6hw2BDDMRikYCeRyRfZevs-Sg-BnY7UXLCziX5I
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/de5bcb13-5d9d-4660-a690-c7038342a8c7/spaces/8cbf321c-f4d2-4031-9630-aebeb2889cf5" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MCIsImVtYWlsIjoiZW1haWwtMzAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjl9.hvfy6hw2BDDMRikYCeRyRfZevs-Sg-BnY7UXLCziX5I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "de5bcb13-5d9d-4660-a690-c7038342a8c7",
    "url": "/v2/space_quota_definitions/de5bcb13-5d9d-4660-a690-c7038342a8c7",
    "created_at": "2016-05-12T00:45:29Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2480",
    "organization_guid": "7c1db98a-bdc9-481a-843c-4b2712a6ff2c",
    "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,
    "total_reserved_route_ports": -1,
    "organization_url": "/v2/organizations/7c1db98a-bdc9-481a-843c-4b2712a6ff2c",
    "spaces_url": "/v2/space_quota_definitions/de5bcb13-5d9d-4660-a690-c7038342a8c7/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc2541c6-8e66-460f-b940-7db81a5ce68a
Content-Length: 778
X-Content-Type-Options: nosniff