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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzR9.87LqMFHRO-d_Y_JGCMojZLeoOI2hLfa1H9DyS3ugkBI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/space_quota_definitions/4e659fdc-9d40-4a3f-be57-d0c2466fee40/spaces/b8fcee99-6461-4620-b72b-ac90846233ed

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/4e659fdc-9d40-4a3f-be57-d0c2466fee40/spaces/b8fcee99-6461-4620-b72b-ac90846233ed" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzR9.87LqMFHRO-d_Y_JGCMojZLeoOI2hLfa1H9DyS3ugkBI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: baeb64e1-61ea-4ca1-8cfe-1b0aed2e0b1d
Content-Length: 654
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "4e659fdc-9d40-4a3f-be57-d0c2466fee40",
    "url": "/v2/space_quota_definitions/4e659fdc-9d40-4a3f-be57-d0c2466fee40",
    "created_at": "2015-02-12T01:42:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1501",
    "organization_guid": "c0f17eb1-aba1-420c-a3fc-10c3eb6b9dff",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/c0f17eb1-aba1-420c-a3fc-10c3eb6b9dff",
    "spaces_url": "/v2/space_quota_definitions/4e659fdc-9d40-4a3f-be57-d0c2466fee40/spaces"
  }
}