# ResourceQuota

ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespace.apiVersion: v1import "k8s.io/api/core/v1"ResourceQuotaResourceQuota sets aggregate quota restrictions enforced per namespaceapiVersion: v1kind: ResourceQuotametadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (ResourceQuotaSpec)Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusstatus (ResourceQuotaStatus)Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusResourceQuotaSpecResourceQuotaSpec defines the desired hard limits to enforce for Quota.hard (map[string]Quantity)hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/scopeSelector (ScopeSelector)scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)Atomic: will be replaced during a mergeA list of scope selector requirements by scope of the resources.A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.scopeSelector.matchExpressions.operator (string), requiredRepresents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.scopeSelector.matchExpressions.scopeName (string), requiredThe name of the scope that the selector applies to.scopeSelector.matchExpressions.values ([]string)Atomic: will be replaced during a mergeAn array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.scopes ([]string)Atomic: will be replaced during a mergeA collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.ResourceQuotaStatusResourceQuotaStatus defines the enforced hard limits and observed use.hard (map[string]Quantity)Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/used (map[string]Quantity)Used is the current observed total usage of the resource in the namespace.ResourceQuotaListResourceQuotaList is a list of ResourceQuota items.apiVersion: v1kind: ResourceQuotaListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]ResourceQuota), requiredItems is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/Operationsget read the specified ResourceQuotaHTTP RequestGET /api/v1/namespaces/{namespace}/resourcequotas/{name}Parametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ResourceQuota): OK401: Unauthorizedget read status of the specified ResourceQuotaHTTP RequestGET /api/v1/namespaces/{namespace}/resourcequotas/{name}/statusParametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ResourceQuota): OK401: Unauthorizedlist list or watch objects of kind ResourceQuotaHTTP RequestGET /api/v1/namespaces/{namespace}/resourcequotasParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ResourceQuotaList): OK401: Unauthorizedlist list or watch objects of kind ResourceQuotaHTTP RequestGET /api/v1/resourcequotasParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ResourceQuotaList): OK401: Unauthorizedcreate create a ResourceQuotaHTTP RequestPOST /api/v1/namespaces/{namespace}/resourcequotasParametersnamespace (in path): string, requirednamespacebody: ResourceQuota, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ResourceQuota): OK201 (ResourceQuota): Created202 (ResourceQuota): Accepted401: Unauthorizedupdate replace the specified ResourceQuotaHTTP RequestPUT /api/v1/namespaces/{namespace}/resourcequotas/{name}Parametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacebody: ResourceQuota, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ResourceQuota): OK201 (ResourceQuota): Created401: Unauthorizedupdate replace status of the specified ResourceQuotaHTTP RequestPUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/statusParametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacebody: ResourceQuota, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ResourceQuota): OK201 (ResourceQuota): Created401: Unauthorizedpatch partially update the specified ResourceQuotaHTTP RequestPATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}Parametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ResourceQuota): OK201 (ResourceQuota): Created401: Unauthorizedpatch partially update status of the specified ResourceQuotaHTTP RequestPATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/statusParametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ResourceQuota): OK201 (ResourceQuota): Created401: Unauthorizeddelete delete a ResourceQuotaHTTP RequestDELETE /api/v1/namespaces/{namespace}/resourcequotas/{name}Parametersname (in path): string, requiredname of the ResourceQuotanamespace (in path): string, requirednamespacebody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (ResourceQuota): OK202 (ResourceQuota): Accepted401: Unauthorizeddeletecollection delete collection of ResourceQuotaHTTP RequestDELETE /api/v1/namespaces/{namespace}/resourcequotasParametersnamespace (in path): string, requirednamespacebody: DeleteOptionscontinue (in query): stringcontinuedryRun (in query): stringdryRunfieldSelector (in query): stringfieldSelectorgracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentiallabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondsResponse200 (Status): OK401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.