::
        
            POST /:login/machines/:id/snapshots
        
        :param name: identifier for snapshot
        :type name: :py:class:`basestring`
        
        :rtype: :py:class:`smartdc.machine.Snapshot`
        
        Create a snapshot for this machine's current state with the given 
        `name`.

def create_snapshot(self, name):
        """
        ::
        
            POST /:login/machines/:id/snapshots
        
        :param name: identifier for snapshot
        :type name: :py:class:`basestring`
        
        :rtype: :py:class:`smartdc.machine.Snapshot`
        
        Create a snapshot for this machine's current state with the given 
        `name`.
        """
        params = {'name': name}
        j, _ = self.datacenter.request('POST', self.path + '/snapshots', 
            data=params)
        return Snapshot(machine=self, data=j, name=name)