Storj DCS
Search…
Powered By GitBook
meta get

Usage

Windows
Linux
macOS
1
./uplink.exe meta get [KEY] PATH [flags]
Copied!
1
uplink meta get [KEY] PATH [flags]
Copied!
1
uplink meta get [KEY] PATH [flags]
Copied!

Flags

Flag
Description
--access string
the serialized access, or name of the access to use
--help, -h
help for get

Retrieve all metadata of an object

Suppose you have uploaded your object with metadata using this command:
Windows
Linux
macOS
1
./uplink.exe cp cheesecake.jpg sj://cakes --metadata '{\"baker\":\"cheeseman\", "\pictur
2
e-author\": "\picman\"}'
Copied!
1
uplink cp cheesecake.jpg sj://cakes --metadata '{"baker":"cheeseman", "pictur
2
e-author": "picman"}'
Copied!
1
uplink cp cheesecake.jpg sj://cakes --metadata '{"baker":"cheeseman", "pictur
2
e-author": "picman"}'
Copied!
Retrieving all metadata defined for object sj://cakes/cheesecake.jpg is done with:
Windows
Linux
macOS
1
./uplink.exe meta get sj://cakes/cheesecake.jpg
Copied!
1
uplink meta get sj://cakes/cheesecake.jpg
Copied!
1
uplink meta get sj://cakes/cheesecake.jpg
Copied!

Query for a specific key in metadata

You can retrieve the value of key baker for object sj://cakes/cheesecake.jpg using:
Windows
Linux
macOS
1
./uplink.exe meta get baker sj://cakes/cheesecake.jpg
Copied!
1
uplink meta get baker sj://cakes/cheesecake.jpg
Copied!
1
uplink meta get baker sj://cakes/cheesecake.jpg
Copied!
Querying for a non-existent key will raise an error.
Last modified 6mo ago