Skip to main content

Getting Available Query Presets

The API client can get a list of query presets available to the current user.

CxSDKWebService.GetPresetList Method

public CxWSResponsePresetList GetPresetList(
   string SessionID
);

Parameters

Return Value

Array of query presets.

Example

internal void Main(string [] args)
{
    String sessionID = args[0];
    CxSDKWebServiceSoapClient cxSDKProxy = new CxSDKWebServiceSoapClient();
    CxWSResponsePresetList response = cxSDKProxy.GetPresetList(sessionID);
    PresetListSucceded = response.IsSuccesfull;
}

SOAP to REST Mapping

This section covers SOAP to REST migration and mapping of our legacy SOAP based SDK to the new REST APIs. It is recommended to use this reference only once CxSAST V8.8.0 is installed.

GetPresetList

GET /sast/presets

Get details of all presets

For more mapping information, refer to API Mapping (SOAP to REST). You can also find a summary of our REST APIs here.