code: func (api *API) ZoneIDByName(zoneName string) (string, error) {
  	res, err := api.ListZonesContext(context.TODO(), WithZoneFilter(zoneName))
  	if err != nil {
  		return "", errors.Wrap(err, "ListZonesContext command failed")
  	}
  
  	if len(res.Result) > 1 && api.OrganizationID == "" {
  		return "", errors.New("ambiguous zone name used without an account ID")
  	}
  
  	for _, zone := range res.Result {
  		if api.OrganizationID != "" {
  			if zone.Name == zoneName && api.OrganizationID == zone.Account.ID {
  				return zone.ID, nil
  			}
  		} else {
  			if zone.Name == zoneName {
  				return zone.ID, nil
  			}
  		}
  	}
  
  	return "", errors.New("Zone could not be found")
  }
docs: // ZoneIDByName retrieves a zone's ID from the name.