def _CreatePersistentBootDisk(self, disk_name, image):
    if self.GetDisk(disk_name):
      logging.error('Disk %s already exists', disk_name)
      return False

    logging.info('Create persistent disk %s', disk_name)
    params = {
        'kind': 'compute#disk',
        'sizeGb': '%d' % self.PERSISTENT_DISK_SIZE_GB,
        'name': disk_name,
    }
    source_image = self.ResourceUrlFromPath(image) if image else None
    operation = self.GetApi().disks().insert(
        project=self._project, zone=self._zone,
        body=params, sourceImage=source_image).execute()
    return self._ParseOperation(
        operation, 'Persistent disk creation %s' % disk_name)
Return zone ID based on a zone.
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/hadoop/gce_api.py/GceApi._CreatePersistentBootDisk--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/dns.py/DNSManager._get_zone_id_from_name