Is it possible to copy objects from one AWX environment to another AWX environment using rest api

I tired and encountered problems as there are many objects linked to schedule and similar objects have to be available in the destination environment.

Any suggestion on this please?

Regards,
Kannan Somaiah

We are using AWX 9.3 version

Hello Kannan,

Have you tried looking at AWX Kit?
it has an import/export option [1] which talks to the rest API to extract/send information like you mention.
However, it looks like it was initially released with AWX version 13 so I’m not sure if it will work or not with an older 9.3 version of AWX.

Another option would be to define your objects “as code” and use the awx.awx collection [2] to push the objects to different AWX instances.
The awx.awx collection has import/export modules as well but they are using awxkit libraries under the covers.

Since your version is so old, you could also potentially try the old tower-cli [3] which has a send/receive function.
That library has been deprecated for a while so you will unlikely see any support around that if it fails.

Let us know what, if anything works for you.

-John

[1] https://docs.ansible.com/ansible-tower/latest/html/towercli/examples.html#import-export
[2] https://galaxy.ansible.com/awx/awx
[3] https://pypi.org/project/ansible-tower-cli/

Thanks, we will check your suggestions and see