|
| 1 | +.. _mcli-atlas-private-endpoint-provider-describe-cmd: |
| 2 | + |
| 3 | +================================================== |
| 4 | +mongocli atlas privateendpoint <provider> describe |
| 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 <provider> describe`` command retrieves |
| 16 | +information about one private endpoint connection for |aws| or Azure in |
| 17 | +an |service| project. You can also retrieve this information through |
| 18 | +the |service| :atlas:`UI </security-private-endpoint/>` or :atlas:`API |
| 19 | +</reference/api/private-endpoints-service-get-one/>`. |
| 20 | + |
| 21 | +Syntax |
| 22 | +------ |
| 23 | + |
| 24 | +.. code-block:: text |
| 25 | + |
| 26 | + mongocli atlas privateendpoint(s)|privateEndpoint(s) aws|azure describe|get <private-endpoint-id> |
| 27 | + [ --output|-o <output-format> ] |
| 28 | + [ --profile|-P <profile-name> ] |
| 29 | + [ --projectId <project-ID> ] |
| 30 | + |
| 31 | +.. include:: /includes/fact-command-line-help.rst |
| 32 | + |
| 33 | +.. _atlas-private-endpoint-provider-describe-arguments: |
| 34 | + |
| 35 | +Arguments |
| 36 | +--------- |
| 37 | + |
| 38 | +.. list-table:: |
| 39 | + :header-rows: 1 |
| 40 | + :widths: 20 10 60 10 |
| 41 | + |
| 42 | + * - Argument |
| 43 | + - Type |
| 44 | + - Description |
| 45 | + - Required? |
| 46 | + |
| 47 | + * - ``<private-endpoint-id>`` |
| 48 | + - string |
| 49 | + - Unique identifier of the private endpoint connection that you |
| 50 | + want to retrieve. |
| 51 | + - yes |
| 52 | + |
| 53 | +.. _atlas-privateendpoint-provider-describe-options: |
| 54 | + |
| 55 | +Options |
| 56 | +------- |
| 57 | + |
| 58 | +.. list-table:: |
| 59 | + :widths: 20 10 60 10 |
| 60 | + :header-rows: 1 |
| 61 | + |
| 62 | + * - Option |
| 63 | + - Type |
| 64 | + - Description |
| 65 | + - Required? |
| 66 | + |
| 67 | + * - ``--output``, ``-o`` |
| 68 | + - string |
| 69 | + - .. include:: /includes/extracts/fact-basic-options-output.rst |
| 70 | + - no |
| 71 | + |
| 72 | + * - ``--profile``, ``-P`` |
| 73 | + - string |
| 74 | + - Name of the profile where the public and private |
| 75 | + keys for the project are saved. If omitted, uses the |
| 76 | + {+default-profile+}. To learn more about creating a |
| 77 | + profile, see :ref:`mcli-configure`. |
| 78 | + - no |
| 79 | + |
| 80 | + * - ``--projectId`` |
| 81 | + - string |
| 82 | + - .. include:: /includes/extracts/fact-basic-options-project-id.rst |
| 83 | + - no |
| 84 | + |
| 85 | +.. _atlas-private-endpoint-provider-describe-output: |
| 86 | + |
| 87 | +Output |
| 88 | +------ |
| 89 | + |
| 90 | +If the command succeeds, it returns the following output in the default |
| 91 | +format. If the command returns errors, see |
| 92 | +:ref:`Troubleshooting <troubleshooting>` for recommended solutions. |
| 93 | + |
| 94 | +.. code-block:: sh |
| 95 | + :copyable: false |
| 96 | + |
| 97 | + ID ENDPOINT SERVICE STATUS ERROR |
| 98 | + <private-endpoint-id> <private-endpoint-service> <private-endpoint-status> <private-endpoint-error> |
| 99 | + |
| 100 | +.. include:: /includes/fact-default-output.rst |
| 101 | + |
| 102 | +- :atlas:`Atlas API |
| 103 | + </reference/api/private-endpoints-service-get-one/#response-elements>` |
| 104 | + |
| 105 | +Example |
| 106 | +------- |
| 107 | + |
| 108 | +.. tabs:: |
| 109 | + |
| 110 | + .. tab:: Default Output |
| 111 | + :tabid: default-output |
| 112 | + |
| 113 | + .. tabs:: |
| 114 | + |
| 115 | + .. tab:: |aws| |
| 116 | + :tabid: aws |
| 117 | + |
| 118 | + The following command retrieves one private endpoint |
| 119 | + connection for |aws| in a project using the |
| 120 | + {+default-profile+}, which contains credentials and the |
| 121 | + project ID. The output is returned in the default format. |
| 122 | + |
| 123 | + .. code-block:: sh |
| 124 | + |
| 125 | + mongocli atlas privateendpoint aws describe 5f4fc81c1f03a835c2728ff7 |
| 126 | + |
| 127 | + The previous command prints the following to the terminal. |
| 128 | + |
| 129 | + .. code-block:: sh |
| 130 | + :copyable: false |
| 131 | + |
| 132 | + ID ENDPOINT SERVICE STATUS ERROR |
| 133 | + 5f4fc81c1f03a835c2728ff7 com.amazonaws.vpce.us-east-1.vpce-svc-06c32a54aec6cbb44 WAITING_FOR_USER |
| 134 | + |
| 135 | + .. tab:: Azure |
| 136 | + :tabid: azure |
| 137 | + |
| 138 | + The following command retrieves one private endpoint |
| 139 | + connection for Azure in a project using the |
| 140 | + {+default-profile+}, which contains credentials and the |
| 141 | + project ID. The output is returned in the default format. |
| 142 | + |
| 143 | + .. code-block:: sh |
| 144 | + |
| 145 | + mongocli atlas privateendpoint azure describe 5f4fc81c1f03a835c2728ff7 |
| 146 | + |
| 147 | + The previous command prints the following to the terminal. |
| 148 | + |
| 149 | + .. code-block:: sh |
| 150 | + :copyable: false |
| 151 | + |
| 152 | + ID ENDPOINT SERVICE STATUS ERROR |
| 153 | + 601d493ed3b64f69d7f3f2c2 pls_601d493ed3b64f69d7f3f2c2 AVAILABLE |
| 154 | + |
| 155 | + .. tab:: JSON Output |
| 156 | + :tabid: json-output |
| 157 | + |
| 158 | + .. tabs:: |
| 159 | + |
| 160 | + .. tab:: |aws| |
| 161 | + :tabid: aws |
| 162 | + |
| 163 | + The following command retrieves one private endpoint |
| 164 | + connection for |aws| in a project using the |
| 165 | + {+default-profile+}, which contains credentials and the |
| 166 | + project ID. The output is returned in |json| format. |
| 167 | + |
| 168 | + .. code-block:: sh |
| 169 | + |
| 170 | + mongocli atlas privateendpoint aws describe 5f4fc81c1f03a835c2728ff7 --output json |
| 171 | + |
| 172 | + The previous command prints the following to the terminal in |
| 173 | + |json| format. |
| 174 | + |
| 175 | + .. code-block:: json |
| 176 | + :copyable: false |
| 177 | + |
| 178 | + { |
| 179 | + "id": "5f4fc81c1f03a835c2728ff7", |
| 180 | + "endpointServiceName": "com.amazonaws.vpce.us-east-1.vpce-svc-06c32a54aec6cbb44", |
| 181 | + "status": "WAITING_FOR_USER" |
| 182 | + } |
| 183 | + |
| 184 | + .. tab:: Azure |
| 185 | + :tabid: azure |
| 186 | + |
| 187 | + The following command retrieves one private endpoint |
| 188 | + connection for Azure in a project using the |
| 189 | + {+default-profile+}, which contains credentials and the |
| 190 | + project ID. The output is returned in |json| format. |
| 191 | + |
| 192 | + .. code-block:: sh |
| 193 | + |
| 194 | + mongocli atlas privateendpoint aws describe 5f4fc81c1f03a835c2728ff7 --output json |
| 195 | + |
| 196 | + The previous command prints the following to the terminal in |
| 197 | + |json| format. |
| 198 | + |
| 199 | + .. code-block:: json |
| 200 | + :copyable: false |
| 201 | + |
| 202 | + { |
| 203 | + "id": "601d493ed3b64f69d7f3f2c2", |
| 204 | + "privateLinkServiceName": "pls_601d493ed3b64f69d7f3f2c2", |
| 205 | + "privateLinkServiceResourceId": "/subscriptions/4e133d35-e734-4380-a565-c0945535da37/resourceGroups/rg_601d4671d3b64f69d7f3ee82_ovv7qcyv/providers/Microsoft.Network/privateLinkServices/pls_601d493ed3b64f69d7f3f2c2", |
| 206 | + "status": "AVAILABLE" |
| 207 | + } |
0 commit comments