diff --git a/grep b/grep new file mode 100644 index 0000000..b9aa9f6 --- /dev/null +++ b/grep @@ -0,0 +1,1169 @@ + +IncomingMessage { + _readableState: ReadableState { + objectMode: false, + highWaterMark: 16384, + buffer: BufferList { head: null, tail: null, length: 0 }, + length: 0, + pipes: null, + pipesCount: 0, + flowing: true, + ended: true, + endEmitted: true, + reading: false, + sync: false, + needReadable: false, + emittedReadable: false, + readableListening: false, + resumeScheduled: false, + emitClose: true, + autoDestroy: false, + destroyed: false, + defaultEncoding: 'utf8', + awaitDrainWriters: null, + multiAwaitDrain: false, + readingMore: false, + decoder: null, + encoding: null, + [Symbol(kPaused)]: false + }, + readable: false, + _events: [Object: null prototype] { + end: [ [Function: responseOnEnd], [Function] ], + close: [ [Function], [Function] ], + data: [Function], + error: [Function] + }, + _eventsCount: 4, + _maxListeners: undefined, + socket: TLSSocket { + _tlsOptions: { + allowHalfOpen: undefined, + pipe: false, + secureContext: [SecureContext], + isServer: false, + requestCert: true, + rejectUnauthorized: false, + session: undefined, + ALPNProtocols: undefined, + requestOCSP: undefined, + enableTrace: undefined, + pskCallback: undefined + }, + _secureEstablished: true, + _securePending: false, + _newSessionPending: false, + _controlReleased: true, + secureConnecting: false, + _SNICallback: null, + servername: false, + alpnProtocol: false, + authorized: false, + authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', + encrypted: true, + _events: [Object: null prototype] { + close: [Array], + end: [Array], + newListener: [Function: keylogNewListener], + secure: [Function: onConnectSecure], + session: [Function], + free: [Function: onFree], + timeout: [Function: onTimeout], + agentRemove: [Function: onRemove], + error: [Function: socketErrorListener], + data: [Function: socketOnData], + drain: [Function: ondrain], + connect: [Function] + }, + _eventsCount: 12, + connecting: false, + _hadError: false, + _parent: null, + _host: null, + _readableState: ReadableState { + objectMode: false, + highWaterMark: 16384, + buffer: BufferList { head: null, tail: null, length: 0 }, + length: 0, + pipes: null, + pipesCount: 0, + flowing: true, + ended: true, + endEmitted: true, + reading: false, + sync: false, + needReadable: false, + emittedReadable: false, + readableListening: false, + resumeScheduled: false, + emitClose: false, + autoDestroy: false, + destroyed: true, + defaultEncoding: 'utf8', + awaitDrainWriters: null, + multiAwaitDrain: false, + readingMore: false, + decoder: null, + encoding: null, + [Symbol(kPaused)]: false + }, + readable: false, + _maxListeners: undefined, + _writableState: WritableState { + objectMode: false, + highWaterMark: 16384, + finalCalled: true, + needDrain: false, + ending: true, + ended: true, + finished: false, + destroyed: true, + decodeStrings: false, + defaultEncoding: 'utf8', + length: 0, + writing: false, + corked: 0, + sync: false, + bufferProcessing: false, + onwrite: [Function: bound onwrite], + writecb: null, + writelen: 0, + afterWriteTickInfo: null, + bufferedRequest: null, + lastBufferedRequest: null, + pendingcb: 1, + prefinished: false, + errorEmitted: false, + emitClose: false, + autoDestroy: false, + bufferedRequestCount: 0, + corkedRequestsFree: [Object] + }, + writable: false, + allowHalfOpen: false, + _sockname: null, + _pendingData: null, + _pendingEncoding: '', + server: undefined, + _server: null, + ssl: null, + _requestCert: true, + _rejectUnauthorized: false, + parser: null, + _httpMessage: ClientRequest { + _events: [Object: null prototype], + _eventsCount: 5, + _maxListeners: undefined, + outputData: [], + outputSize: 0, + writable: true, + _last: true, + chunkedEncoding: false, + shouldKeepAlive: false, + _defaultKeepAlive: true, + useChunkedEncodingByDefault: false, + sendDate: false, + _removedConnection: false, + _removedContLen: false, + _removedTE: false, + _contentLength: 0, + _hasBody: true, + _trailer: '', + finished: true, + _headerSent: true, + socket: [Circular], + connection: [Circular], + _header: 'GET /api2/json/nodes/pve1/qemu/109/status/reboot HTTP/1.1\r\n' + + 'Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536\r\n' + + 'host: 192.168.1.32:8006\r\n' + + 'Connection: close\r\n' + + '\r\n', + _keepAliveTimeout: 0, + _onPendingData: [Function: noopPendingOutput], + agent: [Agent], + socketPath: undefined, + method: 'GET', + insecureHTTPParser: undefined, + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + _ended: true, + res: [Circular], + aborted: false, + timeoutCb: null, + upgradeOrConnect: false, + parser: null, + maxHeadersCount: null, + reusedSocket: false, + host: '192.168.1.32', + protocol: 'https:', + [Symbol(kCapture)]: false, + [Symbol(kNeedDrain)]: false, + [Symbol(corked)]: 0, + [Symbol(kOutHeaders)]: [Object: null prototype] + }, + write: [Function: writeAfterFIN], + [Symbol(res)]: TLSWrap { + _parent: [TCP], + _parentWrap: undefined, + _secureContext: [SecureContext], + reading: true, + onkeylog: [Function: onkeylog], + onhandshakestart: [Function: noop], + onhandshakedone: [Function], + onocspresponse: [Function: onocspresponse], + onnewsession: [Function: onnewsessionclient], + onerror: [Function: onerror], + [Symbol(owner_symbol)]: [Circular] + }, + [Symbol(verified)]: true, + [Symbol(pendingSession)]: null, + [Symbol(asyncId)]: 5, + [Symbol(kHandle)]: null, + [Symbol(kSetNoDelay)]: false, + [Symbol(lastWriteQueueSize)]: 0, + [Symbol(timeout)]: null, + [Symbol(kBuffer)]: null, + [Symbol(kBufferCb)]: null, + [Symbol(kBufferGen)]: null, + [Symbol(kCapture)]: false, + [Symbol(kBytesRead)]: 194, + [Symbol(kBytesWritten)]: 179, + [Symbol(connect-options)]: { + rejectUnauthorized: false, + ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA', + checkServerIdentity: [Function: checkServerIdentity], + minDHSize: 1024, + _events: [Object: null prototype], + _eventsCount: 3, + _maxListeners: undefined, + headers: [Object], + callback: [Function], + readable: true, + writable: true, + _qs: [Querystring], + _auth: [Auth], + _oauth: [OAuth], + _multipart: [Multipart], + _redirect: [Redirect], + _tunnel: [Tunnel], + setHeader: [Function], + hasHeader: [Function], + getHeader: [Function], + removeHeader: [Function], + method: 'GET', + localAddress: undefined, + pool: {}, + dests: [], + __isRequestRequest: true, + _callback: [Function: callback], + uri: [Url], + proxy: null, + tunnel: true, + setHost: true, + originalCookieHeader: undefined, + _disableCookies: true, + _jar: undefined, + port: '8006', + host: '192.168.1.32', + path: null, + httpModule: [Object], + agentClass: [Function: Agent], + agent: [Agent], + _started: true, + href: 'https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot', + _defaultAgent: [Agent], + servername: '', + _agentKey: '192.168.1.32:8006::::::::::::::::::', + encoding: null, + singleUse: true + } + }, + connection: TLSSocket { + _tlsOptions: { + allowHalfOpen: undefined, + pipe: false, + secureContext: [SecureContext], + isServer: false, + requestCert: true, + rejectUnauthorized: false, + session: undefined, + ALPNProtocols: undefined, + requestOCSP: undefined, + enableTrace: undefined, + pskCallback: undefined + }, + _secureEstablished: true, + _securePending: false, + _newSessionPending: false, + _controlReleased: true, + secureConnecting: false, + _SNICallback: null, + servername: false, + alpnProtocol: false, + authorized: false, + authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', + encrypted: true, + _events: [Object: null prototype] { + close: [Array], + end: [Array], + newListener: [Function: keylogNewListener], + secure: [Function: onConnectSecure], + session: [Function], + free: [Function: onFree], + timeout: [Function: onTimeout], + agentRemove: [Function: onRemove], + error: [Function: socketErrorListener], + data: [Function: socketOnData], + drain: [Function: ondrain], + connect: [Function] + }, + _eventsCount: 12, + connecting: false, + _hadError: false, + _parent: null, + _host: null, + _readableState: ReadableState { + objectMode: false, + highWaterMark: 16384, + buffer: BufferList { head: null, tail: null, length: 0 }, + length: 0, + pipes: null, + pipesCount: 0, + flowing: true, + ended: true, + endEmitted: true, + reading: false, + sync: false, + needReadable: false, + emittedReadable: false, + readableListening: false, + resumeScheduled: false, + emitClose: false, + autoDestroy: false, + destroyed: true, + defaultEncoding: 'utf8', + awaitDrainWriters: null, + multiAwaitDrain: false, + readingMore: false, + decoder: null, + encoding: null, + [Symbol(kPaused)]: false + }, + readable: false, + _maxListeners: undefined, + _writableState: WritableState { + objectMode: false, + highWaterMark: 16384, + finalCalled: true, + needDrain: false, + ending: true, + ended: true, + finished: false, + destroyed: true, + decodeStrings: false, + defaultEncoding: 'utf8', + length: 0, + writing: false, + corked: 0, + sync: false, + bufferProcessing: false, + onwrite: [Function: bound onwrite], + writecb: null, + writelen: 0, + afterWriteTickInfo: null, + bufferedRequest: null, + lastBufferedRequest: null, + pendingcb: 1, + prefinished: false, + errorEmitted: false, + emitClose: false, + autoDestroy: false, + bufferedRequestCount: 0, + corkedRequestsFree: [Object] + }, + writable: false, + allowHalfOpen: false, + _sockname: null, + _pendingData: null, + _pendingEncoding: '', + server: undefined, + _server: null, + ssl: null, + _requestCert: true, + _rejectUnauthorized: false, + parser: null, + _httpMessage: ClientRequest { + _events: [Object: null prototype], + _eventsCount: 5, + _maxListeners: undefined, + outputData: [], + outputSize: 0, + writable: true, + _last: true, + chunkedEncoding: false, + shouldKeepAlive: false, + _defaultKeepAlive: true, + useChunkedEncodingByDefault: false, + sendDate: false, + _removedConnection: false, + _removedContLen: false, + _removedTE: false, + _contentLength: 0, + _hasBody: true, + _trailer: '', + finished: true, + _headerSent: true, + socket: [Circular], + connection: [Circular], + _header: 'GET /api2/json/nodes/pve1/qemu/109/status/reboot HTTP/1.1\r\n' + + 'Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536\r\n' + + 'host: 192.168.1.32:8006\r\n' + + 'Connection: close\r\n' + + '\r\n', + _keepAliveTimeout: 0, + _onPendingData: [Function: noopPendingOutput], + agent: [Agent], + socketPath: undefined, + method: 'GET', + insecureHTTPParser: undefined, + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + _ended: true, + res: [Circular], + aborted: false, + timeoutCb: null, + upgradeOrConnect: false, + parser: null, + maxHeadersCount: null, + reusedSocket: false, + host: '192.168.1.32', + protocol: 'https:', + [Symbol(kCapture)]: false, + [Symbol(kNeedDrain)]: false, + [Symbol(corked)]: 0, + [Symbol(kOutHeaders)]: [Object: null prototype] + }, + write: [Function: writeAfterFIN], + [Symbol(res)]: TLSWrap { + _parent: [TCP], + _parentWrap: undefined, + _secureContext: [SecureContext], + reading: true, + onkeylog: [Function: onkeylog], + onhandshakestart: [Function: noop], + onhandshakedone: [Function], + onocspresponse: [Function: onocspresponse], + onnewsession: [Function: onnewsessionclient], + onerror: [Function: onerror], + [Symbol(owner_symbol)]: [Circular] + }, + [Symbol(verified)]: true, + [Symbol(pendingSession)]: null, + [Symbol(asyncId)]: 5, + [Symbol(kHandle)]: null, + [Symbol(kSetNoDelay)]: false, + [Symbol(lastWriteQueueSize)]: 0, + [Symbol(timeout)]: null, + [Symbol(kBuffer)]: null, + [Symbol(kBufferCb)]: null, + [Symbol(kBufferGen)]: null, + [Symbol(kCapture)]: false, + [Symbol(kBytesRead)]: 194, + [Symbol(kBytesWritten)]: 179, + [Symbol(connect-options)]: { + rejectUnauthorized: false, + ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA', + checkServerIdentity: [Function: checkServerIdentity], + minDHSize: 1024, + _events: [Object: null prototype], + _eventsCount: 3, + _maxListeners: undefined, + headers: [Object], + callback: [Function], + readable: true, + writable: true, + _qs: [Querystring], + _auth: [Auth], + _oauth: [OAuth], + _multipart: [Multipart], + _redirect: [Redirect], + _tunnel: [Tunnel], + setHeader: [Function], + hasHeader: [Function], + getHeader: [Function], + removeHeader: [Function], + method: 'GET', + localAddress: undefined, + pool: {}, + dests: [], + __isRequestRequest: true, + _callback: [Function: callback], + uri: [Url], + proxy: null, + tunnel: true, + setHost: true, + originalCookieHeader: undefined, + _disableCookies: true, + _jar: undefined, + port: '8006', + host: '192.168.1.32', + path: null, + httpModule: [Object], + agentClass: [Function: Agent], + agent: [Agent], + _started: true, + href: 'https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot', + _defaultAgent: [Agent], + servername: '', + _agentKey: '192.168.1.32:8006::::::::::::::::::', + encoding: null, + singleUse: true + } + }, + httpVersionMajor: 1, + httpVersionMinor: 1, + httpVersion: '1.1', + complete: true, + headers: { + 'cache-control': 'max-age=0', + connection: 'close', + date: 'Tue, 25 Jul 2023 01:12:51 GMT', + pragma: 'no-cache', + server: 'pve-api-daemon/3.0', + expires: 'Tue, 25 Jul 2023 01:12:51 GMT' + }, + rawHeaders: [ + 'Cache-Control', + 'max-age=0', + 'Connection', + 'close', + 'Date', + 'Tue, 25 Jul 2023 01:12:51 GMT', + 'Pragma', + 'no-cache', + 'Server', + 'pve-api-daemon/3.0', + 'Expires', + 'Tue, 25 Jul 2023 01:12:51 GMT' + ], + trailers: {}, + rawTrailers: [], + aborted: false, + upgrade: false, + url: '', + method: null, + statusCode: 401, + statusMessage: 'No ticket', + client: TLSSocket { + _tlsOptions: { + allowHalfOpen: undefined, + pipe: false, + secureContext: [SecureContext], + isServer: false, + requestCert: true, + rejectUnauthorized: false, + session: undefined, + ALPNProtocols: undefined, + requestOCSP: undefined, + enableTrace: undefined, + pskCallback: undefined + }, + _secureEstablished: true, + _securePending: false, + _newSessionPending: false, + _controlReleased: true, + secureConnecting: false, + _SNICallback: null, + servername: false, + alpnProtocol: false, + authorized: false, + authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', + encrypted: true, + _events: [Object: null prototype] { + close: [Array], + end: [Array], + newListener: [Function: keylogNewListener], + secure: [Function: onConnectSecure], + session: [Function], + free: [Function: onFree], + timeout: [Function: onTimeout], + agentRemove: [Function: onRemove], + error: [Function: socketErrorListener], + data: [Function: socketOnData], + drain: [Function: ondrain], + connect: [Function] + }, + _eventsCount: 12, + connecting: false, + _hadError: false, + _parent: null, + _host: null, + _readableState: ReadableState { + objectMode: false, + highWaterMark: 16384, + buffer: BufferList { head: null, tail: null, length: 0 }, + length: 0, + pipes: null, + pipesCount: 0, + flowing: true, + ended: true, + endEmitted: true, + reading: false, + sync: false, + needReadable: false, + emittedReadable: false, + readableListening: false, + resumeScheduled: false, + emitClose: false, + autoDestroy: false, + destroyed: true, + defaultEncoding: 'utf8', + awaitDrainWriters: null, + multiAwaitDrain: false, + readingMore: false, + decoder: null, + encoding: null, + [Symbol(kPaused)]: false + }, + readable: false, + _maxListeners: undefined, + _writableState: WritableState { + objectMode: false, + highWaterMark: 16384, + finalCalled: true, + needDrain: false, + ending: true, + ended: true, + finished: false, + destroyed: true, + decodeStrings: false, + defaultEncoding: 'utf8', + length: 0, + writing: false, + corked: 0, + sync: false, + bufferProcessing: false, + onwrite: [Function: bound onwrite], + writecb: null, + writelen: 0, + afterWriteTickInfo: null, + bufferedRequest: null, + lastBufferedRequest: null, + pendingcb: 1, + prefinished: false, + errorEmitted: false, + emitClose: false, + autoDestroy: false, + bufferedRequestCount: 0, + corkedRequestsFree: [Object] + }, + writable: false, + allowHalfOpen: false, + _sockname: null, + _pendingData: null, + _pendingEncoding: '', + server: undefined, + _server: null, + ssl: null, + _requestCert: true, + _rejectUnauthorized: false, + parser: null, + _httpMessage: ClientRequest { + _events: [Object: null prototype], + _eventsCount: 5, + _maxListeners: undefined, + outputData: [], + outputSize: 0, + writable: true, + _last: true, + chunkedEncoding: false, + shouldKeepAlive: false, + _defaultKeepAlive: true, + useChunkedEncodingByDefault: false, + sendDate: false, + _removedConnection: false, + _removedContLen: false, + _removedTE: false, + _contentLength: 0, + _hasBody: true, + _trailer: '', + finished: true, + _headerSent: true, + socket: [Circular], + connection: [Circular], + _header: 'GET /api2/json/nodes/pve1/qemu/109/status/reboot HTTP/1.1\r\n' + + 'Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536\r\n' + + 'host: 192.168.1.32:8006\r\n' + + 'Connection: close\r\n' + + '\r\n', + _keepAliveTimeout: 0, + _onPendingData: [Function: noopPendingOutput], + agent: [Agent], + socketPath: undefined, + method: 'GET', + insecureHTTPParser: undefined, + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + _ended: true, + res: [Circular], + aborted: false, + timeoutCb: null, + upgradeOrConnect: false, + parser: null, + maxHeadersCount: null, + reusedSocket: false, + host: '192.168.1.32', + protocol: 'https:', + [Symbol(kCapture)]: false, + [Symbol(kNeedDrain)]: false, + [Symbol(corked)]: 0, + [Symbol(kOutHeaders)]: [Object: null prototype] + }, + write: [Function: writeAfterFIN], + [Symbol(res)]: TLSWrap { + _parent: [TCP], + _parentWrap: undefined, + _secureContext: [SecureContext], + reading: true, + onkeylog: [Function: onkeylog], + onhandshakestart: [Function: noop], + onhandshakedone: [Function], + onocspresponse: [Function: onocspresponse], + onnewsession: [Function: onnewsessionclient], + onerror: [Function: onerror], + [Symbol(owner_symbol)]: [Circular] + }, + [Symbol(verified)]: true, + [Symbol(pendingSession)]: null, + [Symbol(asyncId)]: 5, + [Symbol(kHandle)]: null, + [Symbol(kSetNoDelay)]: false, + [Symbol(lastWriteQueueSize)]: 0, + [Symbol(timeout)]: null, + [Symbol(kBuffer)]: null, + [Symbol(kBufferCb)]: null, + [Symbol(kBufferGen)]: null, + [Symbol(kCapture)]: false, + [Symbol(kBytesRead)]: 194, + [Symbol(kBytesWritten)]: 179, + [Symbol(connect-options)]: { + rejectUnauthorized: false, + ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA', + checkServerIdentity: [Function: checkServerIdentity], + minDHSize: 1024, + _events: [Object: null prototype], + _eventsCount: 3, + _maxListeners: undefined, + headers: [Object], + callback: [Function], + readable: true, + writable: true, + _qs: [Querystring], + _auth: [Auth], + _oauth: [OAuth], + _multipart: [Multipart], + _redirect: [Redirect], + _tunnel: [Tunnel], + setHeader: [Function], + hasHeader: [Function], + getHeader: [Function], + removeHeader: [Function], + method: 'GET', + localAddress: undefined, + pool: {}, + dests: [], + __isRequestRequest: true, + _callback: [Function: callback], + uri: [Url], + proxy: null, + tunnel: true, + setHost: true, + originalCookieHeader: undefined, + _disableCookies: true, + _jar: undefined, + port: '8006', + host: '192.168.1.32', + path: null, + httpModule: [Object], + agentClass: [Function: Agent], + agent: [Agent], + _started: true, + href: 'https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot', + _defaultAgent: [Agent], + servername: '', + _agentKey: '192.168.1.32:8006::::::::::::::::::', + encoding: null, + singleUse: true + } + }, + _consuming: true, + _dumped: false, + req: ClientRequest { + _events: [Object: null prototype] { + socket: [Function], + response: [Function: bound ], + error: [Function: bound ], + drain: [Function], + prefinish: [Function: requestOnPrefinish] + }, + _eventsCount: 5, + _maxListeners: undefined, + outputData: [], + outputSize: 0, + writable: true, + _last: true, + chunkedEncoding: false, + shouldKeepAlive: false, + _defaultKeepAlive: true, + useChunkedEncodingByDefault: false, + sendDate: false, + _removedConnection: false, + _removedContLen: false, + _removedTE: false, + _contentLength: 0, + _hasBody: true, + _trailer: '', + finished: true, + _headerSent: true, + socket: TLSSocket { + _tlsOptions: [Object], + _secureEstablished: true, + _securePending: false, + _newSessionPending: false, + _controlReleased: true, + secureConnecting: false, + _SNICallback: null, + servername: false, + alpnProtocol: false, + authorized: false, + authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', + encrypted: true, + _events: [Object: null prototype], + _eventsCount: 12, + connecting: false, + _hadError: false, + _parent: null, + _host: null, + _readableState: [ReadableState], + readable: false, + _maxListeners: undefined, + _writableState: [WritableState], + writable: false, + allowHalfOpen: false, + _sockname: null, + _pendingData: null, + _pendingEncoding: '', + server: undefined, + _server: null, + ssl: null, + _requestCert: true, + _rejectUnauthorized: false, + parser: null, + _httpMessage: [Circular], + write: [Function: writeAfterFIN], + [Symbol(res)]: [TLSWrap], + [Symbol(verified)]: true, + [Symbol(pendingSession)]: null, + [Symbol(asyncId)]: 5, + [Symbol(kHandle)]: null, + [Symbol(kSetNoDelay)]: false, + [Symbol(lastWriteQueueSize)]: 0, + [Symbol(timeout)]: null, + [Symbol(kBuffer)]: null, + [Symbol(kBufferCb)]: null, + [Symbol(kBufferGen)]: null, + [Symbol(kCapture)]: false, + [Symbol(kBytesRead)]: 194, + [Symbol(kBytesWritten)]: 179, + [Symbol(connect-options)]: [Object] + }, + connection: TLSSocket { + _tlsOptions: [Object], + _secureEstablished: true, + _securePending: false, + _newSessionPending: false, + _controlReleased: true, + secureConnecting: false, + _SNICallback: null, + servername: false, + alpnProtocol: false, + authorized: false, + authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', + encrypted: true, + _events: [Object: null prototype], + _eventsCount: 12, + connecting: false, + _hadError: false, + _parent: null, + _host: null, + _readableState: [ReadableState], + readable: false, + _maxListeners: undefined, + _writableState: [WritableState], + writable: false, + allowHalfOpen: false, + _sockname: null, + _pendingData: null, + _pendingEncoding: '', + server: undefined, + _server: null, + ssl: null, + _requestCert: true, + _rejectUnauthorized: false, + parser: null, + _httpMessage: [Circular], + write: [Function: writeAfterFIN], + [Symbol(res)]: [TLSWrap], + [Symbol(verified)]: true, + [Symbol(pendingSession)]: null, + [Symbol(asyncId)]: 5, + [Symbol(kHandle)]: null, + [Symbol(kSetNoDelay)]: false, + [Symbol(lastWriteQueueSize)]: 0, + [Symbol(timeout)]: null, + [Symbol(kBuffer)]: null, + [Symbol(kBufferCb)]: null, + [Symbol(kBufferGen)]: null, + [Symbol(kCapture)]: false, + [Symbol(kBytesRead)]: 194, + [Symbol(kBytesWritten)]: 179, + [Symbol(connect-options)]: [Object] + }, + _header: 'GET /api2/json/nodes/pve1/qemu/109/status/reboot HTTP/1.1\r\n' + + 'Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536\r\n' + + 'host: 192.168.1.32:8006\r\n' + + 'Connection: close\r\n' + + '\r\n', + _keepAliveTimeout: 0, + _onPendingData: [Function: noopPendingOutput], + agent: Agent { + _events: [Object: null prototype], + _eventsCount: 2, + _maxListeners: undefined, + defaultPort: 443, + protocol: 'https:', + options: [Object], + requests: {}, + sockets: [Object], + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: false, + maxSockets: Infinity, + maxFreeSockets: 256, + maxTotalSockets: Infinity, + totalSocketCount: 1, + scheduling: 'fifo', + maxCachedSessions: 100, + _sessionCache: [Object], + [Symbol(kCapture)]: false + }, + socketPath: undefined, + method: 'GET', + insecureHTTPParser: undefined, + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + _ended: true, + res: [Circular], + aborted: false, + timeoutCb: null, + upgradeOrConnect: false, + parser: null, + maxHeadersCount: null, + reusedSocket: false, + host: '192.168.1.32', + protocol: 'https:', + [Symbol(kCapture)]: false, + [Symbol(kNeedDrain)]: false, + [Symbol(corked)]: 0, + [Symbol(kOutHeaders)]: [Object: null prototype] { authorization: [Array], host: [Array] } + }, + request: Request { + _events: [Object: null prototype] { + error: [Function: bound ], + complete: [Function: bound ], + pipe: [Function], + data: [Function], + end: [Function] + }, + _eventsCount: 5, + _maxListeners: undefined, + headers: { + Authorization: 'ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536' + }, + callback: [Function], + readable: true, + writable: true, + _qs: Querystring { + request: [Circular], + lib: [Object], + useQuerystring: undefined, + parseOptions: {}, + stringifyOptions: {} + }, + _auth: Auth { + request: [Circular], + hasAuth: false, + sentAuth: false, + bearerToken: null, + user: null, + pass: null + }, + _oauth: OAuth { request: [Circular], params: null }, + _multipart: Multipart { + request: [Circular], + boundary: 'b6746060-69c0-4e51-8707-d8d0d1ec9dc2', + chunked: false, + body: null + }, + _redirect: Redirect { + request: [Circular], + followRedirect: true, + followRedirects: true, + followAllRedirects: false, + followOriginalHttpMethod: false, + allowRedirect: [Function], + maxRedirects: 10, + redirects: [], + redirectsFollowed: 0, + removeRefererHeader: false + }, + _tunnel: Tunnel { + request: [Circular], + proxyHeaderWhiteList: [Array], + proxyHeaderExclusiveList: [] + }, + setHeader: [Function], + hasHeader: [Function], + getHeader: [Function], + removeHeader: [Function], + method: 'GET', + localAddress: undefined, + pool: {}, + dests: [], + __isRequestRequest: true, + _callback: [Function: callback], + uri: Url { + protocol: 'https:', + slashes: true, + auth: null, + host: '192.168.1.32:8006', + port: '8006', + hostname: '192.168.1.32', + hash: null, + search: null, + query: null, + pathname: '/api2/json/nodes/pve1/qemu/109/status/reboot', + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + href: 'https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot' + }, + proxy: null, + tunnel: true, + setHost: true, + originalCookieHeader: undefined, + _disableCookies: true, + _jar: undefined, + port: '8006', + host: '192.168.1.32', + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + httpModule: { + Agent: [Function: Agent], + globalAgent: [Agent], + Server: [Function: Server], + createServer: [Function: createServer], + get: [Function: get], + request: [Function: request] + }, + agentClass: [Function: Agent], + agent: Agent { + _events: [Object: null prototype], + _eventsCount: 2, + _maxListeners: undefined, + defaultPort: 443, + protocol: 'https:', + options: [Object], + requests: {}, + sockets: [Object], + freeSockets: {}, + keepAliveMsecs: 1000, + keepAlive: false, + maxSockets: Infinity, + maxFreeSockets: 256, + maxTotalSockets: Infinity, + totalSocketCount: 1, + scheduling: 'fifo', + maxCachedSessions: 100, + _sessionCache: [Object], + [Symbol(kCapture)]: false + }, + _started: true, + href: 'https://192.168.1.32:8006/api2/json/nodes/pve1/qemu/109/status/reboot', + req: ClientRequest { + _events: [Object: null prototype], + _eventsCount: 5, + _maxListeners: undefined, + outputData: [], + outputSize: 0, + writable: true, + _last: true, + chunkedEncoding: false, + shouldKeepAlive: false, + _defaultKeepAlive: true, + useChunkedEncodingByDefault: false, + sendDate: false, + _removedConnection: false, + _removedContLen: false, + _removedTE: false, + _contentLength: 0, + _hasBody: true, + _trailer: '', + finished: true, + _headerSent: true, + socket: [TLSSocket], + connection: [TLSSocket], + _header: 'GET /api2/json/nodes/pve1/qemu/109/status/reboot HTTP/1.1\r\n' + + 'Authorization: ajones@pam!fixparsec=887ec723-b31a-43ca-be50-82ace6697536\r\n' + + 'host: 192.168.1.32:8006\r\n' + + 'Connection: close\r\n' + + '\r\n', + _keepAliveTimeout: 0, + _onPendingData: [Function: noopPendingOutput], + agent: [Agent], + socketPath: undefined, + method: 'GET', + insecureHTTPParser: undefined, + path: '/api2/json/nodes/pve1/qemu/109/status/reboot', + _ended: true, + res: [Circular], + aborted: false, + timeoutCb: null, + upgradeOrConnect: false, + parser: null, + maxHeadersCount: null, + reusedSocket: false, + host: '192.168.1.32', + protocol: 'https:', + [Symbol(kCapture)]: false, + [Symbol(kNeedDrain)]: false, + [Symbol(corked)]: 0, + [Symbol(kOutHeaders)]: [Object: null prototype] + }, + ntick: true, + response: [Circular], + originalHost: '192.168.1.32:8006', + originalHostHeaderName: 'host', + responseContent: [Circular], + _ended: true, + _callbackCalled: true, + [Symbol(kCapture)]: false + }, + toJSON: [Function: responseToJSON], + caseless: Caseless { + dict: { + 'cache-control': 'max-age=0', + connection: 'close', + date: 'Tue, 25 Jul 2023 01:12:51 GMT', + pragma: 'no-cache', + server: 'pve-api-daemon/3.0', + expires: 'Tue, 25 Jul 2023 01:12:51 GMT' + } + }, + body: '', + [Symbol(kCapture)]: false +} +null diff --git a/index.js b/index.js index 329d7e5..77c45b3 100644 --- a/index.js +++ b/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 = {