Skip to content

mc event ls

Syntax

The mc event ls command lists all event notification triggers for a bucket.

The alias mc event list has equivalent functionality to mc event ls.

The following command lists all configured event notifications for the specified bucket notification target for the mydata bucket on the myminio MinIO deployment:

mc event ls myminio myminio/mydata arn:aws:sqs::primary:target

The command has the following syntax:

mc [GLOBALFLAGS]
  • 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.

mc [GLOBALFLAGS] event ls [FLAGS] ALIAS ARN

Parameters

ALIAS

mc-cmd

Required

The S3 service alias and bucket to which the command lists event notification. For example:

mc event ls play/mybucket ARN...
ARN

mc-cmd

Required

The Amazon Resource Name (ARN) of the bucket resource.

The MinIO server outputs an ARN at startup for each configured notification target. See Bucket Notifications for more information.

Global Flags

This command supports any of the global flags.

Examples

List Event Notifications on a Bucket

The following command lists all event notification triggers on a bucket.

mc event ls myminio/mydata
mc event ls ALIAS ARN
  • Replace ALIAS with the alias of the MinIO deployment on which to add the bucket notification event. For example:

    myminio/mydata

  • Replace ARN with the notification target ARN.

Behavior

S3 Compatibility

SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.