APIs

To see all APIs available, refer to APIs section for each Modules.

All actions performed by IDEA web interface can also be triggered via HTTP APIs. APIs cover all modules such as creating IDEA users, submit a job or control virtual desktops.

IDEA provides a Swagger documentation available on the IDEA web interface under "Module Name" > "Settings" (example below for "eVDI" > "Settings")

API Spec and Swagger link available for each module

User Authorization

TO be rewritten

API Authorization is available in 4 categories:

  • Public - As long as client has network access to the endpoint.

  • Authenticated User - The calling user must send a valid JWT token issued by the cluster’s Cognito User Pool

  • Manager - The user must be part of the managers Cognito User Group.

  • Administrator - The user must be part of the administrators Cognito User Group, in addition to the Sudoers LDAP Group.

API Samples

Auth.InitiateAuth (Using Username/Password)

InitiateAuth is a public API, that is used to authenticate the cluster user. The API may return the authentication result or challenges such as FORCE_RESET_PASSWORD, MFA challenge based configuration.

Username/Password Auth: Request Payload

Username/Password Auth: Response Payload

RefreshToken Auth: Request Payload

Username/Password Auth: Response Payload

Authenticated API Invocations

To invoke authenticated APIs, set the Authorization HTTP Header with: Bearer <access_token>and invoke applicable APIs.

Examples

cURL

Python (full example - get access token and query API)

Accounts.CreateUser namespace requires elevated access. Make sure to test this API with a user that belong to manager or cluster-admin groups (e.g: clusteradmin)

Response:

Last updated