Create a new marathon client instance to deals with the Marathon API.
| Parameters: |
|
|---|
List tasks of all running applications if appId is not provided. List running tasks for app appId if provided.
| Parameters: | appId (String) – The app you want to list the endpoints. |
|---|---|
| Returns: | Response from the Marathon API |
| Return type: | text/plain |
| Raise: | requests.exceptions.HTTPError |
Destroy app appId.
| Parameters: | appId (String) – The app you want to destroy. |
|---|---|
| Returns: | Response from the Marathon API |
| Return type: | application/json |
| Raise: | requests.exceptions.HTTPError |
List all running apps.
| Returns: | Response from the Marathon API |
|---|---|
| Return type: | application/json |
| Raise: | requests.exceptions.HTTPError |
List running tasks for app appId.
| Parameters: | appId (String) – The app you want to list the tasks. |
|---|---|
| Returns: | Response from the Marathon API |
| Return type: | application/json |
| Raise: | requests.exceptions.HTTPError |
Scale the number of app instances for app appId.
| Parameters: |
|
|---|---|
| Returns: | Response from the Marathon API |
| Return type: | application/json |
| Raise: | requests.exceptions.HTTPError |
List all running apps, filtered by appId and command.
| Parameters: |
|
|---|---|
| Returns: | Response from the Marathon API |
| Return type: | application/json |
| Raise: | requests.exceptions.HTTPError |