<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
Okta ASA - How to Get API Calls for All UI Operations
Advanced Server Access
Overview

Many APIs in ASA have not been documented yet in the ScaleFT API docs. Almost everything that can be done through APIs can also be done through User Interfaces (UI).

This article will cover how to get all API calls for all UI operations.

Applies To
  • Okta Advanced Server Access (ASA)
  • ASA/ScaleFT API
Solution

All the requests from UI get sent as an API request to the ASA backend server. We can see through browser dev tools the formatting and payload details for any operation. The steps will include:

  1. Log in to the ASA UI admin interface (that is, https://app.scaleft.com/t/<team_name>/home).

  2. Open browser dev tools.

  3. Run the operation from the UI for which an API call is required. It is recommended to delete all the traces from dev tools before running this operation; otherwise, it will take some time to locate.

  4. Right-click on the event and then select Copy > Copy as cURL, as shown in the screenshot. In this example, we are copying the API request to update a Sudo entitlement:

    Update entitlement 
  5. From the copied curl command, the API structure can be retrieved as shown below:

    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}'
     

Okta API calls can be retrieved using the same procedure.

 
 
Loading
Okta ASA - How to Get API Calls for All UI Operations