mongocli atlas privateEndpoints gcp interfaces create
On this page
mongocli atlas
commands are now deprecated because there's a new, dedicated CLI available for Atlas users. Migrate to the Atlas CLI to enjoy the same capabilities and the latest features. You can use mongocli atlas
commands until April 30, 2023.Create a GCP private endpoint interface.
Syntax
mongocli atlas privateEndpoints gcp interfaces create <endpointGroupId> [options]
Arguments
Name | Type | Required | Description |
---|---|---|---|
endpointGroupId | string | true | Unique identifier for the endpoint group. |
Options
Name | Type | Required | Description |
---|---|---|---|
--endpoint | strings | false | List of GCP endpoints in the group separated by commas, such as: endpointName1@ipAddress1,...,endpointNameN@ipAddressN |
--endpointServiceId | string | true | Unique identifier of the private endpoint service for which you want to retrieve a private endpoint. |
--gcpProjectId | string | true | Unique identifier of the GCP project in which the network peer resides. |
-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. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |
Examples
$ mongocli atlas privateEndpoints gcp interfaces create endpoint-1 --endpointServiceId 61eaca605af86411903de1dd --gcpProjectId mcli-private-endpoints --endpoint endpoint-0@10.142.0.2,endpoint-1@10.142.0.3,endpoint-2@10.142.0.4,endpoint-3@10.142.0.5,endpoint-4@10.142.0.6,endpoint-5@10.142.0.7