I have been tasked with writing an application that un-deploys xCP applications automatically (or some what automatically) since the manual method is such a pain. It was smooth sailing until it came time to execute the many APITester commands. When running these commands in dqman and DA (7.2) DQL Editor, there are no problems. However when running them programmatically using apiExec() and apiGet() respectively, the following error is given:
[DFC_DMCL_UNSUPPORTED_ON_API_SESSION] The requested operation is not supported on the API session.
Is there a different method other than apiExec() and apiGet() since they have been deprecated? Or is there another way around this error?
Note: commands being run include:
- destroy,c,<r_object_id>
- query,c,drop type dmc_mq_<namespace>_<application_name>