mongocli atlas accessLists create
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoCLI.
Create an IP access list for your project.
Syntax
mongocli atlas accessLists create <entry> [options]
Arguments
Name | Type | Required | Description |
---|---|---|---|
entry | string | false | The IP address, CIDR address, or AWS security group ID of the access list entry to create. |
Options
Name | Type | Required | Description |
---|---|---|---|
--comment | string | false | Optional description or comment for the entry. |
--deleteAfter | string | false | ISO-8601-formatted UTC date after which Atlas removes the entry from the entry. |
-h, --help | false | help for create | |
-o, --output | string | false | Output format.
Valid values: json|json-path|go-template|go-template-file |
--projectId | string | false | Project ID to use. Overrides configuration file or environment variable settings. |
--type | string | false | Type of access list entry.
Valid values: cidrBlock|ipAddress|awsSecurityGroup (default "ipAddress") |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |