actionProxy

modify_proxy

Modify the configuration of a given proxy

Activity as code

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

Typeaction
Modulechaostoxi.proxy.actions
Namemodify_proxy
ReturnNone

Usage

JSON

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

YAML

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

Arguments

NameTypeDefaultRequiredTitleDescription
proxy_namestringYesProxy NameName of the proxy
listen_addressstringnullNoListening AddressListening address of the proxy
upstream_addressstringnullNoUpstream AddressUpstream address
enabledbooleannullNoEnabledWhether this proxy is enabled or not

Use this action to change the upstream configuration. Only arguments supplied result in modification of the proxy.

Signature

def modify_proxy(proxy_name: str,
                 listen_address: str = None,
                 upstream_address: str = None,
                 enabled: bool = None,
                 configuration: Dict[str, Dict[str, str]] = None):
    pass