mc admin set top
The mc admin set top command lists the erasure sets of a deployment, with an optional filter.
Syntax
The command has the following syntax:
mc admin set top [FLAGS] TARGETFlags
| Flag | Description |
|---|---|
--export | Export command as JSON. |
--filter value | Filter erasure sets based on available filters. |
--count value | Limit the number of returned results (default: 0). |
--start value | Starting index for listing (default: 0). |
--import value | Import command as JSON. |
--sort value | Allows for sorting on field names. Only fields of type (int, string and float) can be sorted. |
--sort-reversed | Reverses the sort order. |
Global flags
This command supports any of the global flags.
Examples
Get set list.
mc admin set top myaistorExport set list.
mc admin set top myaistor --exportGet set list with a filter.
mc admin set top myaistor --filter "PoolIndex = 1"Get four sets with a filter, starting at item 2.
mc admin set top myaistor --filter "PoolIndex = 1" --start 2 --count 4Import set list and apply a filter.
mc admin set top myaistor --import sets.json --filter "PoolIndex = 1"Apply sorting.
mc admin set top myaistor --sort "PoolIndex" --sort-reversedBehavior
S3 compatibility
This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.