Skip to content

Commit 0b671a6

Browse files
Revert "(DOCSP-20913): mongocli auth login (#667)" (#669)
This reverts commit 4adef57.
1 parent 4adef57 commit 0b671a6

File tree

11 files changed

+173
-311
lines changed

11 files changed

+173
-311
lines changed

source/configure.txt

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,40 @@ Configure the {+mcli+}
2222

2323
You can define the settings that the {+mcli+} uses to interact with
2424
MongoDB services like |service|, |cloud-short|, and |onprem| by using
25-
the :ref:`mongocli-auth-login` or :ref:`mongocli-config` commands.
26-
The first time you run one of these commands, the {+mcli+} creates a :ref:`configuration file
27-
<mcli-config-file>` called ``mongocli.toml`` to store your settings.
25+
the :ref:`mongocli-config` command. The first time you run this
26+
command, the {+mcli+} creates a :ref:`configuration file
27+
<mcli-config-file>` called ``mongocli.toml`` to store your settings.
28+
29+
Prerequisites
30+
-------------
31+
32+
To configure the {+mcli+}:
33+
34+
- Add your |ipaddr| or |cidr| block to the |api| whitelist for your
35+
MongoDB service.
36+
- Generate a |svc-api-key| if you don't already have one.
37+
38+
.. note::
39+
40+
|svc-api-key|\s are role-based. Different roles have different
41+
privileges and capabilities, and some {+mcli+} commands are available
42+
to some roles but not others. Be sure that the roles assigned to
43+
your |svc-api-key| are appropriate for the commands you intend to
44+
use.
45+
46+
To learn more about generating a |svc-api-key| for
47+
your MongoDB service, see the following documentation:
48+
49+
- :atlas:`Atlas API Access </configure-api-access>`
50+
- :cloudmgr:`Cloud Manager API Access </tutorial/configure-public-api-access>`
51+
- :opsmgr:`Ops Manager API Acess </tutorial/configure-public-api-access>`
2852

2953
Procedure
3054
---------
3155

56+
The :ref:`mongocli-config` command varies slightly depending on the
57+
MongoDB service for which you want to configure the {+mcli+}.
58+
3259
.. tabs::
3360

3461
.. tab:: Atlas

source/includes/admonitions/note-api-key-roles.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

source/includes/steps-configure-mcli-atlas.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
stepnum: 1
22
source:
33
file: steps-configure-mcli.yaml
4-
ref: auth-login
4+
ref: create-profile
55
replacement:
6-
service: "|service|"
76
serviceOption: ""
87
---
98
stepnum: 2
109
source:
1110
file: steps-configure-mcli.yaml
12-
ref: auth-create-profile
11+
ref: enter-api-key
12+
replacement:
13+
apiKeys: ":atlas:`Programmatic API Key </configure-api-access>`"
14+
service: "|service|"
1315
---
1416
stepnum: 3
1517
source:
1618
file: steps-configure-mcli.yaml
17-
ref: auth-enter-orgid-atlas-cm
19+
ref: enter-orgid-atlas-cm
1820
---
1921
stepnum: 4
2022
source:
2123
file: steps-configure-mcli.yaml
22-
ref: auth-enter-projectid
24+
ref: enter-projectid
2325
---
2426
stepnum: 5
2527
source:
@@ -32,14 +34,6 @@ source:
3234
ref: enter-mongo-shell-path
3335
---
3436
stepnum: 7
35-
source:
36-
file: steps-configure-mcli.yaml
37-
ref: add-api-keys
38-
replacement:
39-
service: "|service|"
40-
api-access-url: ":atlas:`Programmatic API Key </configure-api-access>`"
41-
---
42-
stepnum: 8
4337
source:
4438
file: steps-configure-mcli.yaml
4539
ref: verify-profile

source/includes/steps-configure-mcli-cm.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
stepnum: 1
22
source:
33
file: steps-configure-mcli.yaml
4-
ref: auth-login
4+
ref: create-profile
55
replacement:
6-
service: "|cloud|"
7-
serviceOption: "--cm"
6+
serviceOption: "--service cloud-manager"
87
---
98
stepnum: 2
109
source:
1110
file: steps-configure-mcli.yaml
12-
ref: auth-create-profile
11+
ref: enter-api-key
12+
replacement:
13+
apiKeys: ":cloudmgr:`API keys </tutorial/configure-public-api-access>`"
14+
service: "|cloud|"
1315
---
1416
stepnum: 3
1517
source:
1618
file: steps-configure-mcli.yaml
17-
ref: auth-enter-orgid-atlas-cm
19+
ref: enter-orgid-atlas-cm
1820
---
1921
stepnum: 4
2022
source:
2123
file: steps-configure-mcli.yaml
22-
ref: auth-enter-projectid
24+
ref: enter-projectid
2325
---
2426
stepnum: 5
2527
source:
@@ -32,14 +34,6 @@ source:
3234
ref: enter-mongo-shell-path
3335
---
3436
stepnum: 7
35-
source:
36-
file: steps-configure-mcli.yaml
37-
ref: add-api-keys
38-
replacement:
39-
service: "|cloud|"
40-
api-access-url: ":cloudmgr:`API keys </tutorial/configure-public-api-access>`"
41-
---
42-
stepnum: 8
4337
source:
4438
file: steps-configure-mcli.yaml
4539
ref: verify-profile

source/includes/steps-configure-mcli-om.yaml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,44 @@
11
stepnum: 1
2-
source:
3-
file: steps-configure-mcli.yaml
4-
ref: config-prereqs
5-
replacement:
6-
service: "|onprem|"
7-
api-access-url: ":opsmgr:`Ops Manager API Access </tutorial/configure-public-api-access>`"
8-
---
9-
stepnum: 2
102
source:
113
file: steps-configure-mcli.yaml
124
ref: create-profile
135
replacement:
146
serviceOption: "--service ops-manager"
157
---
16-
stepnum: 3
8+
stepnum: 2
179
source:
1810
file: steps-configure-mcli.yaml
1911
ref: enter-base-url
2012
---
21-
stepnum: 4
13+
stepnum: 3
2214
source:
2315
file: steps-configure-mcli.yaml
2416
ref: enter-api-key
2517
replacement:
2618
apiKeys: ":opsmgr:`API keys </tutorial/configure-public-api-access>`"
2719
service: "|onprem|"
2820
---
29-
stepnum: 5
21+
stepnum: 4
3022
source:
3123
file: steps-configure-mcli.yaml
3224
ref: enter-orgid-om
3325
---
34-
stepnum: 6
26+
stepnum: 5
3527
source:
3628
file: steps-configure-mcli.yaml
3729
ref: enter-projectid
3830
---
39-
stepnum: 7
31+
stepnum: 6
4032
source:
4133
file: steps-configure-mcli.yaml
4234
ref: enter-fileformat
4335
---
44-
stepnum: 8
36+
stepnum: 7
4537
source:
4638
file: steps-configure-mcli.yaml
4739
ref: enter-mongo-shell-path
4840
---
49-
stepnum: 9
41+
stepnum: 8
5042
source:
5143
file: steps-configure-mcli.yaml
5244
ref: verify-profile

0 commit comments

Comments
 (0)