Delete test.ps1

removed old test file
This commit is contained in:
2025-02-17 14:31:47 -05:00
parent a7642eee67
commit 31638c5f48
-22
View File
@@ -1,22 +0,0 @@
$Body = @{
'client_id' = 'zerto-client'
'username' = 'admin'
'password' = 'Zertodata987!'
'grant_type' = 'password'
}
$Params = @{
'Uri' = 'https://192.168.50.60/auth/realms/zerto/protocol/openid-connect/token'
'Method' = 'Post'
'Body' = $Body
'ContentType' = 'application/x-www-form-urlencoded'
}
$Result = Invoke-RestMethod @Params -SkipCertificateCheck
Write-Host $Result
$ExpiresIn = $Result.expires_in
$ExpiresAt = (Get-Date).AddSeconds($ExpiresIn)
Write-Host $ExpiresAt
Write-Host $Result