mixcoatl/infrastructure/server.py
def pause(self, reason=None):
        """Pause the server instance with reason :attr:`reason`

        :param reason: The reason for pausing the server
        :type reason: str.
        :returns: Job -- Result of API call
        """
        p = '%s/%s' % (self.PATH, str(self.server_id))
        payload = {'pause': [{}]}

        if reason is not None:
            payload['pause'][0].update({'reason': reason})

        return self.put(p, data=json.dumps(payload))
Pause the server instance with reason :attr:`reason`

        :param reason: The reason for pausing the server
        :type reason: str.
        :returns: Job -- Result of API call
        
Pause the server instance with reason :attr:`reason`
Pause the server instance with reason : attr : ` reason `
def pause(self, reason=None):
        p = '%s/%s' % (self.PATH, str(self.server_id))
        payload = {'pause': [{}]}
        if reason is not None:
            payload['pause'][0].update({'reason': reason})
        return self.put(p, data=json.dumps(payload))
def pause ( self , reason = None ) : p = '%s/%s' % ( self . PATH , str ( self . server_id ) ) payload = { 'pause' : [ { } ] } if reason is not None : payload [ 'pause' ] [ 0 ] . update ( { 'reason' : reason } ) return self . put ( p , data = json . dumps ( payload ) )
Pause the server instance with reason :attr:`reason`
Pause the server instance with reason : attr : ` reason `
"""Pause the server instance with reason :attr:`reason`

        :param reason: The reason for pausing the server
        :type reason: str.
        :returns: Job -- Result of API call
        """
- Result of API call
- Result of API call
self
reason
The reason for pausing the server
The reason for pausing the server