avail.stackscripts()

Returns a list of available public StackScripts.

Parameters

  • DistributionID - numeric (optional) Limit the results to StackScripts that can be applied to this DistributionID
  • DistributionVendor - string (optional) Debian, Ubuntu, Fedora, etc.
  • keywords - string (optional) Search terms

Example Response

{
   ERRORARRAY: [ ],
   DATA: [
      {
         SCRIPT: "#!/bin/bash

         #this is the content of the first StackScript",
         DESCRIPTION: "",
         DISTRIBUTIONIDLIST: "77,78",
         LABEL: "StackScript001",
         DEPLOYMENTSTOTAL: 1,
         LATESTREV: 1,
         CREATE_DT: "2012-05-22 16:35:42.0",
         DEPLOYMENTSACTIVE: 1,
         STACKSCRIPTID: 1,
         REV_NOTE: "Initial import",
         REV_DT: "2012-05-22 16:35:42.0",
         ISPUBLIC: 1,
         USERID: 91886
      },
      {
         SCRIPT: "#!/bin/bash
         # this is the content of the other script",
         DESCRIPTION: "",
         DISTRIBUTIONIDLIST: "77,78",
         LABEL: "StackScript002",
         DEPLOYMENTSTOTAL: 0,
         LATESTREV: 2,
         CREATE_DT: "2012-05-22 17:12:48.0",
         DEPLOYMENTSACTIVE: 0,
         STACKSCRIPTID: 2,
         REV_NOTE: "Initial import",
         REV_DT: "2012-05-22 17:12:48.0",
         ISPUBLIC: 1,
         USERID: 91886
      }
   ],
   ACTION: "avail.stackscripts"
}

Errors

None.