Closes #807 Closes #846 --------- Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
2.1 KiB
mc admin cluster iam import
minio
mc admin cluster iam import
Description
RELEASE.2022-06-17T02-52-50Z
The mc admin cluster iam import
command imports IAM <minio-authentication-and-identity-management>
metadata as created by the mc admin cluster iam export
command.
You can use this command to manually restore IAM metadata settings for a MinIO deployment.
EXAMPLE
The following command imports the IAM metadata of the specified file
onto the myminio
deployment.
mc admin cluster iam import myminio ~/minio-metadata-backup/myminio-cluster.zip
SYNTAX
The command has the following syntax:
mc [GLOBALFLAGS] admin cluster iam import \
ALIAS \
IAM-METADATA.ZIP
Starting with RELEASE.2023-05-04T18-10-16Z
, mc admin cluster iam import
adds support for aliases ending with a trailing forward slash
ALIAS/
. Prior to this release, the command would fail when
provided a trailing forward slash.
Parameters
ALIAS
The alias <mc alias>
of the MinIO deployment.
IAM-METADATA.ZIP
The path to the IAM metadata file to import.
Use the mc admin cluster iam export
to export IAM metadata for
use with this command.