mc admin cluster iam import
The mc admin cluster iam import command imports IAM 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 AIStor deployment.
The command outputs the results of the import, including the following:
- count of individual entities imported by entity type
- list of policies imported by entity type they imported to
- list of entities that failed to import
Syntax
The following command imports the IAM metadata of the specified file onto the myaistor deployment.
mc admin cluster iam import myaistor ~/aistor-metadata-backup/myaistor-iam-info.zipThe command has the following syntax:
mc [GLOBALFLAGS] admin cluster iam import \
ALIAS \
IAM-METADATA.ZIP- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
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 MinIO AIStor deployment.
IAM-METADATA.ZIP
Required
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.
Global Flags
This command supports any of the global flags.