dcloud s3 bucket-objects restore-versionMake 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 versionIdArguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--keyRequiredstring
Key of the object
Constraints: min 1 chars
--version-idRequiredstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.