mc share list

Syntax

The mc share list command displays any unexpired presigned URLs generated by mc share upload or mc share download

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:

mc share list upload myminio/mydata
mc share list download myminio/mydata

The command has the following syntax:

mc [GLOBALFLAGS] share list           \
                 [download | upload]  \
                 ALIAS
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters seperated 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

Required Lists all unexpired presigned download (GET) URLs.

Mutually exclusive with mc share list upload

upload

Required Lists all unexpired presigned upload (PUT) URLs.

Mutually exclusive with mc share list download

ALIAS

Required The alias of a MinIO deplyment and the full path to the object for which to list unexpired presigned URLs.

Global Flags

--debug
Optional

Enables verbose output to the console.

For example:

mc --debug COMMAND
--config-dir
Optional

The path to a JSON formatted configuration file that mc uses for storing data. See Configuration File for more information on how mc uses the configuration file.

--JSON
Optional

Enables JSON lines formatted output to the console.

For example:

mc --JSON COMMAND
--no-color
Optional

Disables the built-in color theme for console output. Useful for dumb terminals.

--quiet
Optional

Suppresses console output.

--insecure
Optional

Disables TLS/SSL certificate verification. Allows TLS connectivity to servers with invalid certificates. Exercise caution when using this option against untrusted S3 hosts.

--version
Optional

Displays the current version of mc.

--help
Optional

Displays a summary of command usage on the terminal.

Examples

List Generated Download and Upload URLs

Use mc share list download to generate a URL that supports POST requests for uploading a file to a specific object location on an S3-compatible host:

mc share list download ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.

Use mc share list upload to generate a URL that supports POST requests for uploading a file to a specific object location on an S3-compatible host:

mc share list upload ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.

Behavior

S3 Compatibility

The mc commandline tool is built for compatibility with the AWS S3 API and is tested MinIO and AWS S3 for expected functionality and behavior.

MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.