Hi Team,
I have been trying to setup Rest API access to retrieve password for specific set of user , by giving Rest api user as Password User rights.
I had assigned few resources to this user and then tried mutiple script. In python, Powershell and Curl it does not work
Curl : It gives following error . While Adding API user i have mentioned host name (FQDN and only host name) of System from which i am querying the server.
curl -k -H "AUTHTOKEN:<<token>>" https://<Hostname>:<Port>/restapi/json/v1/resources
The Powers hell Script gives following error:
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$url = "https://<Hostname>:<Port>/restapi/json/v1/resources?AUTHTOKEN=<Token>"
$response = Invoke-webRequest -Method Get -Uri $url
$reponse.Content