Skip to content

Commit cd83425

Browse files
committed
DOCSP-11135: [mongocli] describe one Data Lake
1 parent 5107e2c commit cd83425

File tree

3 files changed

+163
-3
lines changed

3 files changed

+163
-3
lines changed

source/includes/atlas-datalake-output-fields.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@
3737
<https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html>`_.
3838

3939
* - ``dataProcessRegion``
40-
- Object
40+
- object
4141
- Cloud provider region to which {+data-lake+} routes
4242
client connections for data processing.
4343

4444
If ``null``, {+data-lake+} routes client connections to the
4545
region nearest to the client based on DNS resolution.
4646

4747
* - ``dataProcessRegion.cloudProvider``
48-
- String
48+
- string
4949
- Name of the cloud service provider.
5050

5151
{+data-lake+} only supports ``AWS``.
5252

5353
* - ``dataProcessRegion.region``
54-
- String
54+
- string
5555
- Name of the region to which {+data-lake+} routes client
5656
connections for data processing.
5757

source/reference/atlas/datalake-commands.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Atlas ``datalake`` Commands
1010
:titlesonly:
1111

1212
List Data Lakes </reference/atlas/datalake-list>
13+
Describe a Data Lake </reference/atlas/datalake-describe>
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
.. _mcli-atlas-datalake-describe-command:
2+
3+
================================
4+
mongocli atlas datalake 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 ``datalake describe`` command retrieves the configuration for a
16+
specified `Data Lake <https://docs.mongodb.com/datalake/>`__. You can also
17+
retrieve a {+data-lake-short+} configuration through the `Data Lake API
18+
<https://docs.mongodb.com/datalake/reference/api/dataLakes-get-one-tenant>`__
19+
or with the |service| UI by selecting :guilabel:`Data Lake` from the left-side
20+
navigation.
21+
22+
.. _datalake-describe-syntax:
23+
24+
Syntax
25+
------
26+
27+
.. code-block:: text
28+
:copyable: false
29+
30+
mongocli atlas datalake describe
31+
[ <data-lake-name> ]
32+
[ --profile|-P <profile-name> ]
33+
[ --projectId <id-of-project> ]
34+
35+
.. include:: /includes/fact-command-line-help.rst
36+
37+
.. _datalake-describe-options:
38+
39+
Options
40+
-------
41+
42+
.. list-table::
43+
:header-rows: 1
44+
:widths: 20 10 60 10
45+
46+
* - Option
47+
- Type
48+
- Description
49+
- Required?
50+
51+
* - ``<data-lake-name>``
52+
- string
53+
- Name of the {+data-lake+} for which to retrieve a configuration.
54+
- yes
55+
56+
* - ``--profile``, ``-P``
57+
- string
58+
- Name of the profile where the public and private
59+
keys for the project are saved. If omitted, uses the
60+
{+default-profile+}. To learn more about creating a
61+
profile, see :ref:`mcli-configure`.
62+
- no
63+
64+
* - ``--projectId``
65+
- string
66+
- Unique identifier of the project that contains the
67+
cluster to update. If omitted, uses the project ID in
68+
the profile or :ref:`environment variable <mcli-env-var>`.
69+
- no
70+
71+
.. _datalake-describe-output:
72+
73+
Output
74+
------
75+
76+
The command prints the following fields in |json| format to the
77+
terminal if the command succeeds. If the command returns
78+
errors, see :ref:`Troubleshooting <mcli-troubleshooting>` for
79+
recommended solutions.
80+
81+
The response |json| document contains a single object describing one
82+
{+data-lake-short+} associated with the project:
83+
84+
.. include:: /includes/atlas-datalake-output-fields.rst
85+
86+
.. _datalake-describe-examples:
87+
88+
Example
89+
-------
90+
91+
The following example uses the ``mongocli atlas datalake describe`` command
92+
to retrieve the configuration for a {+data-lake+} named ``myDataLake``. It
93+
uses the {+default-profile+} to access the project.
94+
95+
.. code-block:: text
96+
:copyable: false
97+
98+
mongocli atlas datalake describe myDataLake --projectId 5e2211c17a3e5a48f5497de3
99+
100+
The previous command prints the following fields in |json| format to
101+
the terminal. To learn more about these fields, see
102+
:ref:`cluster-list-output`.
103+
104+
.. code-block:: json
105+
:copyable: false
106+
107+
{
108+
"cloudProviderConfig": {
109+
"aws": {
110+
"iamAssumedRoleARN": "arn:aws:iam::772401394250:role/my-dl-role"
111+
}
112+
},
113+
"dataProcessRegion": {},
114+
"groupId": "5e2211c17a3e5a48f5497de3",
115+
"hostnames": [
116+
"my-data-lake-r4xmn.c.query.mongodb.net"
117+
],
118+
"name": "MyDataLake",
119+
"state": "ACTIVE",
120+
"storage": {
121+
"databases": [
122+
{
123+
"name": "data-lake-test",
124+
"collections": [
125+
{
126+
"name": "data",
127+
"dataSources": [
128+
{
129+
"storeName": "data-lake-test",
130+
"path": "data.json"
131+
}
132+
]
133+
},
134+
{
135+
"name": "*",
136+
"dataSources": [
137+
{
138+
"storeName": "data-lake-test",
139+
"path": "{collectionName()}"
140+
}
141+
]
142+
}
143+
]
144+
}
145+
],
146+
"stores": [
147+
{
148+
"name": "data-lake-test",
149+
"provider": "s3",
150+
"region": "US_WEST_2",
151+
"bucket": "data-lake-test",
152+
"delimiter": "/",
153+
"includeTags": false
154+
}
155+
]
156+
}
157+
}
158+
159+

0 commit comments

Comments
 (0)