How do you determine the Proxy Agent ID in a PAM's API
search cancel

How do you determine the Proxy Agent ID in a PAM's API

book

Article ID: 240779

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM)

Issue/Introduction

How do you determine the Proxy Agent ID in a PAM's API, so you can create a PAM Windows Proxy Application with it?

Environment

Release : 3.4.x, 4.0.x

Component : PRIVILEGED ACCESS MANAGER

Resolution

To get the ProxyID or AgentId for the Proxy Agent, unfortunately there is no option to just get that ID, so you have to have a Windows Proxy Application, with that Proxy selected.

Then run the following API:

GET   /api.php/v1/devices.json/{id}/targetApplications

and in the "fields" section, also put and "*" and you will get the following parameters:

 "attributes": {
      "ldapConnectTimeout": "3000",
      "agentId": "5001",
      "adSite": "",
      "accountType": "local",
      "useDNS": "noDNS",
      "replicationTime": "",
      "accountFilter": "",
      "ldapReadTimeout": "3000",
      "discoverTasks": "f",
      "domainName": "",
      "extensionType": "windows",
      "specifiedServersList": "",
      "dnsServer": "",
      "discoverServices": "f"
    },

which than you know your AgentID to create in the future.