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/fd72792e-8aaa-4c88-86f8-bf6f4fcb8961/spaces/62b3e749-5111-46ab-a24c-2f4c00db68bf

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

cURL

curl "https://api.[your-domain.com]/v2/space_quota_definitions/fd72792e-8aaa-4c88-86f8-bf6f4fcb8961/spaces/62b3e749-5111-46ab-a24c-2f4c00db68bf" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNyIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5NX0.l_xFlovEmmSGDcWDB0QnCw3ZLTfx1iMKjhv7ESmDs2k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fd72792e-8aaa-4c88-86f8-bf6f4fcb8961",
    "url": "/v2/space_quota_definitions/fd72792e-8aaa-4c88-86f8-bf6f4fcb8961",
    "created_at": "2016-04-22T19:33:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-275",
    "organization_guid": "b41dade7-83f3-44c4-8af2-a627b4891d1f",
    "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/b41dade7-83f3-44c4-8af2-a627b4891d1f",
    "spaces_url": "/v2/space_quota_definitions/fd72792e-8aaa-4c88-86f8-bf6f4fcb8961/spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a6418f4-b5d7-4dbb-a582-2d4b21ac6491
Content-Length: 777
X-Content-Type-Options: nosniff