dcloud ec2 snapshot-policies update

Change, pause or resume a snapshot policy

IAM ec2:UpdateSnapshotPolicyChanges state

Synopsis

dcloud ec2 snapshot-policies update id [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: /^esp-[0-9a-f]{6,32}$/

Flags

  • --nameOptional

    string

    A display name

    Constraints: 1-64 chars

  • --descriptionOptional

    string

    Free text; null clears it

    Constraints: max 255 chars

    May be null.

  • --enabledOptional

    boolean (--enabled / --no-enabled)

    A paused policy takes nothing and keeps its images

  • --target-instance-idsOptional

    array of string

    Instances to snapshot (i-…)

    Constraints: /^i-[0-9a-f]{6,32}$/

  • --target-tagsOptional

    map of string

    Also snapshot every instance that carries all of these tags

    Constraints: key=value

  • --interval-hoursOptional

    number

    Hours between runs: 1, 2, 3, 4, 6, 8, 12, 24 or 168 (weekly, on Mondays)

    Constraints: integer

  • --start-timeOptional

    string

    HH:MM UTC; runs fall on this time plus whole intervals

    Constraints: /^([01]\d|2[0-3]):[0-5]\d$/

  • --retain-countOptional

    number

    Images kept per instance; older ones this policy took are deregistered

    Constraints: integer, 1-100

Example

dcloud ec2 snapshot-policies update id

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