Autenticación con certificado de prueba de CyberArk AAM
Una API REST es una API que cumple con los principios de diseño del estilo arquitectónico REST, o Representational State Transfer. Por ello, las API REST a veces se denominan API RESTful.
Una forma cómoda de probar la API Rest de CyberArk para AAM (Application Access Manager) es desde Windows Powershell o Powershell ISE.
#Change location into your personal certificate store.
Set-Location "Cert:\CurrentUser\My\"
#Store the certificate with the thumbprint <your certificate thumbprint> in a variable ($Cert).
$Cert = Get-ChildItem | Where-Object {$_.Thumbprint -eq "<your thumbprint>"}
#Then the Invoke-RestMethod -Method Get...
Invoke-RestMethod -Method Get -Uri "<your Cyberark PasswordVault>AIMWebService/api/Accounts" -Certificate $cert -Body @{AppID = "<Your APP ID>"; Safe = "<Your Safe>"; Object = "<Object name>"}Última actualización
¿Te fue útil?