Moving RA agents within environments programmatically
search cancel

Moving RA agents within environments programmatically

book

Article ID: 234199

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

We need to migrate our retrieval agent that is assigned more than 300 times across multiple applications/environments/server Types to a new server.
I would like to do this programmatically through REST API but I didn't found any API that could help me in this task.
I've also tried to do this with 'Dynamic Agent Mapping' feature but it doesn't suit to my needs as it is mentioned 'This option to map an agent to several server types is not enabled.' in the documentation here:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/release-automation-nolio/6-6/installation/deploy-agents.html

Environment

Release : 6.6

Component : CA RELEASE AUTOMATION ADMINISTRATION

Resolution

The feature of assigning agent to an environment is not available in REST API, rather is available in SOAP API, refer the Technical document of SOAP API reference

To assign an agent to an environment programmatically via SOAP API use the available method mapInstanceToEnvironment, refer to KB How to assign agents to environment using command line or API? for more details

 

Additional Information

Attached is a python script shared by one of our customer to move agents within environment.

Disclaimer: The script shared is for reference and use of same levied on end user discretion. Broadcom doesn't hold any liability or obligation encountered due to usage of the shared script.

 

Attachments

move_agent_1644381030481.py get_app