mc share ls
Syntax
The mc share ls command displays any unexpired presigned URLs generated by mc share upload or mc share download
The mc share list command has equivalent functionality to mc share ls.
Applications can perform a PUT to retrieve the object from the URL.
For more information on shareable object URLs, see the Amazon S3 documentation on Pre-Signed URLs.
The following command lists all upload and download presigned URLs respectively for the mydata bucket on the myminio MinIO deployment:
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
download
mc-cmd
Required Lists all unexpired presigned download (GET) URLs.
Mutually exclusive with mc share ls upload
upload
mc-cmd
Required Lists all unexpired presigned upload (PUT) URLs.
Mutually exclusive with mc share ls download
ALIAS
mc-cmd
Required The alias of a MinIO deplyment and the full path to the object for which to list unexpired presigned URLs.
Global Flags
This command supports any of the global flags.
Examples
List Generated Download and Upload URLs
Use mc share ls download to generate a URL that supports POST requests for uploading a file to a specific object location on an S3-compatible host:
Use mc share ls upload to generate a URL that supports POST requests for uploading a file to a specific object location on an S3-compatible host:
Behavior
S3 Compatibility
SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.