mixcoatl/infrastructure/volume.py
def attach_volume(cls, volume_id, server_id, device_id=None, callback=None, endpoint=None):
        """Attach a volume to a server

            .. note::

                Attaching a volume is an asynchronous task.

        :param volume_id: The volume id to work with
        :type volume_id: int.
        :param server_id: The server to attach the volume
        :type server_id: int.
        :param device_id: Optional device id to assign the volume on the system
        :type device_id: str.
        :param callback: Optional callback to call with the results
        :type callback: func.
        :param endpoint: The DCM endpoint
        :type endpoint: Endpoint
        :returns: :class:`Job`
        :raises: :class:`VolumeException`
        """
        v = Volume(volume_id, endpoint=endpoint)
        v.request_details = 'basic'
        v.attach(server_id, device_id, callback)
Attach a volume to a server

            .. note::

                Attaching a volume is an asynchronous task.

        :param volume_id: The volume id to work with
        :type volume_id: int.
        :param server_id: The server to attach the volume
        :type server_id: int.
        :param device_id: Optional device id to assign the volume on the system
        :type device_id: str.
        :param callback: Optional callback to call with the results
        :type callback: func.
        :param endpoint: The DCM endpoint
        :type endpoint: Endpoint
        :returns: :class:`Job`
        :raises: :class:`VolumeException`
        
Attach a volume to a server
note:.

Attaching a volume is an asynchronous task.
Attach a volume to a server note : . Attaching a volume is an asynchronous task .
def attach_volume(cls, volume_id, server_id, device_id=None, callback=None, endpoint=None):
        v = Volume(volume_id, endpoint=endpoint)
        v.request_details = 'basic'
        v.attach(server_id, device_id, callback)
def attach_volume ( cls , volume_id , server_id , device_id = None , callback = None , endpoint = None ) : v = Volume ( volume_id , endpoint = endpoint ) v . request_details = 'basic' v . attach ( server_id , device_id , callback )
Attach a volume to a server
.. note::
Attach a volume to a server .. note ::
"""Attach a volume to a server

            .. note::

                Attaching a volume is an asynchronous task.

        :param volume_id: The volume id to work with
        :type volume_id: int.
        :param server_id: The server to attach the volume
        :type server_id: int.
        :param device_id: Optional device id to assign the volume on the system
        :type device_id: str.
        :param callback: Optional callback to call with the results
        :type callback: func.
        :param endpoint: The DCM endpoint
        :type endpoint: Endpoint
        :returns: :class:`Job`
        :raises: :class:`VolumeException`
        """
None
None
cls
volume_id
The volume id to work with
The volume id to work with
server_id
The server to attach the volume
The server to attach the volume
device_id
Optional device id to assign the volume on the system
Optional device id to assign the volume on the system
callback
Optional callback to call with the results
Optional callback to call with the results
endpoint
The DCM endpoint
The DCM endpoint