Skip to content

Commit 784f213

Browse files
authored
Merge pull request #146 from steveren/DOCSP-11135
2 parents 5107e2c + 9e23662 commit 784f213

File tree

3 files changed

+162
-3
lines changed

3 files changed

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

0 commit comments

Comments
 (0)