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/b8d91aeb-1967-495b-a287-8814ce7bbed0/spaces/5aa4eac1-b034-4261-90ed-d2e6c3ecf76f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4OX0.48zQdyRZqOC-r9BP38Vz1kiUhi-SnEUATrB75qjE9jI
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/b8d91aeb-1967-495b-a287-8814ce7bbed0/spaces/5aa4eac1-b034-4261-90ed-d2e6c3ecf76f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4OX0.48zQdyRZqOC-r9BP38Vz1kiUhi-SnEUATrB75qjE9jI" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b8d91aeb-1967-495b-a287-8814ce7bbed0",
    "url": "/v2/space_quota_definitions/b8d91aeb-1967-495b-a287-8814ce7bbed0",
    "created_at": "2016-06-08T16:41:29Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-1475",
    "organization_guid": "359e824f-34b3-4be2-9e68-3aaafc20b0a0",
    "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/359e824f-34b3-4be2-9e68-3aaafc20b0a0",
    "spaces_url": "/v2/space_quota_definitions/b8d91aeb-1967-495b-a287-8814ce7bbed0/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5d9f486f-664f-4a54-a6ee-3256bb475438
Content-Length: 778
X-Content-Type-Options: nosniff