Require default values for re-sizing parameters to pass in template XML

Hello!

We are POST-ing a specific server automation template using the REST API to BigFix by passing values to different parameters in the XML.

Here, we are using the VMware Modify Virtual Machine fixlet. So we pass different values to the parameters such as -

<parameter name="Host"><![CDATA[abc.def.ghi.jkl]]></parameter>
<parameter name="VMName"><![CDATA[abc.def.ghi.jkl]]></parameter>
<parameter name="VMUUID"><![CDATA[33333ebff-3cc7-06fb-9cb1-d33333cae]]></parameter>
<parameter name="DiskName"><![CDATA[Hard disk 1]]></parameter>
<parameter name="DiskSize"><![CDATA[61440]]></parameter>
<parameter name="MemorySize"><![CDATA[8192]]></parameter>
<parameter name="CPU"><![CDATA[2]]></parameter>

In the fields of disk name, disk size, we pass values which change constantly.

But our problem is that we do not require the DISKNAME & DISKSIZE fields to be affected.

So is there any default/dummy value which can be passed to these tags, so as to not change the disk name / disk size?

In the XML documentation, there are a few comments:

//action parameter query “DiskName” with description “Enter the name of the disk. For example: Hard disk 1” With default “disk name”

//action parameter query “DiskSize” with description “Enter the size of the disk (KB):” With default “disk size”

This points to there being a default value?

Any & all help is appreciated.

Thanks,
Vishrut Mittal

//action parameter query “DiskName” with description “Enter the name of the disk. For example: Hard disk 1” With default “disk name"

This statement just demonstrates the usage of ‘action parameter query’. The “default value” is pre-filled in the prompt that is presented to the console operator, it does not imply that the parameter itself has a default. The operator needs to supply something.

1 Like

Yes, I understand the tag cannot be left empty and something must be passed. But is there no value which could be passed to the XML, which would automatically point to the default value?

Any thoughts folks?

The question is - If there could be a pre-defined value which could be passed all the time for all templates, that would be great.