Test af certifikatgodkendelse til CyberArk AAM
Et REST API er et API, der følger designprincipperne for den arkitektoniske stil REST, eller Representational State Transfer. REST API'er kaldes derfor sommetider RESTful API'er.
En praktisk måde at teste CyberArks REST API til AAM (Application Access Manager) på er fra Windows PowerShell eller 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>"}Sidst opdateret
Var dette nyttigt?