dcloud ecr storage put-quota

Set the organization's storage quota

IAM ecr:PutRegistryStorageQuotaChanges state

A push (or pull-through fill) that would store more is refused with DENIED and the numbers; a layer already stored always passes. A repository has its own storageQuotaBytes (PATCH /ecr/api/repositories/{id}). Lowering a quota deletes nothing.

Synopsis

dcloud ecr storage put-quota --quota-bytes quotaBytes

Flags

  • --quota-bytesRequired

    number

    Cap in bytes on the layers in the organization’s repositories, each counted once: 1 MiB (1048576) to 1 PiB. null removes it. Required. A push over it is refused; lowering it deletes nothing. The platform quota applies too, whichever is lower

    Constraints: integer, 1048576-1125899906842624

    May be null.

Example

dcloud ecr storage put-quota --quota-bytes 1

Generated from the API description, the same one the API checks requests against and the CLI is built from.