PARALLAX

cpm_plugcontrol

Get and Set Plug actions on WTI OOB and PDU power devices

Collection: wti.remote

Full Name: wti.remote.cpm_plugcontrol

Synopsis

Get and Set Plug actions on WTI OOB and PDU power devices

Parameters

NameTypeRequiredDefaultDescription
cpm_urlstringyesWTI device host or host:port
cpm_usernamestringyesWTI username; an empty username selects an API token
cpm_passwordstringyesWTI password or API token
cpm_actionstringyesgetplugcontrol or setplugcontrol
plug_idstringyesPlug number, name, comma list, or all
plug_statestringPower command
use_httpsbooltrueUse HTTPS instead of HTTP
validate_certsbooltrueValidate the device TLS certificate
use_proxyboolfalseObserve HTTP proxy environment variables

Example

yaml
- name: Turn plug 1 on for a WTI power device
  wti.remote.cpm_plugcontrol:
    cpm_action: setplugcontrol
    cpm_url: rest.wti.com
    cpm_username: restpower
    cpm_password: restfulpowerpass12
    plug_id: "1"
    plug_state: on
    use_https: true
    validate_certs: true
Search
    ↑ ↓ move↵ openesc close