---
title: "POST /v1/{+parent}/quotaRules"
method: POST
path: "/v1/{+parent}/quotaRules"
tags: ["projects"]
---

# POST /v1/{+parent}/quotaRules

`POST /v1/{+parent}/quotaRules`

Creates a new quota rule.

## Path parameters

- `parent` string, required

## Query parameters

- `quotaRuleId` string

## Request body

- QuotaRule — QuotaRule specifies the maximum disk space a user or group can use within a volume. They can be used for creating default and individual quota rules.
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'UPDATING' | 'DELETING' | 'READY' | 'ERROR' — Output only. State of the quota rule
  - `description` string — Optional. Description of the quota rule
  - `type` 'TYPE_UNSPECIFIED' | 'INDIVIDUAL_USER_QUOTA' | 'INDIVIDUAL_GROUP_QUOTA' | 'DEFAULT_USER_QUOTA' | 'DEFAULT_GROUP_QUOTA' — Required. The type of quota rule.
  - `name` string — Identifier. The resource name of the quota rule. Format: `projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}`.
  - `target` string — Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
  - `diskLimitMib` integer — Required. The maximum allowed disk space in MiB.
  - `labels` object — Optional. Labels of the quota rule
  - `stateDetails` string — Output only. State details of the quota rule
  - `createTime` string, google-datetime — Output only. Create time of the quota rule

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/netapp.md) · [All operations](https://skmtc.net/google/apis/netapp/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/netapp/revisions/fa9ebea9e9dc/schema)
