dcloud ecr repositories updateChange visibility, tag immutability or description
Only the fields given change. Public is reversible on purpose. tagMutability "immutable" refuses a push that would move an existing tag to a different image (re-pushing the same image is fine); tagMutabilityExclusions are * globs, e.g. ["latest"], that stay mutable.
Synopsis
dcloud ecr repositories update id [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--visibilityOptionalenum
private: every pull needs a credential with ecr:PullImage. public: anyone can pull this repository’s images without credentials (read-only, and only the layers its own images reference). Unchanged when omitted; public is reversible at any time
One of:
private,public--tag-mutabilityOptionalenum
immutable: a push that would move an existing tag to a different image is refused (re-pushing the same image is fine; deleting the tag is still allowed). Unchanged when omitted
One of:
mutable,immutable--tag-mutability-exclusionsOptionalarray of string
Up to 10 tag patterns (letters, digits, _ . - and * as a glob, 1–128 characters) that stay mutable in an immutable repository, e.g. ["latest", "main-*"]. Replaces the list; unchanged when omitted
Constraints: 1-128 chars, /^[A-Za-z0-9_.*-]+$/
--descriptionOptionalstring
Free text, up to 256 characters; null clears it; unchanged when omitted
Constraints: max 256 chars
May be null.
--storage-quota-bytesOptionalnumber
Cap in bytes on every layer this repository holds, shared ones included: 1 MiB (1048576) to 1 PiB. null: no repository cap (the organization quota still applies). A push over it is refused; lowering it deletes nothing. Unchanged when omitted
Constraints: integer, 1048576-1125899906842624
May be null.
Example
dcloud ecr repositories update idGenerated from the API description, the same one the API checks requests against and the CLI is built from.