

def ex_add_storage_to_node(self, node, amount, speed='STANDARD', scsi_id=None):
    '\n        Add storage to the node\n\n        :param  node: The server to add storage to\n        :type   node: :class:`Node`\n\n        :param  amount: The amount of storage to add, in GB\n        :type   amount: ``int``\n\n        :param  speed: The disk speed type\n        :type   speed: ``str``\n\n        :param  scsi_id: The target SCSI ID (optional)\n        :type   scsi_id: ``int``\n\n        :rtype: ``bool``\n        '
    update_node = ET.Element('addDisk', {
        'xmlns': TYPES_URN,
    })
    update_node.set('id', node.id)
    ET.SubElement(update_node, 'sizeGb').text = str(amount)
    ET.SubElement(update_node, 'speed').text = speed.upper()
    if (scsi_id is not None):
        ET.SubElement(scsi_id, 'scsiId').text = str(scsi_id)
    result = self.connection.request_with_orgId_api_2('server/addDisk', method='POST', data=ET.tostring(update_node)).object
    response_code = findtext(result, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_add_storage_to_node/VarMisuse@100/304 `update_node`->`scsi_id`