def _get_datacenter_id(datacenters, identity):
 for datacenter in datacenters['items']:
  if (identity in (datacenter['properties']['name'], datacenter['id'])):
   return datacenter['id']
 return None

def _get_datacenter_id ( datacenters , identity ) : for datacenter in datacenters [ 'items' ] : if ( identity in ( datacenter [ 'properties' ] [ 'name' ] , datacenter [ 'id' ] ) ) : return datacenter [ 'id' ] return None
fetch and return datacenter uuid by datacenter name if found .