Keep-Alive REST API
Endpoint: /keep-alive
NOTE: Available as of EFT 8.1.0
Extends current session.
-
HEAD
Method & URL
HEAD https://[server URL]:[port]/admin/v2/keep-alive
HEAD Body Sample
Copy
##Get Server keep alive
HEAD https://{{host}}/admin/v2/keep-alive HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
###
HEAD Response Body Sample
Copy
HTTP/1.1 200 OK Date: Mon, 21 Feb 2022 22:17:46 GMT Content-Length: 0
Cache-Control: no-cache, no-store, must-revalidate Expires: -1
X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval'
data:; Referrer-Policy: no-referrer
HEAD PowerShell Sample
Copy
# keep-alive
Write-Output "Keep Alive"
Write-Output "----"
$keepAlive = Invoke-RestMethod -Uri "$baseURL/v2/keep-alive"
-Method 'HEAD' -Headers $authHeader