[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesos-user
Subject:    Re: stop marathon tasks from rest api
From:       Stefano Bianchi <jazzista88 () gmail ! com>
Date:       2016-04-28 16:26:28
Message-ID: CANg9wmGFqgioptG1ptyX=6Adq8gLpVo8U3M6R4XJp5QxTNyQHA () mail ! gmail ! com
[Download RAW message or body]

Thank you chris i figured out.
Il 27/apr/2016 22:09, "Chris Baker" <chris@galacticfog.com> ha scritto:

> to destroy it
> DELETE /v2/apps/{appId}
>
> https://mesosphere.github.io/marathon/docs/rest-api.html#delete-v2-apps-appid
>
> to scale it to zero ("stop" it)
> PUT {"instances": 0} /v2/apps/{appId}
> https://mesosphere.github.io/marathon/docs/rest-api.html#put-v2-apps-appid
>
>
>
> On Wed, Apr 27, 2016 at 3:49 PM Stefano Bianchi <jazzista88@gmail.com>
> wrote:
>
>> Hi guys
>> i'm currently unable to access to marathon UI, so i was wondering which
>> is the command to stop a marathon task from terminal?
>> thanks
>>
>

[Attachment #3 (text/html)]

<p dir="ltr">Thank you chris i figured out.</p>
<div class="gmail_quote">Il 27/apr/2016 22:09, &quot;Chris Baker&quot; &lt;<a \
href="mailto:chris@galacticfog.com">chris@galacticfog.com</a>&gt; ha scritto:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">to destroy \
it<div>DELETE /v2/apps/{appId}</div><div><a \
href="https://mesosphere.github.io/marathon/docs/rest-api.html#delete-v2-apps-appid" \
target="_blank">https://mesosphere.github.io/marathon/docs/rest-api.html#delete-v2-apps-appid</a></div><div><br></div><div>to \
scale it to zero (&quot;stop&quot; it)</div><div>PUT {&quot;instances&quot;: 0} \
/v2/apps/{appId}</div><div><a \
href="https://mesosphere.github.io/marathon/docs/rest-api.html#put-v2-apps-appid" \
target="_blank">https://mesosphere.github.io/marathon/docs/rest-api.html#put-v2-apps-appid</a></div><div><br><div><br></div></div></div><br><div \
class="gmail_quote"><div dir="ltr">On Wed, Apr 27, 2016 at 3:49 PM Stefano Bianchi \
&lt;<a href="mailto:jazzista88@gmail.com" \
target="_blank">jazzista88@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi guys<div>i&#39;m currently unable to access \
to marathon UI, so i was wondering which is the command to stop a marathon task from \
terminal?</div><div>thanks  </div></div> </blockquote></div>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic