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

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
Column Description
ARN The Amazon Resource Name to pass to mc event add.
Type The target service: amqp, elasticsearch, kafka, mqtt, mysql, nats, nsq, postgresql, redis, or webhook.
ID The identifier given to the target in its configuration key.
Status online when MinIO AIStor reached the target during the check, offline when it did not.
Buckets The 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.