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. getAllComputeResourceNames.php
      20. getComputeResource.php

      21. deleteComputeResource.php

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

      32. getApplicationOutputs.php
      33. 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;


View All Computational Resources
  1. User can view all existing resources linked with the gateway using script; getAllComputeResourceNames.php
    1. Format;
      php getAllComputeResourceNames.php
  2. Computational resource names and their IDs will be listed at the script execution.
    Image Added
Delete Computational Resource

...