dcloud s3 bucket-objects restore-version

Make an older version the current one (copied over its key)

IAM s3:PutObjectChanges stateAsks before it deletes (-y skips)

Also needs s3:GetObjectVersion. The older version stays; the copy is a new latest version. The same as CopyObject with x-amz-copy-source: bucket/key?versionId=….

Synopsis

dcloud s3 bucket-objects restore-version name --key key --version-id versionId

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --keyRequired

    string

    Key of the object

    Constraints: min 1 chars

  • --version-idRequired

    string

    The older version to make the current one again

    Constraints: 1-1024 chars, /^[A-Za-z0-9._\-+=/]+$/

Example

dcloud s3 bucket-objects restore-version name --key example --version-id example

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