ZAP API UI

Component: context

Views

context (contextName* ) List the information about the named context
contextListList context names of current session
excludeRegexs (contextName* ) List excluded regexs for context
excludedTechnologyList (contextName* ) Lists the names of all technologies excluded from a context
includeRegexs (contextName* ) List included regexs for context
includedTechnologyList (contextName* ) Lists the names of all technologies included in a context
technologyListLists the names of all built in technologies
urls (contextName* ) Lists the URLs accessed through/by ZAP, that belong to the context with the given name.

Actions

excludeAllContextTechnologies (contextName* ) Excludes all built in technologies from a context
excludeContextTechnologies (contextName* technologyNames* ) Excludes technologies with the given names, separated by a comma, from a context
excludeFromContext (contextName* regex* ) Add exclude regex to context
exportContext (contextName* contextFile* ) Exports the context with the given name to a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.
importContext (contextFile* ) Imports a context from a file. If a relative file path is specified it will be resolved against the "contexts" directory in ZAP "home" dir.
includeAllContextTechnologies (contextName* ) Includes all built in technologies in to a context
includeContextTechnologies (contextName* technologyNames* ) Includes technologies with the given names, separated by a comma, to a context
includeInContext (contextName* regex* ) Add include regex to context
newContext (contextName* ) Creates a new context with the given name in the current session
removeContext (contextName* ) Removes a context in the current session
setContextCheckingStrategy (contextName* checkingStrategy* pollUrl pollData pollHeaders pollFrequency pollFrequencyUnits ) Set the checking strategy for a context - this defines how ZAP checks that a request is authenticated
setContextInScope (contextName* booleanInScope* ) Sets a context to in scope (contexts are in scope by default)
setContextRegexs (contextName* incRegexs* excRegexs* ) Set the regexs to include and exclude for a context, both supplied as JSON string arrays