Skip to content
SapientGuardian.MarathonClient is a .NET client library for Marathon, a container orchestration platform for Mesos and DC/OS.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/SapientGuardian.MarathonClient
test/SapientGuardian.MarathonClient.Tests
.gitattributes
.gitignore
LICENSE
README.md
SapientGuardian.MarathonClient.sln
appveyor.yml

README.md

#SapientGuardian.MarathonClient

Build status
NuGet Package

Description

SapientGuardian.MarathonClient is a client library for Marathon, a container orchestration platform for Mesos and DC/OS.
The API coverage is extremely minimal at this time, exposing only the functionality I need in my other projects, but you may find it useful too.

How to use it

Call the static SapientGuardian.MarathonClient.ClientFactory.V2Client method with the URL of your V2 Marathon API (e.g. http://marathon.mycluster.local/v2/), and optionally provide an authorization token.

    var myClient = SapientGuardian.MarathonClient.ClientFactory.V2Client("http://marathon.mycluster.local/v2/");
    var awesomeApp = await myClient.Apps.get("/myApps/awesomeApp");
    awesomeApp.instances++;
    await myClient.Apps.Update(awesomeApp);    
You can’t perform that action at this time.