mc event target list

The mc event target list command lists every notification target configured on a deployment, with the ARN to use when you add a bucket notification.

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

Use this command in place of reading the ARNs from the server startup log.

Syntax

The following command lists the notification targets configured on the myaistor deployment:

mc event target list myaistor

The command has the following syntax:

mc [GLOBALFLAGS] event target list ALIAS

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS

Required

The alias of the deployment to query.

Global flags

This command supports any of the global flags.

Examples

List all notification targets

mc event target list myaistor

The command returns one row per target:

ARN                                    Type        ID         Status     Buckets
arn:minio:sqs::primary:redis           redis       primary    ● online   mydata
arn:minio:sqs::warehouse:postgresql    postgresql  warehouse  ● online
ColumnDescription
ARNThe Amazon Resource Name to pass to mc event add.
TypeThe target service: amqp, elasticsearch, kafka, mqtt, mysql, nats, nsq, postgresql, redis, or webhook.
IDThe identifier given to the target in its configuration key.
Statusonline when MinIO AIStor reached the target during the check, offline when it did not.
BucketsThe buckets with a notification rule that points at this target. Empty when no bucket uses the target yet.

When no target is configured, the command returns No notification targets configured.

MinIO AIStor checks each target over the network when you run the command, and allows 10 seconds for every target to answer. A target that does not answer in time is reported offline. A configured target always appears in the list, so a target you have just added is listed even while its endpoint is still unreachable.

Return the target list as JSON

mc event target list myaistor --json

Permissions

You must have the admin:ServerInfo permission on the deployment.

Behavior

S3 compatibility

This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.

On this page