...
- Create a folder (ex: SciGaP) in a preferable location in your local machine to clone the PHP samples from GitHub.
- Open the created SciGaP folder (...../ cd SciGaP) and clone the files using GitHuB ‘HTTPS clone URL’
git clone https://git-wip-us.apache.org/repos/asf?p=airavata.git
Once the cloning is completed you would get a completed message. - Open the folder which contains the PHP sample scripts.
SciGaP → airavata/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples - client-samples folder contains PHP scripts to exercise currently existing Airavata API methods;
- add-compute-resources.php
- GetAPIVersion.php (a sanity check)
-
- createProject.php
- updateProject.php
- getAllUserProjects.php
- createExperiment.php
- getExperiment.php
- updateExperiment.php
- cloneExperiment.php
- getAllExperimentsInProject.php
- getAllUserExperiments.php
launchExperiment- search_experiments_by_name.php
- search_experiments_by_description.php
getExperimentStatus- search_experiments_by_application.php
getExperimentOutputs- launchExperiment.php
- terminateExperiment.php
list-application-interfaces- getExperimentStatus.php
list-compute-resources- getExperimentOutputs.php
- airavata-client-api-tester.php
- registerComputeResource.php
- registerApplicationModule.php
- getAppModule.php
- registerApplicationInterface.php
- updateApplicationInterface.php
- getAllApplicationInterfaceNames.php
- deleteApplicationInterface.php
- getAvailableAppInterfaceComputeResources.php
- registerApplicationDeployment.php
- getApplicationDeployedResources.php
getApplicationInputs.php
- getApplicationOutputs.php
- airavata-client-api-tester.php
- Apart for the scripts for the API methods the folder contains;
- airavata-client-properties.ini - contains the server. port and timeout period information
- getAiravataClient.php - This script is referred by all other scripts to obtain Airavata client. Not for stand alone execution.
- READMEREADME-PHP-CLI-Examples.txt - Gives an introduction to the scripts and also reference links to wiki pages with command line script execution orderinformation
- Navigation to working directory;
cd SciGaP/airavata/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples
...
- To view all application deployments of a particle application module use the script; getApplicationDeployedResources.php
- By providing the application module ID can view all available application deployments of the application.
- Format;
php getApplicationDeployedResources.php<space><appModuleID>
- Output will look like;
Tutorial XII - View Application Input & Output
View Application Input
- in order to view a particular application input data this script can be used with providing application interface ID
- Format;
php getApplicationInputs.php
- At script execution user will be provided with information on application inputs.
Sample inout information on Echo application
Tutorial X - Airavata API tester
...
{"serverDuration": 129, "requestCorrelationId": "e244b4800a0270bd"}