I'm trying to upload files into my IBM Cloud object store using cli. The command is the following:
:~ ibmcloud cos object-put --bucket Backup --body Downloads/DRIVING_MIVUE/Normal/F/FILE201217-151749F.MP4
FAILED Mandatory Flag '--key' is missing NAME: ibmcloud cos object-put - Upload an object to a bucket.USAGE: ibmcloud cos object-put --bucket BUCKET_NAME --key KEY [--body FILE_PATH] [--cache-control CACHING_DIRECTIVES] [--content-disposition DIRECTIVES] [--content-encoding CONTENT_ENCODING] [--content-language LANGUAGE] [--content-length SIZE] [--content-md5 MD5] [--content-type MIME] [--metadata STRUCTURE] [--region REGION] [--output FORMAT] [--json]
OPTIONS:
--bucket BUCKET_NAME The name (BUCKET_NAME) of the bucket.
--key KEY The KEY of the object.
...
What does KEY
mean here?
I tried to provide a string, like below, but I got an error.
ibmcloud cos object-put --bucket Backup --body Downloads/DRIVING_MIVUE/Normal/F/FILE201217-151749F.MP4 --key FILE201217-151749F
FAILED The specified key does not exist.
The object key (or key name) uniquely identifies the object in a bucket. The following are examples of valid object key names:
For example, when I run the below command
Optionally, you can also pass the MAP of metadata to store
For other parameters, refer the command documentation here
For more information, refer the documentation here