There is an API Helper on the Create Virtual Drive Pop-Up where you can input desired VD configuration parameters and the "Generate XML API Request" button will provide you with the right API call (including VD size attribute). There is no way to auto-optimize the VD size via the XML API since it requires the size to be specified as part of the API call - this is the reason that the API helper was added to the GUI, and assuming you have the same drives and VD configuration across systems, this is something that can be re-used.
There is no trick to get the API to use the maximum shared size across all the specified drive for your RAID 5 config.
The size is a required field.
You would have to first query for the drives by classId
From the returned objects find the drives that are going to be part of the RAID 5 config and determine the maximum size that could be specified or if all the same size use the value in coercedSize attribute. Since the attribute is a text value with two letter size category (MB, GB, TB) you'll have to do some splitting and converting of the value.
Are you using the Python SDK or creating XML documents?
This script can be referred for configuring bare metal with vMedia policy.
Below are the global parameter which must be set before executing script according your requirement.
# Global Variables$ImageFileName = 'VMware-ESXi-6.7.0-9484548-Custom-Cis...
This script allows you to Create, Modify or Clear LDAP Group. You can use this feature for multiple IMC server or single IMC server. This sample script takes csv file as input for multiple IMC server LDAP group configuration. If you don't pass csv file ...
This script gives overall server status of IMC server.
The overall server status is calculated by IMC UI based on the IMC faults and their severity
Please provide me any comments, concerns or suggestions!
Cisco has released the 3.0(5) version of the Cisco UCS Manager VMware vSphere HTML client plugin. The UCS Manager vSphere HTML client plugin enables a virtualization administrator to view, manage, and monitor the Cisco UCS physical infrastructure. The pl...
Cisco UCS PowerTool Core suite is a set of PowerShell Core modules for Cisco UCS Manager, Cisco IMC and Cisco UCS Central, that helps in configuration and management of Cisco UCS domains and solutions.
Cisco UCS PowerTool Core modules are developed using...