> Documentation index for agents: /hcp/3.3/en/llms.txt

# Set VDC quotas

Change the quotas of a VDC (virtual data center) when its virtual machines (VMs) need more resources or when you need to limit their growth. What each quota means and when Center checks it — [VDCs](/hcp/3.3/en/vdcs/index.md).

## Before you begin

- You need the **Cluster master** role. The web interface shows the **Settings** block to other roles too, but they cannot save changes: Center replies "Access denied".
- You know how much storage the VDC already uses: you cannot set the **Storage (GB)** quota lower than that. If a storage quota is already set, the used storage is shown on the **Storage** chart of the VDC page; the edit form also names it if you enter a smaller value.

If no storage quota is set, see the used storage of the VDC in the `space_gb_used` field of the `vdc-list` API method response — [API reference](/hcp/3.3/en/api/methods/index.md).

## 1. Set the quotas

1. In the left menu, select **Virtual Data Centers** → the VDC. The **Settings** block is at the bottom of the page.
2. Enter the number of cores in the **CPU** field of the **Quotas** section of the **Settings** block.
3. Enter the amount of memory in the **RAM (GB)** field.
4. Enter the amount of storage in the **Storage (GB)** field.
5. If needed, enter the quota for VM snapshot storage in the **Snapshots** field of the **Secondary limits** section, in GB.

A quota is a whole number of 0 or more; the field does not accept other values: **Enter a whole number of 0 or more**. An empty field means no quota. 0 is the strictest quota: no VM gets this resource, and with the **Snapshots** quota set to 0, VM snapshots are not created. In the creation form and in the edit form, 0 means different things: in the **Create a Virtual Data Center** window, 0, like an empty field, means no quota ([Create a VDC](/hcp/3.3/en/vdcs/create-vdc/index.md)).

The form does not accept a **Storage (GB)** quota below the used storage: the field shows **Quota cannot be lower than the current usage: \<used> GB**, and the **Save changes** button becomes unavailable.

If you lower the **CPU** or **RAM (GB)** quota below the used amount, running VMs do not stop, but the next VM cannot be started. If you lower the **Snapshots** quota below the storage that snapshots already use, existing snapshots stay, but new ones are not created.

## 2. Save the changes

1. Click **Save changes** at the bottom of the **Settings** block. The button is available when at least one value has changed and all fields are filled in correctly.

## Check the result

The web interface shows the notification **VDC \<name> changed successfully**. The new values are shown in the **Quotas**, **Oversubscription** and **Limits** rows of the VDC summary and on the **CPU**, **Memory** and **Storage** charts.

If saving fails, the web interface shows a notification with the error, and the values stay the same:

- "VDC space quota \<N> GB is below the used space \<M> GB" — the storage quota is less than the used storage: storage was taken while the form was being edited. Set at least \<M> or free up storage.
- "Access denied" — you do not have the **Cluster master** role.

When the **Snapshots** quota is used up, VM snapshot creation fails with the error **Snapshot quota exceeded: \<N> GB of \<M> GB used. Delete old snapshots or raise the VDC snapshot quota.** — [Create a VM snapshot and roll back to it](/hcp/3.3/en/vms/manage-vm-snapshots/index.md).

## More

- **Name** and **Description** (the **General** section of the **Settings** block) — rename the VDC and change its description. The name is up to 64 characters, the description up to 512.
- The fields of the **Oversubscription factor** section accept a number of 0 or more, with a dot for the fractional part.
- **Cancel** at the bottom of the **Settings** block restores the saved values in all fields.

## Next

- [VDCs](/hcp/3.3/en/vdcs/index.md) — quotas and roles.
- [Create a VM](/hcp/3.3/en/vms/create-vm/index.md)
- [Change vCPU and memory](/hcp/3.3/en/vms/change-vm-resources/index.md)

API methods: `vdc-set` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
