1
0
mirror of https://github.com/minio/docs.git synced 2025-08-05 03:41:24 +03:00
Files
docs/source/reference/minio-mc/mc-event-list.rst
Daryl White 8f9a1ff466 Updates mc event rm for mismatched event error (#1344)
- Cleans up `mc event` command flags with optional/required labels. 
- Drive by fix for an `mc idp` command with an `end-before` include
error.

Closes #1263
2024-10-08 13:07:04 -04:00

2.7 KiB

mc event ls

minio

Table of Contents

mc event list

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.

EXAMPLE

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

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

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS]
mc [GLOBALFLAGS] event remove [FLAGS] ALIAS ARN

Parameters

ALIAS

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

mc event ls play/mybucket ARN...

ARN

The Amazon Resource Name (ARN) <IAM/latest/UserGuide/reference-arns> of the bucket resource.

The MinIO server outputs an ARN at startup for each configured notification target. See Bucket Notifications <minio-bucket-notifications> for more information.

Global Flags

Examples

List Event Notifications on a Bucket

Example

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

mc event ls myminio/mydata

Syntax

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

    myminio/mydata

  • Replace ARN with the notification target ARN <mc event add ARN>.

Behavior

S3 Compatibility