GET /mltk/container_data

GET /mltk/container_data

Returns the per-deployment state from `dsdl_container.conf` enriched with a live health probe.

Description. Returns the per-deployment state from dsdl_container.conf enriched with a live health probe. The handler probes each stanza's api_url (HTTP GET, 5-second timeout, expects JSON banner "app": "Splunk App for Data Science and Deep Learning"). Transitions to "Active" are persisted back to the conf.

Response (200).

{
  "status":  "success",
  "message": "Fetched the container successfully",
  "config": {
    "my_model": {
      "mode":             "DEV",
      "cluster":          "docker",
      "id":               "container_abc123",
      "api_url":          "http://localhost:5000",
      "api_url_external": "http://docker.example.com:5000",
      "jupyter_url":      "http://localhost:8888",
      "tensorboard_url":  "http://localhost:6006",
      "mlflow_url":       "http://localhost:5000",
      "spark_url":        "http://localhost:7077",
      "status":           "Active",
      "min_cpu":          "250m",
      "max_cpu":          "1000m",
      "min_memory":       "512Mi",
      "max_memory":       "2Gi",
      "min_replicas":     "1",
      "max_replicas":     "3",
      "cpu_threshold_percent": "80",
      "hpa_enabled":      "0"
    }
  }
}

Example.

curl -sk -u "$SPLUNK_USER:$SPLUNK_PASSWORD" 
  "$SPLUNK_HOST/servicesNS/-/Splunk_ML_Toolkit/mltk/container_data?output_mode=json"

Press Cmd/Ctrl+K to focus search. Esc to close.

Type to search the portal.