<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Retrieve API Calls For All User Interface Operations In Okta Advanced Server Access

Advanced Server Access
Okta Classic Engine
Okta Identity Engine

Overview

Many API endpoints in Okta Advanced Server Access (ASA) lack documentation in the official Introduction to the Advanced Server Access API. Retrieve the formatting and payload details for any User Interface (UI) operation by capturing the backend API requests using browser developer tools.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Okta Advanced Server Access (ASA)
  • Okta Advanced Server Access (ASA) API

Solution

How are API calls retrieved for User Interface operations?

 

Capture the backend API requests for any User Interface operation by opening the browser developer tools, performing the desired action, and copying the resulting network request.

  1. Navigate to the Okta ASA Admin Interface and sign in.
  2. Open the browser developer tools and navigate to the network tab.
  3. Clear the network trace history in the developer tools to isolate the upcoming request.
  4. Perform the desired operation in the UI.
  5. Right-click the corresponding network event, select Copy, and then select Copy as cURL. The following image demonstrates copying an API request to update a Sudo entitlement.
    Update entitlement
  6. Review the copied cURL command to identify the API structure, endpoint, and payload data.
curl 'https://app.scaleft.com/v1/teams/<team-name>/entitlements/sudo/2a459f3d-fb79-47d5-8416-c98c3e74df84'; \
-X 'PUT' \
.
<truncated unrelated headers>
.
--data-raw '{"name":"yum","description":"yum","commands":[],"structured_commands":[{"command_type":"raw","command":"ALL"},{"command_type":"executable","command":"/bin/su","args_type":"any"}],"opt_run_as":null,"add_env":null,"sub_env":null}'

NOTE: Retrieve Okta API calls using this same procedure.

Loading
Retrieve API Calls For All User Interface Operations In Okta Advanced Server Access | Okta Support