Lists all scripts.
ScriptsApi.listScripts([param1, param2, ...])
ScriptsApi.list_scripts([param1, param2, ...])
ScriptsApi.listScripts([param1, param2, ...])
successful operation
Not authorized to view scripts.
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.ScriptsApi; import com.trendmicro.deepsecurity.model.Scripts; public class ListScriptsExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values ScriptsApi instance = new ScriptsApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours Scripts result = instance.listScripts(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling ScriptsApi.listScripts"); e.printStackTrace(); } } }
{- "scripts": [
- "string"
]
}