key rename

Definition

Renames an existing key.

Usage

$ ozone sh key rename [-hV] <value>
                        <fromKey>
                        <toKey>
Arguments
Parameter Description

value

A key URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/bucket1/key1) or a short URI (starts with a volume name, e.g. vol1/bucket1/key1). Any missing information is obtained from the configuration files

fromKey

An existing key to be renamed

toKey

A new name for the key

-h, --help

Prints out a help manual for this command

-V, --version

Prints out version information and exits

Examples

Consider a volume vol1 with a bucket bucket1 created within. That bucket contains a key key1. To rename that key, call the following command:

$ ozone sh key rename vol1/bucket1 key1 key2
Found a mistake? Seleсt text and press Ctrl+Enter to report it