Automic Workload Automation

 View Only
  • 1.  Getting agents' authentication_package via REST API

    Posted May 13, 2025 03:04 PM
    I am writing a program using the 24.3 Automic REST API that needs to get a list of all agents in the system from client 0 (I have that working), and then for each agent, it needs to get the list of authorizations for each client in the system (read, write, execute). I've not been able to find the correct url for that. I've tried the following:

    /ae/api/v1/0/system/agents/authentication_package

    Which returns:

    Authorizations for client 0: {
    "data": null
    }

    I also tried specifying a client (/ae/api/v1/1042/system/agents/authentication_package) and got:

    Authorizations for client 1042: {
    "data": null
    }

    I've also tried:
    /ae/api/v1/0/system/agents/{agentName}/authentication_package and
    /ae/api/v1/1042/system/agents/authentication_package

    With the same results.

    Any suggestions from anyone would be greatly appreciated.

    Steve


  • 2.  RE: Getting agents' authentication_package via REST API

    Broadcom Employee
    Posted May 14, 2025 04:51 AM

    Hi Steven,

    try the GET method of the /objects endpoint. For example:

    http://<hostname>:<port>/ae/api/v1/0000/objects/<agent name>

    The result also contains the defined authorizations:
    "agent_authorizations": [
                    {
                        "client": 0,
                        "read": 1,
                        "write": 1,
                        "execute": 1
                    },
                    {
                        "client": 100,
                        "read": 1,
                        "write": 1,
                        "execute": 1
                    }
                ]
            }
     
    Regards, Markus



  • 3.  RE: Getting agents' authentication_package via REST API

    Posted 27 days ago

    just to add to the solution by Markus, in case you were wondering: what you tried to download was the authentication package that is needed to connect to the automation engine if local_remote is activated in UC_AS_SETTINGS and will return 0 if not activated, not the client authorizations. 

    Kind regards
    Marike