|
| 1 | +.. _mcli-atlas-private-endpoint-regionalmode-enable-cmd: |
| 2 | + |
| 3 | +================================================== |
| 4 | +mongocli atlas privateendpoint regionalmode enable |
| 5 | +================================================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +The ``privateendpoint regionalmode enable`` command enables the |
| 16 | +regionalized private endpoint setting for an |service| project. This |
| 17 | +setting lets you use regionalized private endpoints for multi-region |
| 18 | +sharded clusters. You can also enable the regionalized private endpoint |
| 19 | +setting through the |service| :atlas:`UI </security-private-endpoint/#regionalized-private-endpoints-for-multi-region-sharded-clusters>` or |
| 20 | +:atlas:`API </reference/api/private-endpoints-update-regional-mode/>`. |
| 21 | + |
| 22 | +Syntax |
| 23 | +------ |
| 24 | + |
| 25 | +.. code-block:: text |
| 26 | + |
| 27 | + mongocli atlas privateEndpoint(s)|private-endpoint(s)|privateendpoint(s) regionalMode(s)|regional-mode(s)|regionalmode(s) enable |
| 28 | + [ --output|-o <output-format> ] |
| 29 | + [ --profile|-P <profile-name> ] |
| 30 | + [ --projectId <project-ID> ] |
| 31 | + |
| 32 | +.. include:: /includes/fact-command-line-help.rst |
| 33 | + |
| 34 | +.. _atlas-private-endpoint-regionalmode-enable-options: |
| 35 | + |
| 36 | +Options |
| 37 | +------- |
| 38 | + |
| 39 | +.. list-table:: |
| 40 | + :widths: 20 10 60 10 |
| 41 | + :header-rows: 1 |
| 42 | + |
| 43 | + * - Option |
| 44 | + - Type |
| 45 | + - Description |
| 46 | + - Required? |
| 47 | + |
| 48 | + * - ``--output``, ``-o`` |
| 49 | + - string |
| 50 | + - .. include:: /includes/extracts/fact-basic-options-output.rst |
| 51 | + - no |
| 52 | + |
| 53 | + * - ``--profile``, ``-P`` |
| 54 | + - string |
| 55 | + - Name of the profile where the public and private |
| 56 | + keys for the project are saved. If omitted, uses the |
| 57 | + {+default-profile+}. To learn more about creating a |
| 58 | + profile, see :ref:`mcli-configure`. |
| 59 | + - no |
| 60 | + |
| 61 | + * - ``--projectId`` |
| 62 | + - string |
| 63 | + - .. include:: /includes/extracts/fact-basic-options-project-id.rst |
| 64 | + - no |
| 65 | + |
| 66 | +.. _atlas-private-endpoint-regionalmode-enable-output: |
| 67 | + |
| 68 | +Output |
| 69 | +------ |
| 70 | + |
| 71 | +If the command succeeds, it returns the following output in the default |
| 72 | +format. If the command returns errors, see |
| 73 | +:ref:`Troubleshooting <troubleshooting>` for recommended solutions. |
| 74 | + |
| 75 | +.. code-block:: sh |
| 76 | + :copyable: false |
| 77 | + |
| 78 | + Regionalized private endpoint setting enabled. |
| 79 | + |
| 80 | +Example |
| 81 | +------- |
| 82 | + |
| 83 | +.. tabs:: |
| 84 | + |
| 85 | + .. tab:: Default Output |
| 86 | + :tabid: default-output |
| 87 | + |
| 88 | + The following command enables the regionalized |
| 89 | + private endpoint setting in a project using the |
| 90 | + {+default-profile+}, which contains credentials for accessing the |
| 91 | + project and the project ID. The output is returned in the default |
| 92 | + format. |
| 93 | + |
| 94 | + .. code-block:: sh |
| 95 | + |
| 96 | + mongocli atlas privateendpoint regionalmode enable |
| 97 | + |
| 98 | + The previous command prints the following to the terminal. |
| 99 | + |
| 100 | + .. code-block:: sh |
| 101 | + :copyable: false |
| 102 | + |
| 103 | + Regionalized private endpoint setting enabled. |
| 104 | + |
| 105 | + .. tab:: JSON Output |
| 106 | + :tabid: json-output |
| 107 | + |
| 108 | + The following command enables the regionalized |
| 109 | + private endpoint setting in a project using the |
| 110 | + {+default-profile+}, which contains credentials for accessing the |
| 111 | + project and the project ID. The output is returned |
| 112 | + in |json| format. |
| 113 | + |
| 114 | + .. code-block:: sh |
| 115 | + |
| 116 | + mongocli atlas privateendpoint regionalmode enable --output json |
| 117 | + |
| 118 | + The previous command prints the following to the terminal in |
| 119 | + |json| format. |
| 120 | + |
| 121 | + .. code-block:: json |
| 122 | + :copyable: false |
| 123 | + |
| 124 | + { |
| 125 | + "enabled": true |
| 126 | + } |
0 commit comments