Skip to content

Commit 8c4ec7e

Browse files
Merge pull request #2387 from splunk/tcarter-6500-UnifiedId-setupViaAPI
tcarter-OD6500-UnifiedId-setupViaAPI
2 parents e81ba49 + 161acad commit 8c4ec7e

File tree

1 file changed

+54
-18
lines changed

1 file changed

+54
-18
lines changed

splunkplatform/unified-id/unified-identity.rst

Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Prerequisites
7777
You must be an admin of the Splunk Cloud Platform and Splunk Observability Cloud instances that you want to pair.
7878

7979

80-
New Splunk Observability Cloud customers
80+
Set up Unified Identity for new Splunk Observability Cloud customers
8181
------------------------------------------------------------------------------------------
8282

8383
Splunk Cloud Platform customers who want to purchase Splunk Observability Cloud must take the following actions to set up Unified Identity:
@@ -87,9 +87,11 @@ Splunk Cloud Platform customers who want to purchase Splunk Observability Cloud
8787
2. Turn on token authentication to allow Splunk Observability Cloud to view your Splunk Cloud Platform logs. See :new-page:`Enable or disable token authentication <https://docs.splunk.com/Documentation/SplunkCloud/latest/Security/EnableTokenAuth>` to learn how.
8888

8989

90-
Existing Splunk Observability Cloud customers
90+
Set up Unified Identity for existing Splunk Observability Cloud customers
9191
------------------------------------------------------------------------------------------
9292

93+
There are 2 ways you can pair your Splunk Observability Cloud and Splunk Cloud Platform organizations: using command-line interface with Admin Config Services (ACS) commands or using API endpoints. These instructions cover both ways. If you haven't installed the ACS command-line tool and want to use it, see :new-page:`Administer Splunk Cloud Platform using the ACS CLI <https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI>`.
94+
9395
If you already have a Splunk Cloud Platform account and a Splunk Observability Cloud account, take the following actions to set up Unified Identity:
9496

9597
1. Turn on token authentication to allow Splunk Observability Cloud to view your Splunk Cloud Platform logs. See :new-page:`Enable or disable token authentication <https://docs.splunk.com/Documentation/SplunkCloud/latest/Security/EnableTokenAuth>` to learn how.
@@ -98,33 +100,67 @@ If you already have a Splunk Cloud Platform account and a Splunk Observability C
98100

99101
.. note:: The API token must have ``admin`` privileges.
100102

101-
3. To pair orgs, open Terminal and enter the following Admin Config Services (ACS) command:
103+
3. Pair your Splunk Observability Cloud and Splunk Cloud Platform organizations:
102104

103-
.. code-block:: bash
105+
a. To pair with command-line interface, enter the following Admin Config Services (ACS) command:
106+
107+
.. code-block:: bash
104108
105-
acs observability pair --o11y-access-token "GrkvoDav1M-FNyxdONtK2Q"
109+
acs observability pair --o11y-access-token "<enter-o11y-access-token>"
110+
111+
Replace ``<enter-o11y-access-token>`` in the example above, with the user API access token you retrieved from Splunk Observability Cloud in previous step.
112+
113+
b. To pair with API endpoints, collect the following information then run the curl command:
114+
115+
i. Splunk Cloud Platform admin API access token (Create a new authentication token with an admin user. See :new-page:`Use Splunk Web to create authentication tokens <https://docs.splunk.com/Documentation/Splunk/9.3.1/Security/CreateAuthTokens>`.)
116+
117+
ii. O11y API access token (obtained it in step 2 above)
118+
119+
iii. Splunk Cloud Platform instance name (the custom subdomain for your Splunk Cloud stack)
120+
121+
Run the curl command:
122+
123+
.. code-block:: bash
106124
107-
Replace the access token, ``GrkvoDav1M-FNyxdONtK2Q`` in the example above, with the user API access token you retrieved from Splunk Observability Cloud in previous step.
125+
curl --location
126+
'https://admin.splunk.com/<enter-stack-name>/adminconfig/v2/observability/sso-pairing' \
127+
--header 'Content-Type: application/json' \
128+
--header 'Authorization: Bearer <enter-splunk-admin-api-token>' \
129+
--header 'o11y-access-token': '<enter-o11y-api-token>'
108130
109-
.. note:: If you haven't installed the ACS command-line tool, see :new-page:`Administer Splunk Cloud Platform using the ACS CLI <https://docs.splunk.com/Documentation/SplunkCloud/latest/Config/ACSCLI>`.
110131
111-
The pairing command returns a pairing id:
132+
Whether you used the command-line interface or API endpoints, the pairing command returns a pairing id:
112133

113-
.. image:: /_images/splunkplatform/pairingID.png
114-
:width: 90%
115-
:alt: This screenshot shows the response in Terminal showing the pairing id for the new pairing.
134+
.. code-block:: bash
135+
136+
"id": "<pairing-id>"
137+
138+
4. You can use the pairing id to get the current status of the pairing.
139+
140+
a. To get the status using command-line interface, run the following ACS command:
116141

117-
4. You can use the pairing id to get the current status of the pairing. To get the status, run the following ACS command:
142+
.. code-block:: bash
118143
119-
.. code-block:: bash
144+
acs observability pairing-status-by-id --pairing-id "<enter-pairing-id>" --o11y-access-token "<enter-o11y-access-token>"
120145
121-
acs observability pairing-status-by-id --pairing-id "GGPH8FPAAAA" --o11y-access-token "GrkvoDav1M-FNyxdONtK2Q"
146+
Replace the pairing id and the access token with your own values.
147+
148+
b. To get the status using API endpoints, run the following curl command with the data you obtained in step 3b:
149+
150+
.. code-block:: bash
151+
152+
curl --location --request GET
153+
'https://admin.splunk.com/<enter-stack-name>/adminconfig/v2/observability/sso-pairing/<enter-pairing-id>' \
154+
--header 'Content-Type: application/json' \
155+
--header 'Authorization: Bearer <enter-splunk-admin-api-token>'
156+
--header 'o11y-access-token': '<enter-o11y-api-token>'
122157
123-
Replace the pairing id and the access token with your own values. The system returns a status message showing whether or not the pairing was a success.
158+
5. The system returns a status message showing whether or not the pairing was a success. Statuses are SUCCESS, FAILED, or IN_PROGRESS.
124159

125-
.. image:: /_images/splunkplatform/unifiedID-pairingSuccess.png
126-
:width: 90%
127-
:alt: This screenshot shows a success status for the new pairing.
160+
.. code-block:: bash
161+
162+
"pairingId": "<pairing-id>"
163+
"status": "SUCCESS"
128164
129165
130166
Users will receive an email telling them to authenticate to Splunk Observability Cloud using the new authentication method through Splunk Cloud Platform SSO. Note that users can continue to use their previous login method. If you want to force all users to authenticate through Splunk Cloud Platform SSO, reach out to Splunk Customer Support to deactivate local login. To deactivate login through a third party identity provider, go to :strong:`Data Managemen > Available integrations` in Splunk Observability Cloud, select the appropriate integration (for example, Okta), and select :strong:`Deactivate`.

0 commit comments

Comments
 (0)