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/a42ebb91-81d4-4be0-ab76-e682a88adf01/spaces/91409875-8273-4f95-b046-a74327c95147

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/a42ebb91-81d4-4be0-ab76-e682a88adf01/spaces/91409875-8273-4f95-b046-a74327c95147" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MCIsImVtYWlsIjoiZW1haWwtMzM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzR9.XMNIg51BVGc6Vks4alnNT5eFratSgqdnFtmO4eFwaZ8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a42ebb91-81d4-4be0-ab76-e682a88adf01",
    "url": "/v2/space_quota_definitions/a42ebb91-81d4-4be0-ab76-e682a88adf01",
    "created_at": "2015-10-15T23:52:54Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2513",
    "organization_guid": "738c333c-c8ec-461b-8b0c-20e62aa9f56a",
    "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/738c333c-c8ec-461b-8b0c-20e62aa9f56a",
    "spaces_url": "/v2/space_quota_definitions/a42ebb91-81d4-4be0-ab76-e682a88adf01/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 813bd718-5078-482a-aa63-b97eebc6d17d
Content-Length: 684
X-Content-Type-Options: nosniff