def _CreateApp(self):
    logging.info("Attempting to create App: %s" % self.name)
    body = self._BuildAppBody()
    headers = {'content-type': 'application/json'}
    output = requests.post(self.api_url, data=body, headers=headers)
    if output.status_code != requests.codes.CREATED:
      raise Exception("Unable to create App: %s" % output.text)
    logging.info("App %s created successfully." % self.name)
Creates Marathon's App (Docker instance).
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/mesos/mesos_docker_instance.py/MesosDockerInstance._CreateApp