Configuration
The plugin is executed by defining the corresponding parameters:
usage: pandora_api_requests [-h] -u URL [-m {get,post,put,patch,delete,option}] [-hd HEADERS] [-d DATA] [--ssl SSL] [-md {requests,server_plugin}] [--comparison-value COMPARISON_VALUE] [--condition {is_equal_to,is_not_equal_to,is_greater_than,is_less_than,contains,does_not_contain,matches_regex,is_null,is_not_null}]
[--down_codes DOWN_CODES [DOWN_CODES ...]] [-v] [--json-path JSON_PATH]
options:
-u, --url The URL to which the HTTP request will be made. (Example. http://127.0.0.1)
-m, --method {get,post,put,patch,delete,option}
The HTTP method to use (GET, POST, PUT, PATH, DELETE).
-hd, --headers headers key-values parameters in coma separate key pairs. (Example "Authorization=Bearer abc123token,Content-Type=application/json,X-Request-ID=123456")
-d, --data Data key-values parameters in coma separate key pairs. (Example. "title=foo,body=bar,userId=1")
--ssl SSL internet security protocol
-md, --mode {requests,server_plugin} Return output for server plugin, if choice request, return output for request plugin
--comparison-value The value to compare the filtered field to in the json
--condition {is_equal_to,is_not_equal_to,is_greater_than,is_less_than,contains,does_not_contain,matches_regex,is_null,is_not_null}
If match the condition the value will be critial (0)
Condición: is_equal_to | is_not_equal_to | is_greater_than | is_less_than | contains | does_not_contain | matches_regex | is_null | is_not_null
--down_codes DOWN_CODES [DOWN_CODES ...]
Space-separated list of status codes (without quotation marks) Example : --down-codes 404 400
-v, --verbosity Add flag to check response raw value on terminal
--json-path Word to search in the json