Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "aaffe7b5.273fb8",
- "type": "inject",
- "z": "a9895dd4.ee6cf",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "headers[\"content-type\"]",
- "v": "application/x-www-form-urlencoded",
- "vt": "str"
- },
- {
- "p": "rejectUnauthorized",
- "v": "false",
- "vt": "bool"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "{\"username\":\"root@pam\",\"password\":\"123456789\"}",
- "payloadType": "json",
- "x": 100,
- "y": 620,
- "wires": [
- [
- "f39fa33d.e5632"
- ]
- ]
- },
- {
- "id": "fef8d661.a3e8a8",
- "type": "debug",
- "z": "a9895dd4.ee6cf",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 520,
- "y": 620,
- "wires": []
- },
- {
- "id": "f39fa33d.e5632",
- "type": "http request",
- "z": "a9895dd4.ee6cf",
- "name": "Proxmox | Get Token",
- "method": "POST",
- "ret": "obj",
- "paytoqs": "ignore",
- "url": "https://192.168.1.235:8006/api2/json/access/ticket",
- "tls": "",
- "persist": false,
- "proxy": "",
- "authType": "",
- "x": 140,
- "y": 740,
- "wires": [
- [
- "4f9a28e8.6363b8"
- ]
- ]
- },
- {
- "id": "4f9a28e8.6363b8",
- "type": "function",
- "z": "a9895dd4.ee6cf",
- "name": "Write Cookie",
- "func": "$token = msg.payload.data.ticket;\n\nmsg.cookies =\n{\n \"PVEAuthCookie\": $token\n \n};\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 360,
- "y": 740,
- "wires": [
- [
- "f6e33aa4.26c068"
- ]
- ]
- },
- {
- "id": "f6e33aa4.26c068",
- "type": "http request",
- "z": "a9895dd4.ee6cf",
- "name": "Proxmox | Get Status",
- "method": "GET",
- "ret": "obj",
- "paytoqs": "ignore",
- "url": "https://192.168.1.235:8006/api2/json/nodes/pmfernandes/status/",
- "tls": "",
- "persist": false,
- "proxy": "",
- "authType": "",
- "x": 570,
- "y": 740,
- "wires": [
- [
- "fef8d661.a3e8a8"
- ]
- ]
- }
- ]
Add Comment
Please, Sign In to add comment