Authorizing Astera’s Server APIs

Follow the steps below to learn how to authenticate Astera’s Server APIs.

  1. Right-click on the server name in Server Explorer > Server Connections > DEFAULT > HTTPS://(ServerName):9260.

  1. A wizard will appear with the Centerprise Server API Path. Click on the copy icon located at the bottom-left of the wizard to copy it.

A message will appear to confirm that the text has been copied successfully. Click OK.

Importing APIs in Astera

  1. Click the Import API option in the API Browser and paste the Astera Server API path in the URL box. Then click OK.

Note: Check the “Ignore certificate errors over HTTP/SSL” option to avoid any certification barriers.

  1. A wizard will appear, notifying you about the created shared action file. Click Yes to set it up.

You can also click on the .sact file in Project Explorer to configure the authentication settings.

The API Browser will be populated with Astera’s Server APIs, which you can use in your dataflow.

  1. Right-click on the Centerprise_Server object and select Properties.

This will open the API Connection screen. Select the Security Type as Bearer Token, as Astera Server APIs use Bearer Token authentication.

Provide the User Name, Password, and Token URL for Bearer Token. Then click Request Token to generate a token, and click OK. Press Ctrl+S to save changes in the shared action file.

Note: You will have to regenerate the token if the validity period has expired.

  1. Now, drag-and-drop the /api/ServerInfo from the API Browser to make a GET request.

  1. Right-click on the object’s header and select Preview Output.

This is how your output would look like:

This concludes working with Astera’s Server API.

Last updated

© Copyright 2023, Astera Software