How do I delete or cancel log retrieval jobs?

Method: DELETE

You can delete or cancel a log retrieval job based on host ID or on process group. You must provide either a host ID or a process group ID, and the job ID of the log retrieval job for which you want to delete or cancel.

DELETE log retrieval job

A call to the entity/infrastructure/hosts/<hostId>/logs/jobs/<jobId> endpoint deletes or cancels log retrieval job for the given host.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<hostId>/logs/jobs/<jobId>
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/hosts/<hostId>/logs/jobs/<jobId>

A call to the entity/infrastructure/hosts/<pgId>/logs/jobs/<jobId> endpoint deletes or cancels log retrieval job for the given process group.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/hosts/<pgId>/logs/jobs/<jobId>
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/hosts/<pgId>/logs/jobs/<jobId>

Once you execute the call, the following status codes indicate the success or failure of the call:

  • 202 - OK

    • Successful execution of the call
  • 400 - Bad Request

  • 404 - Not Found

    • Job not found