public IApiResult GetSessionManagementMethod(string contextId) { var parameters = new Dictionary <string, string> { { "contextId", contextId } }; return(_zapClient.CallApi(Component, ActionTypes.View, "getSessionManagementMethod", parameters)); }
public IApiResult GetForcesUser(string contextId) { var parameters = new Dictionary <string, string> { { "contextId", contextId } }; return(_zapClient.CallApi(Component, ActionTypes.View, "getForcesUser", parameters)); }
/// <summary> /// Break /// </summary> /// <param name="apikey">The api key for the Zap-server</param> /// <param name="type">Type</param> /// <param name="scope">Scope</param> /// <param name="state">State</param> /// <returns>Result of the action</returns> public IApiResult Break(string apikey, string type, string scope, string state) { var parameters = ApikeyHelper.ReturnParameterDictFromApikey(apikey); parameters.Add("type", type); parameters.Add("scope", scope); parameters.Add("state", state); return(_zapClient.CallApi(Component, ActionTypes.Action, "break", parameters)); }
public IApiResult GetAuthenticationCredentials(string contextId, string userId) { var parameters = new Dictionary <string, string> { { "contextId", contextId }, { "userId", userId } }; return(_zapClient.CallApi(Component, ActionTypes.View, "getAuthenticationCredentials", parameters)); }
public IApiResult GetActiveSession(string site) { var parameters = new Dictionary <string, string> { { "site", site } }; return(_zapClient.CallApi(Component, ActionTypes.View, "activeSession", parameters)); }
internal IApiResult ActionWithParameter <T>(string apikey, T option, string action) { var parameters = ApikeyHelper.ReturnParameterDictFromApikey(apikey); var parameter = GetParameterName(typeof(T)); parameters.Add(parameter, option.ToString()); return(_zapClient.CallApi(_component, ActionTypes.Action, action, parameters)); }
private IApiResult GetRegexAction(string regex, IDictionary <string, string> parameters, string action) { if (parameters == null) { parameters = new Dictionary <string, string>(); } parameters.Add("regex", regex); return(_zapClient.CallApi(Component, ActionTypes.View, action, parameters)); }
public IApiResult GetParams(string site = null) { var parameters = new Dictionary <string, string>(); if (site != null) { parameters.Add("site", site); } return(_zapClient.CallApi(Component, ActionTypes.View, "params", parameters)); }
public IApiResult GetAlertsIds(string scanId) { var parameters = new Dictionary <string, string> { { "scanId", scanId } }; return(_zapClient.CallApi(Component, ActionTypes.View, "alertsIds", parameters)); }
public IApiResult GetIsLatestVersion() { return(_zapClient.CallApi(Component, ActionTypes.View, "isLatestVersion")); }
/// <summary> /// Lists the names of all anti CSRF tokens /// </summary> /// <returns>List of anti CSRF tokens</returns> public IApiResult GetOptionTokenNames() { return(_zapClient.CallApi(Component, ActionTypes.View, "optionTokensNames")); }
/// <summary> /// Tells if shows hidden fields and enables disabled fields /// </summary> /// <returns>Result</returns> public IApiResult GetReveal() { return(_zapClient.CallApi(Component, ActionTypes.View, "reveal")); }
/// <summary> /// The number of records the passive scanner still has to scan /// </summary> /// <returns>List of records the passive scanner still has to scan</returns> public IApiResult GetRecordsToScan() { return(_zapClient.CallApi(Component, ActionTypes.View, "recordsToScan")); }
public IApiResult GetContext(string contextName) { var parameters = new Dictionary <string, string> { { "contextName", contextName } }; return(_zapClient.CallApi(Component, ActionTypes.View, "context", parameters)); }
/// <summary> /// Returns the current path to ChromeDriver /// </summary> /// <returns>Current path to ChromeDriver</returns> public IApiResult GetOptionChromeDriverPath() { return(_zapClient.CallApi(Component, ActionTypes.View, "optionChromeDriverPath")); }
public IApiResult GetNumberOfResults() { return(_zapClient.CallApi(Component, ActionTypes.View, "numberOfResults")); }
public IApiResult ListEngines() { return(_zapClient.CallApi(Component, ActionTypes.View, "listEngines")); }
public IApiResult GetExcludedFromProxy() { return(_zapClient.CallApi(Component, ActionTypes.View, "excludedFromProxy")); }