@asouthernboy wrote:
I’m trying to send cookie (api token) to my Proxmox server and i cannot get response.
I think my main issues is that i am not sure how to write command line.
Basically i have spent whole day trying various commands (the one below is from Proxmox Documentation", but still i get “unknown”
How do i access file that is stored in config directory?
“$(<cookiee)” is actually cookie file that is saved.- platform: command_line name: NUC COMMAND command: curl --insecure --cookie "$(<cookiee)" https://192.168.1.20:8006/api2/json/nodes/prox/version value_template: '{{value_json.data.version}}' scan_interval: 60
- platform: command_line name: NUC COMMAND command: curl --insecure -b "$(<cookiee)" https://192.168.1.20:8006/api2/json/nodes/prox/version value_template: '{{value_json.data.version}}' scan_interval: 60
Posts: 1
Participants: 1