Skip to content

Commit 4781ef1

Browse files
DOCSP-41387 fix Wrong OpsManager authentication documentation (#329)
<!-- Add a description of your PR here (optional) --> - [DOCSP-41387](https://jira.mongodb.org/browse/DOCSP-41387) - [STAGING](https://preview-mongodbkanchanamongodb.gatsbyjs.io/ops-manager/DOCSP-41387/) - [LATEST BUILD LOG](https://workerpool-boxgs.mongodbstitch.com/pages/job.html?collName=queue&jobId=66c35a418e811ae67222c35d) ### Self-Review Checklist - [ ] [Define](https://wiki.corp.mongodb.com/display/DE/Taxonomy+tagging+instructions) taxonomy [values](https://wiki.corp.mongodb.com/display/DE/Docs+Taxonomy) at top of page. - [ ] Add genre facets (tutorial or reference), as in this [example PR](10gen/cloud-docs#5042). - [ ] Add programmingLanguage (if necessary). - [ ] Add meta keywords (if necessary). - [ ] Resolve any new warnings or errors in the build. - [ ] Proofread for spelling and grammatical errors. - [ ] Check staging for rendering issues. - [ ] Confirm links are working.
1 parent 1c83889 commit 4781ef1

24 files changed

+24
-25
lines changed

source/core/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ By default, extraneous whitespace is stripped from the |json| that
420420

421421
.. code-block:: shell
422422

423-
curl --user '{USERNAME}:{APIKEY}' --digest \
423+
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
424424
--header 'Accept: application/json' \
425425
--include \
426426
--request GET "{opsManagerHost}:{Port}/api/public/v1.0?pretty=true"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.. note::
22

3-
The user who makes the request can be formatted either as
4-
``{USERNAME}:{APIKEY}`` or ``{PUBLIC-KEY}:{PRIVATE-KEY}``.
3+
The user who makes the request can be formatted either as ``{PUBLIC-KEY}:{PRIVATE-KEY}``.

source/includes/prerequisites-for-adding-existing-deployment-to-automation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
.. code-block:: sh
5252
53-
curl --user "{username}:{apiKey}" --digest \
53+
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
5454
--header "Accept: application/json" \
5555
--include \
5656
--request GET "<host>/api/public/v1.0/groups/<Group-ID>/automationConfig"

source/reference/api/admin/backup/oplog/s3Configs/delete-one-s3-oplog-configuration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Example Request
5757

5858
.. code-block:: sh
5959

60-
curl --user '{USERNAME}:{APIKEY}' --digest \
60+
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
6161
--include \
6262
--request DELETE 'https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/admin/backup/oplog/s3Configs/{S3-OPLOG-CONFIG-ID}'
6363

source/reference/api/admin/backup/oplog/s3Configs/get-all-s3-oplog-configurations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Example Request
5959

6060
.. code-block:: sh
6161

62-
curl --user '{USERNAME}:{APIKEY}' --digest \
62+
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
6363
--header 'Accept: application/json' \
6464
--include \
6565
--request GET 'https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/admin/backup/oplog/s3Configs?pretty=true'

source/reference/api/admin/backup/oplog/s3Configs/get-one-s3-oplog-configuration-by-id.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Example Request
5757

5858
.. code-block:: sh
5959

60-
curl --user '{USERNAME}:{APIKEY}' --digest \
60+
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
6161
--header 'Accept: application/json' \
6262
--include \
6363
--request GET 'https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/admin/backup/oplog/s3Configs/{S3-OPLOG-CONFIG-ID}?pretty=true'

source/reference/api/admin/backup/oplog/s3Configs/update-one-s3-oplog-configuration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Example Request
6060
.. code-block:: sh
6161
:emphasize-lines: 6-20
6262

63-
curl --user '{USERNAME}:{APIKEY}' --digest \
63+
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
6464
--header 'Accept: application/json' \
6565
--header 'Content-Type: application/json' \
6666
--include \

source/reference/api/api-keys/global/delete-one-global-access-list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Example Request
7070
.. code-block:: sh
7171
:linenos:
7272

73-
curl --user "{USERNAME}:{APIKEY}" --digest \
73+
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
7474
--header "Accept: application/json" \
7575
--header "Content-Type: application/json" \
7676
--request DELETE "https://{+opsmgr-url+}/api/public/v1.0/admin/accessList/{ACCESS-LIST-ID}"

source/reference/api/api-keys/global/delete-one-global-api-key.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Example Request
7474
.. code-block:: sh
7575
:linenos:
7676

77-
curl --user "{USERNAME}:{APIKEY}" --digest \
77+
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
7878
--header "Accept: application/json" \
7979
--header "Content-Type: application/json" \
8080
--include \

source/reference/api/api-keys/global/get-all-global-api-key-roles.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Example Request
5555
.. code-block:: sh
5656
:linenos:
5757

58-
curl --user "{USERNAME}:{APIKEY}" --digest \
58+
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
5959
--header "Accept: application/json" \
6060
--include \
6161
--request GET "https://{+opsmgr-url+}/api/public/v1.0/admin/apiKeys/roles?pretty=true"

0 commit comments

Comments
 (0)