Skip to main content
PUT
Update a file storage directory quota

Authorizations

Authorization
string
header
required

Operation requires OAuth 2.0 bearer token authentication.

Path Parameters

filestorageID
string<uuid>
required

The storage unique identifier. A file storage ID.

filestorageDirectoryQuotaID
string<uuid>
required

The Directory Quota unique identifier. A File Storage Directory Quota ID.

Body

application/json

A request to update a Directory Quota.

A Directory Quota update request.

metadata
object
required

Metadata required for all API resource reads and writes.

spec
object
required

Directory Quota settings on update. The path cannot change, so it is not part of an update. At least one of directoryLimits, defaultUserLimits, defaultGroupLimits or a non-empty rules list is required; a request without any is rejected with 422. When directoryLimits is set, no default or rule limit may exceed it, compared separately for capacityBytes and inodes; a request that does is rejected with 422. directoryLimits.capacityBytes may not exceed the File Storage size. Quotas may be nested, and directoryLimits may not exceed the directoryLimits of a quota on a parent directory, nor be lower than those of a quota on a subdirectory, compared separately for capacityBytes and inodes. A request that breaks either rule is rejected with 422.

Response

A File Storage Directory Quota.

A File Storage Directory Quota.

metadata
object
required

Metadata required by project scoped resource reads.

spec
object
required

Directory Quota settings.

status
object
required

Observed Directory Quota state. Usage is refreshed periodically, so it lags writes. Usage is reported for the whole directory and for subjects with a rule only; subjects limited only by defaultUserLimits or defaultGroupLimits are not reported.