cinderclient/v1/volume_snapshots.py
def create(self, volume_id, force=False,
               display_name=None, display_description=None):

        """
        Create a snapshot of the given volume.

        :param volume_id: The ID of the volume to snapshot.
        :param force: If force is True, create a snapshot even if the volume is
        attached to an instance. Default is False.
        :param display_name: Name of the snapshot
        :param display_description: Description of the snapshot
        :rtype: :class:`Snapshot`
        """
        body = {'snapshot': {'volume_id': volume_id,
                             'force': force,
                             'display_name': display_name,
                             'display_description': display_description}}
        return self._create('/snapshots', body, 'snapshot')

        Create a snapshot of the given volume.

        :param volume_id: The ID of the volume to snapshot.
        :param force: If force is True, create a snapshot even if the volume is
        attached to an instance. Default is False.
        :param display_name: Name of the snapshot
        :param display_description: Description of the snapshot
        :rtype: :class:`Snapshot`
        
Create a snapshot of the given volume.
Create a snapshot of the given volume .
def create(self, volume_id, force=False,
               display_name=None, display_description=None):
        body = {'snapshot': {'volume_id': volume_id,
                             'force': force,
                             'display_name': display_name,
                             'display_description': display_description}}
        return self._create('/snapshots', body, 'snapshot')
def create ( self , volume_id , force = False , display_name = None , display_description = None ) : body = { 'snapshot' : { 'volume_id' : volume_id , 'force' : force , 'display_name' : display_name , 'display_description' : display_description } } return self . _create ( '/snapshots' , body , 'snapshot' )
Create a snapshot of the given volume.
Create a snapshot of the given volume .
"""
        Create a snapshot of the given volume.

        :param volume_id: The ID of the volume to snapshot.
        :param force: If force is True, create a snapshot even if the volume is
        attached to an instance. Default is False.
        :param display_name: Name of the snapshot
        :param display_description: Description of the snapshot
        :rtype: :class:`Snapshot`
        """
None
:class:`Snapshot`
self
volume_id
The ID of the volume to snapshot.
The ID of the volume to snapshot .
force
If force is True, create a snapshot even if the volume is
attached to an instance. Default is False.
If force is True create a snapshot even if the volume is attached to an instance . Default is False .
display_name
Name of the snapshot
Name of the snapshot
display_description
Description of the snapshot
Description of the snapshot