Adding an input script
About this task
To add an input script to the Akana API gateway:
Steps
-
Sign on to Akana Policy Manager, navigate to Tenant, and click Scripts.
-
Click Add Script.
-
Enter Script Name and Script Description, and clickNext.
-
Select JavaScript for Language from the list.
-
Copy the contents of the
config.js
script provided by PingIntelligence and paste them into the Source. -
Paste the values of Service_QName, Interface_Name, and Operation_Name that were copied in Capturing ASE details.
This needs to be done for both primary and secondary ASE nodes. The following table lists the variables in
config.js
that need to be populated.Variable Description ase_token
Variable for the ASE sideband authentication token.
primary_ase_service
Service QName for primary ASE.
primary_ase_interface
Interface Name for primary ASE.
primary_ase_request_operation
Operation Name for posting Request Metadata in primary ASE.
primary_ase_response_operation
Operation Name for posting Response Metadata in primary ASE.
secondry_ase_service
Service QName for secondary ASE.
secondary_ase_interface
Interface Name for secondary ASE.
secondary_ase_request_operation
Operation Name for posting Request Metadata in secondary ASE.
secondary_ase_response_operation
Operation Name for posting Response Metadata in secondary ASE.
Example:
Below is a sample substitution snippet:
var ase_token = "ASE-Token-123"; /Primary ASE Configuration/ var primary_ase_service = "{pi-as-ase-primary_0.0.0}svc_314492f1-ecdc-4184-93a0-57ee2258154b.smshargi.sandbox"; var primary_ase_interface = "{pi-as-ase-primary_0.0.0}pi-as-ase-primary_PortType_0"; var primary_ase_request_operation = "postRequestMetadata"; var primary_ase_response_operation = "postResponseMetadata"; /**/ /Secondary ASE Configuration/ var secondry_ase_service = "{pi-as-ase-primary_0.0.0}svc_314492f1-ecdc-4184-93a0-57ee2258154b.smshargi.sandbox"; var secondary_ase_interface = "{pi-as-ase-primary_0.0.0}pi-as-ase-primary_PortType_0"; var secondary_ase_request_operation = "postRequestMetadata"; var secondary_ase_response_operation = "postResponseMetadata";
-
Click Finish, and then click Close.