huskar_api/api/service_route.py
def put(self, application_name, cluster_name, destination):
        """Changes the outgoing route of specific cluster.

        :param application_name: The name of source application.
        :param cluster_name: The name of source cluster.
        :param destination: The name of destination application.
        :form intent: The intent of route. (``direct``)
        :form cluster_name: The name of destination cluster.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: Operation success.
        """
        # forbidden request when cluster_name in FORCE_ROUTING_CLUSTERS
        if cluster_name in settings.FORCE_ROUTING_CLUSTERS:
            abort(403, 'Can not modify {}\'s value'.format(cluster_name))
        self._check_auth(application_name, destination)
        check_cluster_name(cluster_name, application_name)
        self._put(application_name, cluster_name, destination)
        return api_response()
Changes the outgoing route of specific cluster.

        :param application_name: The name of source application.
        :param cluster_name: The name of source cluster.
        :param destination: The name of destination application.
        :form intent: The intent of route. (``direct``)
        :form cluster_name: The name of destination cluster.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: Operation success.
        
Changes the outgoing route of specific cluster.
Changes the outgoing route of specific cluster .
def put(self, application_name, cluster_name, destination):
        if cluster_name in settings.FORCE_ROUTING_CLUSTERS:
            abort(403, 'Can not modify {}\'s value'.format(cluster_name))
        self._check_auth(application_name, destination)
        check_cluster_name(cluster_name, application_name)
        self._put(application_name, cluster_name, destination)
        return api_response()
def put ( self , application_name , cluster_name , destination ) : if cluster_name in settings . FORCE_ROUTING_CLUSTERS : abort ( 403 , 'Can not modify {}\'s value' . format ( cluster_name ) ) self . _check_auth ( application_name , destination ) check_cluster_name ( cluster_name , application_name ) self . _put ( application_name , cluster_name , destination ) return api_response ( )
Changes the outgoing route of specific cluster.
Changes the outgoing route of specific cluster .
"""Changes the outgoing route of specific cluster.

        :param application_name: The name of source application.
        :param cluster_name: The name of source cluster.
        :param destination: The name of destination application.
        :form intent: The intent of route. (``direct``)
        :form cluster_name: The name of destination cluster.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: Operation success.
        """ # forbidden request when cluster_name in FORCE_ROUTING_CLUSTERS
self
application_name
The name of source application.
The name of source application .
cluster_name
The name of source cluster.
The name of source cluster .
destination
The name of destination application.
The name of destination application .
form
The intent of route.
The intent of route .
form
The name of destination cluster.
The name of destination cluster .
<header
Huskar Token (See :ref:`token`)
Huskar Token ( See : ref : ` token ` )
status
None