Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Automation Status

Overview

The Public API provides the automationStatus endpoint to let you see whether each MongoDB process is up-to-date with the current automation configuration. The endpoint returns the goalVersion field to report the current version of the automation configuration and the lastGoalVersionAchieved fields to report the versions of the configuration running on each server.

Operation

  • GET /api/public/v1.0/groups/GROUP-ID/automationStatus

    Retrieve the status of each MongoDB process in the deployment.

Sample Entity

"goalVersion": 29,
"processes": [
    {
        "hostname": "AGENT_HOST_0",
        "name": "BLUE_0",
        "lastGoalVersionAchieved": 28,
        "plan": ["Download", "Start", "WaitRsInit"]
    },
    {
        "hostname": "AGENT_HOST_1",
        "name": "BLUE_1",
        "lastGoalVersionAchieved": 29,
        "plan": []
    }
]

Entity Fields

Name Type Description
goalVersion integer The version of the most recently submitted automation configuration. If there is a conflict in submissions of automation configurations, this field lists the winning configuration.
processes array The group’s deployed MongoDB instances.
- hostname string The fully qualified domain name (retrieved by issuing hostname -f) of the server on which the MongoDB process and Automation Agent are hosted.
- name string The process name as specified in the automation configuration.
- lastGoalVersionAchieved integer The last version of the automation configuration with which this process had deployed as configured. If the lastGoalVersionAchieved number is not equal to the goalVersion number, the process has not yet deployed according to the current configuration.
- plan array Describes how a process that is not yet up-to-date with the configuration will achieve the goal state.

Example

Retrieve status:

curl -u "username:apiKey" --digest -i "https://mms.mongodb.com/api/public/v1.0/groups/533c5895b91030606f21033a/automationStatus"

Response:

{
  "processes": [
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_0_0",
      "hostname": "testDeploy-0"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_0_1",
      "hostname": "testDeploy-1"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_0_2",
      "hostname": "testDeploy-2"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_1_3",
      "hostname": "testDeploy-3"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_1_4",
      "hostname": "testDeploy-4"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_myShard_1_5",
      "hostname": "testDeploy-5"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_config_6",
      "hostname": "testDeploy-6"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_config_7",
      "hostname": "testDeploy-7"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_config_8",
      "hostname": "testDeploy-8"
    },
    {
      "plan": [],
      "lastGoalVersionAchieved": 2,
      "name": "shardedCluster_mongos_9",
      "hostname": "testDeploy-9"
    }
  ],
  "goalVersion": 2
}