Combreal

FWAPI_getNewClientsConflicts.ps1

Apr 14th, 2021
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $URL = "https://qlf-filewave.domain.fr/api/clients/new_devices"
  2. $base64AuthInfo = "ooehfohhfoqhefohodqzdqzdqzdqehfoef="
  3. Invoke-RestMethod -Uri $URL -Headers @{ 'Authorization' = "Bearer $base64AuthInfo" } -OutFile "new_devices.json"
  4. $req = gc .\new_devices.json | ConvertFrom-Json
  5. $req | where-object status -eq "Conflicting with existing client" | Select-Object name, status
Add Comment
Please, Sign In to add comment