submitting code for peer review issue #1
This commit is contained in:
parent
ad8cf23ea1
commit
b0c029e877
8
index.js
8
index.js
@ -1,14 +1,14 @@
|
||||
/*const apiKey = {
|
||||
tokenID: 'test@pam!fixparsec',
|
||||
secret: 'b4e53082-4891-4d36-95c6-8662bd58f2ee'
|
||||
tokenID: 'ajones@pam!fixparsec',
|
||||
secret: '887ec723-b31a-43ca-be50-82ace6697536'
|
||||
}
|
||||
HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/status/reboot
|
||||
url -H "Authorization: test@pam!fixparsec=b4e53082-4891-4d36-95c6-8662bd58f2ee" https://192.168.1.32:8006/api2/json/*/
|
||||
curl -H "Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536" https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot*/
|
||||
|
||||
var request = require('request');
|
||||
|
||||
var headers = {
|
||||
'Authorization': 'test@pam!fixparsec=b4e53082-4891-4d36-95c6-8662bd58f2ee'
|
||||
'Authorization': 'ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536'
|
||||
};
|
||||
|
||||
var options = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user