Docs Menu

mongocli atlas accessLists create

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options
  • Examples

Create an IP access list for your project.

mongocli atlas accessLists create [entry] [options]
Name
Type
Required
Description
entry
string
false
The IP address, CIDR address, or AWS security group ID of the access list entry to create.
Name
Type
Required
Description
--comment
string
false
Optional description or comment for the entry.
--currentIp
false
Flag that indicates whether to use the IP Address from the host that is currently executing the command. Only applicable for type ipAddress entries. To learn more, see: https://docs.mongodb.com/mongocli/master/command/mongocli-atlas-accessLists-create/.
--deleteAfter
string
false
ISO-8601-formatted UTC date after which Atlas removes the value from the entry.
-h, --help
false
help for create
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file.
--projectId
string
false
Project ID to use. Overrides the settings in the configuration file or environment variable.
--type
string
false
Type of access list entry. Valid values are cidrBlock, ipAddress, or awsSecurityGroup. This value defaults to "ipAddress".
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
Create IP address access list with the current IP address. Entry is not needed in this case.
$ mongocli atlas accessList create --currentIP
←  mongocli atlas accessListsmongocli atlas accessLists delete →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.