huskar_api/api/service_link.py
def delete(self, application_name, cluster_name):
        """Unlinks a cluster from certain physical cluster.

        The ``write`` authority is required. See :ref:`application_auth` also.

        :param application_name: The name of application.
        :param cluster_name: The name of cluster.
        :form link: Optional. If you pass this, the cluster will be unlinked
                    if and only if the current target physical cluster is the
                    same as the value of this.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: The request is successful.
        """
        check_application_auth(application_name, Authority.WRITE)
        check_cluster_name(cluster_name, application_name)
        now_link = ServiceLink.get_link(application_name, cluster_name)
        with audit_log(audit_log.types.DELETE_CLUSTER_LINK,
                       application_name=application_name,
                       cluster_name=cluster_name,
                       physical_name=now_link):
            ServiceLink.delete_link(application_name, cluster_name)
        return api_response()
Unlinks a cluster from certain physical cluster.

        The ``write`` authority is required. See :ref:`application_auth` also.

        :param application_name: The name of application.
        :param cluster_name: The name of cluster.
        :form link: Optional. If you pass this, the cluster will be unlinked
                    if and only if the current target physical cluster is the
                    same as the value of this.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: The request is successful.
        
Unlinks a cluster from certain physical cluster.
The ``write`` authority is required.
Unlinks a cluster from certain physical cluster . The ` ` write ` ` authority is required .
def delete(self, application_name, cluster_name):
        check_application_auth(application_name, Authority.WRITE)
        check_cluster_name(cluster_name, application_name)
        now_link = ServiceLink.get_link(application_name, cluster_name)
        with audit_log(audit_log.types.DELETE_CLUSTER_LINK,
                       application_name=application_name,
                       cluster_name=cluster_name,
                       physical_name=now_link):
            ServiceLink.delete_link(application_name, cluster_name)
        return api_response()
def delete ( self , application_name , cluster_name ) : check_application_auth ( application_name , Authority . WRITE ) check_cluster_name ( cluster_name , application_name ) now_link = ServiceLink . get_link ( application_name , cluster_name ) with audit_log ( audit_log . types . DELETE_CLUSTER_LINK , application_name = application_name , cluster_name = cluster_name , physical_name = now_link ) : ServiceLink . delete_link ( application_name , cluster_name ) return api_response ( )
Unlinks a cluster from certain physical cluster.
Unlinks a cluster from certain physical cluster .
"""Unlinks a cluster from certain physical cluster.

        The ``write`` authority is required. See :ref:`application_auth` also.

        :param application_name: The name of application.
        :param cluster_name: The name of cluster.
        :form link: Optional. If you pass this, the cluster will be unlinked
                    if and only if the current target physical cluster is the
                    same as the value of this.
        :<header Authorization: Huskar Token (See :ref:`token`)
        :status 200: The request is successful.
        """
self
application_name
The name of application.
The name of application .
cluster_name
The name of cluster.
The name of cluster .
form
Optional. If you pass this, the cluster will be unlinked
if and only if the current target physical cluster is the
same as the value of this.
Optional . If you pass this the cluster will be unlinked if and only if the current target physical cluster is the same as the value of this .
<header
Huskar Token (See :ref:`token`)
Huskar Token ( See : ref : ` token ` )
status
The request is successful.
The request is successful .