Get a list of scripts by date range (GetScripts)

In this use case, you are interested in seeing only scripts created within a certain date range, modified within a certain date range, or due to expire within a certain date range. GetScripts() enables you to restrict it output based on such a date range using a ScriptFilter. You can filter by create date. The API provides a collection of operators that enable you to specify how the date criterion or criteria is or are applied. These operators include LessThan, LessThanOrEqualTo, EqualTo, GreaterThan, and GreaterOrEqualTo. You may also combine date filter criteria with other criteria, such as AgentType. The following query contains a script filter restricting GetScripts() output by a create date range:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <soapenv:Header/>
   <soapenv:Body>
      <prov:GetScriptsRequest>
         <prov:Credentials>
            <prov:UserName>MyUser</prov:UserName>
            <prov:Password>MyPassword</prov:Password>
         </prov:Credentials>
         <!--Optional:-->
         <prov:ScriptFilter>
            <prov:QueryByCreateDate dateQueryType="GreaterThan"
                                    queryDate="2012-06-11T20:12:26.54"/>
            <prov:QueryByCreateDate dateQueryType="LessThan"
                                    queryDate="2012-08-11T20:12:26.54"/>
         </prov:ScriptFilter>
      </prov:GetScriptsRequest>
   </soapenv:Body>
</soapenv:Envelope>

Since scripts are infrequently modified and do not actually run until converted to Backbone tests, the create date range query is the only date range query supported for the GetScripts() operation.