cpm_user
Get and change user accounts on WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_user
Synopsis
Get and change user accounts on WTI OOB and PDU 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 | getuser, adduser, edituser, or deleteuser | |
| user_name | string | yes | Account name | |
| user_pass | string | New account password | ||
| user_accesslevel | int | Access level | ||
| user_accessssh | int | SSH access | ||
| user_accessserial | int | Serial access | ||
| user_accessweb | int | Web access | ||
| user_accessapi | int | API access | ||
| user_accessmonitor | int | Monitor access | ||
| user_accessoutbound | int | Outbound access | ||
| user_portaccess | string | Serial port access mask | ||
| user_plugaccess | string | Plug access mask | ||
| user_groupaccess | string | Group access mask | ||
| user_callbackphone | string | Callback phone number | ||
| 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: Read one user from a WTI device
wti.remote.cpm_user:
cpm_action: getuser
cpm_url: rest.wti.com
cpm_username: restuser
cpm_password: restfuluserpass12
user_name: usernumberone
use_https: true
validate_certs: true