key get

Definition

Downloads contents of a key from a server.

Usage

$ ozone sh key get [-hV] <value>
                         <fileName>
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

fileName

Path where to store the contents

-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 download the contents of that key, call the following command:

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