website logo
Create accountLogin
Home
DCS
Node
Resources
Help center
Navigate through spaces
⌘K
Storj DCS
Get Started
AWS CLI and Hosted Gateway MT
AWS SDK and Hosted Gateway MT
Uplink CLI
Satellite Admin Console
Object Browser
Downloads
Download Uplink CLI
Download Self-hosted S3 Compatible Gateway
Download Storj Client Libraries
SDKs & Reference
Tutorial
How-to Guides
Concepts
Support
Support Overview
FAQ
Community Forum
Status Page
Help Desk
Billing, Payment & Accounts
Resources
Moved Documents
Docs powered by archbee 

meta get

8min

Usage

Windows
Linux
MacOS
|
./uplink.exe meta get PATH [KEY] [flags]


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
|
uplink cp cheesecake.jpg sj://cakes --metadata '{"baker":"cheeseman", "pictur
e-author": "picman"}'


Retrieving all metadata defined for object sj://cakes/cheesecake.jpg is done with:

Windows
Linux
MacOS
|
uplink meta get sj://cakes/cheesecake.jpg

Document image


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
|
uplink meta get sj://cakes/cheesecake.jpg baker

Document image


Querying for a non-existent key will raise an error.



Updated 22 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
meta
NEXT
mv
Docs powered by archbee 
TABLE OF CONTENTS
Usage
Flags
Retrieve all metadata of an object
Query for a specific key in metadata