Log Collection Jobs
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
You can use the Cloud Manager API to download Cloud Manager deployment logs. Once a log collection request has been made, Cloud Manager downloads the logs in a background job. Use the following endpoints to create, modify, and retrieve Cloud Manager log collection jobs.
To use the Log Collection resources, you must be a Cloud Manager user with
the Global Monitoring Admin
project role.
Note
Groups and projects are synonymous terms. Your {PROJECT-ID}
is the
same as your project id. For existing groups, your group/project id
remains the same. This page uses the more familiar term group when
referring to descriptions. The endpoint remains as stated in the
document.
Base URL: https://cloud.mongodb.com/api/public/v1.0
Endpoints
The following lists the endpoints available for the log collection jobs resource.
Method | Endpoint | Description |
---|---|---|
| Retrieves all available log collection jobs in the specified project. | |
| Retrieves a single log collection job as specified by the
| |
| Downloads the logs from a single log collection job. | |
| Create a new log collection job for a given resource. | |
| Extend the expiry date of a specified log collection job. | |
| Retry a failed log collection job. | |
| Delete a specified log collection job. |