dcloud ecr lifecycle-defaults preview

What the default would expire across every inheriting repository, as if active

IAM ecr:GetLifecyclePolicyRead

A dry run, nothing changes. Without a body it runs the saved default; with {"policy": …} it runs that draft instead. `images` lists every image (the first 5,000; `totalImages` counts all) with `action`, `reason` and `by`, what decided it.

Synopsis

dcloud ecr lifecycle-defaults preview [flags]

Flags

  • --policyOptional

    object

    A draft default in ews-lifecycle/v1 to dry-run instead of the saved one. Omitted (or no body at all): the saved default, else the platform default

    Constraints: JSON

Example

dcloud ecr lifecycle-defaults preview

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