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

Route

PUT /v2/space_quota_definitions/f1cf0174-35c6-4dfb-a7c6-7ac4df074e4f/spaces/44a4779e-3e79-46a0-8d79-eb4acefc3ae3

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/f1cf0174-35c6-4dfb-a7c6-7ac4df074e4f/spaces/44a4779e-3e79-46a0-8d79-eb4acefc3ae3" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDJ9.YVtSOr9OJiPdSvkuGMvOuGZeO3DI7ZpkAHkQHvSKqh4" \
	-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: 451e7152-86d9-4267-b56f-708dd6728fb0
Content-Length: 659
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "f1cf0174-35c6-4dfb-a7c6-7ac4df074e4f",
    "url": "/v2/space_quota_definitions/f1cf0174-35c6-4dfb-a7c6-7ac4df074e4f",
    "created_at": "2015-01-20T01:52:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1391",
    "organization_guid": "406bfcc9-e0d9-4dc0-a8e4-24132a0aeabc",
    "non_basic_services_allowed": true,
    "total_services": 60,
    "total_routes": 1000,
    "memory_limit": 20480,
    "instance_memory_limit": -1,
    "organization_url": "/v2/organizations/406bfcc9-e0d9-4dc0-a8e4-24132a0aeabc",
    "spaces_url": "/v2/space_quota_definitions/f1cf0174-35c6-4dfb-a7c6-7ac4df074e4f/spaces"
  }
}