actionProxy

disable_proxy

Disables the proxy, this is useful to simulate a proxied service being down

Activity as code

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

Typeaction
Modulechaostoxi.proxy.actions
Namedisable_proxy
ReturnNone

Usage

JSON

{
  "name": "disable-proxy",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaostoxi.proxy.actions",
    "func": "disable_proxy",
    "arguments": {
      "proxy_name": ""
    }
  }
}

YAML

name: disable-proxy
provider:
  arguments:
    proxy_name: ""
  func: disable_proxy
  module: chaostoxi.proxy.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
proxy_namestringYesProxy NameName of the proxy to disable

Signature

def disable_proxy(proxy_name: str,
                  configuration: Dict[str, Dict[str, str]] = None):
    pass