probeProxy

proxy_exist

Verifies if a given proxy exists

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaostoxi.proxy.actions
Namemodify_proxy
Returnbool

Usage

JSON

{
  "name": "proxy-exist",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaostoxi.proxy.probes",
    "func": "proxy_exist",
    "arguments": {
      "proxy_name": ""
    }
  }
}

YAML

name: proxy-exist
provider:
  arguments:
    proxy_name: ""
  func: proxy_exist
  module: chaostoxi.proxy.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
proxy_namestringYesProxy NameName of the proxy to verify’s availability

Signature

def proxy_exist(proxy_name: str,
                configuration: Dict[str, Dict[str, str]] = None) -> bool:
    pass