Skip to content

Commit 96cfb91

Browse files
DOCSP-34776 Add Atlas support info for auth commands (#5660) (#9410)
* DOCSP-34776 Add Atlas support info for auth commands (#5660) Co-authored-by: pierwill <[email protected]> * Fixes rendering issue * adds example heading for clarity --------- Co-authored-by: pierwill <[email protected]> Co-authored-by: pierwill <[email protected]>
1 parent 8c7d7b7 commit 96cfb91

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

source/reference/command/authenticate.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ authenticate
3636
- :method:`db.auth()`
3737
- :doc:`/security`
3838

39+
40+
Compatibility
41+
-------------
42+
43+
This command is available in deployments hosted in the following environments:
44+
45+
.. include:: /includes/fact-environments-atlas-only.rst
46+
47+
.. include:: /includes/fact-environments-atlas-support-no-free.rst
48+
49+
.. include:: /includes/fact-environments-onprem-only.rst
50+
3951
Behavior
4052
--------
4153

source/reference/command/logout.txt

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,32 @@ logout
2626

2727
{ logout: 1 }
2828

29-
.. |operation-name| replace:: :dbcommand:`logout`
30-
.. include:: /includes/note-logout-namespace.rst
29+
Compatibility
30+
-------------
3131

32-
.. example::
32+
This command is available in deployments hosted in the following environments:
3333

34-
.. include:: /includes/fact-change-database-context.rst
34+
.. include:: /includes/fact-environments-atlas-only.rst
3535

36-
When you have set the database context and ``db`` object, you
37-
can use the |operation-name| to log out of database as in the
38-
following operation:
36+
.. include:: /includes/fact-environments-atlas-support-all.rst
3937

40-
.. code-block:: javascript
38+
.. include:: /includes/fact-environments-onprem-only.rst
4139

42-
db.runCommand( { logout: 1 } )
40+
Example
41+
-------
42+
43+
.. |operation-name| replace:: :dbcommand:`logout`
44+
.. include:: /includes/note-logout-namespace.rst
45+
46+
.. example::
47+
48+
.. include:: /includes/fact-change-database-context.rst
49+
50+
When you have set the database context and ``db`` object, you
51+
can use the |operation-name| to log out of database as in the
52+
following operation:
53+
54+
.. code-block:: javascript
55+
56+
db.runCommand( { logout: 1 } )
4357

0 commit comments

Comments
 (0)