code: def from_dc_code(cls, dc_code):
          
          result = cls.list()
          dc_codes = {}
          for dc in result:
              if dc.get('dc_code'):
                  dc_codes[dc['dc_code']] = dc['id']
  
          return dc_codes.get(dc_code)
docs: Retrieve the datacenter id associated to a dc_code