• Home
  • Dynatrace API
  • Environment
  • ActiveGates
  • ActiveGates auto-update jobs
  • GET ActiveGates with auto-update jobs

ActiveGate API - GET ActiveGates with auto-update jobs

Lists all ActiveGates that have auto-update jobs. The list includes completed jobs (successful or failed) and jobs in progress.

You can narrow down the output by specifying filtering parameters in your request.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/activeGates/updateJobs
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/activeGates/updateJobs
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/activeGates/updateJobs

Authentication

To execute this request, you need an access token with activeGates.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
fromstring

The start of the requested timeframe for update jobs.

You can use one of the following formats:

  • Timestamp in UTC milliseconds.
  • Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional.
  • Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are:
    • m: minutes
    • h: hours
    • d: days
    • w: weeks
    • M: months
    • y: years

If not set, the relative timeframe of one day is used (now-1d).

Maximum timeframe is 31 days.

queryoptional
tostring

The end of the requested timeframe for update jobs.

You can use one of the following formats:

  • Timestamp in UTC milliseconds.
  • Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional.
  • Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are:
    • m: minutes
    • h: hours
    • d: days
    • w: weeks
    • M: months
    • y: years

If not set, the current timestamp is used.

queryoptional
startVersionCompareTypestring

Filters the resulting set of update jobs by the specified initial version.

Specify the comparison operator here.

The element can hold these values
  • EQUAL
  • GREATER
  • GREATER_EQUAL
  • LOWER
  • LOWER_EQUAL
queryoptional
startVersionstring

Filters the resulting set of update-jobs by the initial version (required format <major>.<minor>.<revision>).

queryoptional
updateTypestring

Filters the resulting set of update-jobs by the update type.

The element can hold these values
  • ACTIVE_GATE
  • REMOTE_PLUGIN_AGENT
  • SYNTHETIC
  • Z_REMOTE
queryoptional
targetVersionCompareTypestring

Filters the resulting set of update jobs by the specified target version.

Specify the comparison operator here.

The element can hold these values
  • EQUAL
  • GREATER
  • GREATER_EQUAL
  • LOWER
  • LOWER_EQUAL
queryoptional
targetVersionstring

Filters the resulting set of update-jobs by the target version (required format <major>.<minor>.<revision>).

queryoptional
lastUpdatesboolean

If true, filters the resulting set of update jobs to the most recent update of each type.

queryoptional

Response

Response codes

CodeTypeDescription
200UpdateJobsAll

Success

400ErrorEnvelope

Failed. The input is invalid.

Response body objects

The UpdateJobsAll object

A list of ActiveGates with update jobs.

ElementTypeDescription
allUpdateJobsUpdateJobList[]

A list of ActiveGates with update jobs.

The UpdateJobList object

A list of update jobs of the ActiveGate.

ElementTypeDescription
updateJobsUpdateJob[]

A list of update jobs of the ActiveGate.

agIdstring

The ID of the ActiveGate.

The UpdateJob object

Configuration of the ActiveGate update job.

ElementTypeDescription
cancelableboolean

The job can (true) or can't (false) be cancelled at the moment.

environmentsstring[]

A list of environments (specified by IDs) the ActiveGate can connect to.

jobStatestring

The status of the update job.

The element can hold these values
  • FAILED
  • IN_PROGRESS
  • PENDING
  • ROLLBACK
  • SCHEDULED
  • SKIPPED
  • SUCCEED
updateMethodstring

The method of updating the ActiveGate or its component.

The element can hold these values
  • AUTOMATIC
  • MANUAL_INSTALLATION
  • ON_DEMAND
updateTypestring

The component to be updated.

The element can hold these values
  • ACTIVE_GATE
  • REMOTE_PLUGIN_AGENT
  • SYNTHETIC
  • Z_REMOTE
agTypestring

The type of the ActiveGate.

The element can hold these values
  • CLUSTER
  • ENVIRONMENT
  • ENVIRONMENT_MULTI
startVersionstring

The initial version of the ActiveGate.

jobIdstring

The ID of the update job.

timestampinteger

The timestamp of the update job completion.

The null value means the job is still running.

durationinteger

The duration of the update, in milliseconds.

targetVersionstring

The target version of the update.

Specify the version in the <major>.<minor>.<revision>.<timestamp> format.

To update to the latest available version, use the latest value.

errorstring

The information about update error.

Response body JSON model

json
{ "allUpdateJobs": [ { "updateJobs": [ { "cancelable": false, "environments": [ "string" ], "jobState": "SUCCEED", "updateMethod": "AUTOMATIC", "updateType": "ACTIVE_GATE", "agType": "ENVIRONMENT", "startVersion": "1.185.0.20200201-120000", "jobId": "-3524498778810258605", "timestamp": 1582031917814, "duration": 3608000, "targetVersion": "1.190.0.20200301-130000", "error": "string" } ], "agId": "0x3efdd092" } ] }
Related topics
  • Dynatrace ActiveGate

    Understand the basic concepts related to ActiveGate.