- API >
- Public API Tutorials >
- Upload the Latest Version Manifest to Ops Manager with the API
Upload the Latest Version Manifest to Ops Manager with the API¶
For Ops Manager deployments with limited internet access, the version manifest that Ops Manager uses might not match the latest version manifest that MongoDB provides.
You can download the latest version manifest from MongoDB, then upload it to Ops Manager with the API.
Variables for API Resources to Update the Version Manifest¶
The API resources use one or more of these variables. Replace these variables with your desired values before calling these API resources.
Name | Type | Description |
---|---|---|
{PUBLIC-KEY} |
string | Public API key for your API credentials. |
{PRIVATE-KEY} |
string | Private API Key for your API credentials. |
<OpsManagerHost>:<Port> |
string | URL of your Ops Manager instance. |
{OPS-MANAGER-VERSION} |
string | Major and minor version of your Ops Manager instance. Example
|
Prerequisite¶
Your API key must have the Global Automation Admin
or the
Global Owner
role.
Procedure¶
To update your Ops Manager version to use the latest version manifest:
Retrieve the current version manifest from MongoDB.¶
From a machine that can access the public internet, run the following command to retrieve the latest version manifest for your Ops Manager version from MongoDB:
Tip
Replace {OPS-MANAGER-VERSION}
with your Ops Manager major and minor
version.
Example
4.2
The JSON file you receive in response includes all data that your Ops Manager instance needs. This covers all versions and variants of MongoDB that your version of Ops Manager supports.
The parameters and values in this file – as well as how they are structured – can change without notice.
Transfer the version manifest JSON file to a host that can access your Ops Manager instance.¶
Upload the version manifest JSON file to your Ops Manager instance.¶
From a host that can access your Ops Manager instance, use the Update the Version Manifest endpoint to upload the latest version manifest to Ops Manager.
Run the following command, replacing the placeholders with the Variables for API Resources to Update the Version Manifest:
Confirm that Ops Manager uses the latest version manifest.¶
From a host that can access your Ops Manager instance, use the Retrieve the Ops Manager Version Manifest endpoint to confirm that Ops Manager uses the latest version manifest. You can call this endpoint without having an API key.
Run the following command, replacing the placeholders with the Variables for API Resources to Update the Version Manifest:
The response should match the version manifest you downloaded from MongoDB and uploaded to your Ops Manager instance.