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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| cpm_url | string | yes | WTI device host or host:port | |
| cpm_username | string | yes | WTI username; an empty username selects an API token | |
| cpm_password | string | yes | WTI password or API token | |
| cpm_action | string | yes | getplugcontrol or setplugcontrol | |
| plug_id | string | yes | Plug number, name, comma list, or all | |
| plug_state | string | Power command | ||
| use_https | bool | true | Use HTTPS instead of HTTP | |
| validate_certs | bool | true | Validate the device TLS certificate | |
| use_proxy | bool | false | Observe 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