Attaching App Access Keys with the API

If you are using the Hybrid agent with apps that connect to on-premise systems, those apps require access keys. In this scenario, both the Hybrid agent and the associated app are installed and run locally. Use the API to add or remove Hybrid agent access keys for an app. Hybrid agent access keys are generated in the user interface under Settings > Proxy Agent access keys.

To add access keys you need the following: 

  1. Generate a Hybrid agent access key under your TIBCO Cloud Integration user settings. Be sure to copy it immediately and store it in a safe location. The key is only displayed once when it is generated. See Generating or Revoking Access Keys.
  2. Use the PUT ​/v1​/subscriptions/{subscriptionLocator}/apps​/{appId}​/env​/tunnelkey method to attach the access key you generated to a specific app. This is an asynchronous call.
  3. Include the appId of the app where you are attaching the access key.
  4. Include access key ID of the key you generated under your user settings.
  5. Use the GET ​/v1​/subscriptions/{subscriptionLocator}/apps​/{appId}​/status method to check whether or not the app has been successfully rescaled.
  6. Use the GET /v1/subscriptions/{subscriptionLocator}/apps/{appId} method to verify that the keys have been updated.

When Hybrid agent access keys are added or removed from an app, the app is rescaled.

Related Topics

Managing Environment Controls with the TIBCO Cloud™ Integration API

Checking the Status of an App with the API

Viewing App Details with the API