nomad/api/deployment.py
def fail_deployment(self, id):
        """ This endpoint is used to mark a deployment as failed. This should be done to force the scheduler to stop
            creating allocations as part of the deployment or to cause a rollback to a previous job version.

           https://www.nomadproject.io/docs/http/deployments.html

            arguments:
              - id
            returns: dict
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.URLNotFoundNomadException
        """
        fail_json = {"DeploymentID": id}
        return self.request("fail", id, json=fail_json, method="post").json()
def fail_deployment(self, id):
        fail_json = {"DeploymentID": id}
        return self.request("fail", id, json=fail_json, method="post").json()
def fail_deployment ( self , id ) : fail_json = { "DeploymentID" : id } return self . request ( "fail" , id , json = fail_json , method = "post" ) . json ( )
This endpoint is used to mark a deployment as failed. This should be done to force the scheduler to stop
            creating allocations as part of the deployment or to cause a rollback to a previous job version.

           https://www.nomadproject.io/docs/http/deployments.html

            arguments:
              - id
            returns: dict
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.URLNotFoundNomadException
This endpoint is used to mark a deployment as failed . This should be done to force the scheduler to stop creating allocations as part of the deployment or to cause a rollback to a previous job version .