code: def from_name(cls, name):
          
          snps = cls.list({'name': name})
          if len(snps) == 1:
              return snps[0]['id']
          elif not snps:
              return
  
          raise DuplicateResults('snapshot profile name %s is ambiguous.' % name)
docs: Retrieve a snapshot profile accsociated to a name.