Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a folder (ex: SciGaP) in a preferable location in your local machine to clone the PHP samples from GitHub. 
  2. 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. 
  3. 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
  4. client-samples  folder contains PHP scripts to exercise currently existing Airavata API methods;
      1. GetAPIVersion.php (a sanity check) 
      2. createProject.php
      3. updateProject.php
      4. getAllUserProjects.php
      5. createExperiment.php
      6. getExperiment.php
      7. updateExperiment.php
      8. cloneExperiment.php
      9. getAllExperimentsInProject.php
      10. getAllUserExperiments.php
      11. search_experiments_by_name.php
      12. search_experiments_by_description.php
      13. search_experiments_by_application.php
      14. launchExperiment.php
      15. terminateExperiment.php 
      16. getExperimentStatus.php
      17. getExperimentOutputs.php
      18. registerComputeResource.php
      19. getComputeResource.php

      20. deleteComputeResource.php

      21. registerApplicationModule.php
      22. getAppModule.php
      23. registerApplicationInterface.php
      24. updateApplicationInterface.php
      25. getAllApplicationInterfaceNames.php
      26. deleteApplicationInterface.php
      27. getAvailableAppInterfaceComputeResources.php
      28. registerApplicationDeployment.php
      29. getApplicationDeployedResources.php
      30. getApplicationInputs.php

      31. getApplicationOutputs.php
      32. airavata-client-api-tester.php
  5. Apart for the scripts for the API methods the folder contains;
    1. getAiravataClient.php - This script is referred by all other scripts to obtain Airavata client. Not for stand alone execution.
    2. README.txt - Gives an introduction to the scripts and also reference links to wiki pages with command line script execution information
  6. Navigation to working directory; 
    cd SciGaP/airavata/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/php-cli-samples

...

  1. To view computational resource information after creating above; use the script getComputeResource.php
    1. Format;
    2. php getComputeResource.php<space><computeResourceId>
  2. Given information will be available when the script is executed;


Delete Computational Resource
  1. User can delete existing computational resource form the gateway by using script; deleteComputeResource.php
    1. Format;
      php deleteComputeResource.php <computeResourceId>
  2. Once the script is executed user will be prompted a successfully deleted message
    Computational Resource<space><computeResourceId><space>successfully<space>deleted

Tutorial IX - Application Modules

...