Adding a dynamic baseline to server automation plan

Hello,

I needed to find out if adding a baseline using the API to a server automation plan’s XML is possible.

For example - I have an server automation xml with the following steps:

Step 101: Baseline patching
Step 102: Power OFF VM
Step 103: VM Resizing
Step 104: Power ON VM

In step 101, we use different monthly baselines from the baseline tab. Here, I wanted to add this monthly baseline using the IEM CLI and PowerShell, but the problem is that the xml format obtained by exporting the baseline is different from the format to be used in the server automation plan xml.

Baseline format after export:

<BES>
<Baseline>
<Title></Title>
...
<BaselineComponentCollection>
<BaselineComponentGroup>
...
</BaselineComponentGroup>
</Baseline>
</BES>

Server automation plan after initiating the action, stopping it and then exporting it -

<plan>
<plan-steps>
<step id = 101>
<baseline name = '...' site-url='...' fixlet-id='...' modification-time='...'>
<relevance>
<baseline-content>
...
</baseline-content>
</baseline>
<targets>
...
<targets>
<step id = 102>
...
</step>
<step id = 103>
...
</step>
<step id = 104>
...
</step>
</plan-steps>
...
</plan>

So basically the question is, if it is possible to include the baseline (which changes every month) in step 101, by using the API to import the baseline in a format suitable for the server automation plan to accept.

Any update on the above query please ?