ActiveGates 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.

Early Adopter

This request is an Early Adopter release and may be changed in non-compatible way.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v2/activeGates/updateJobs
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/activeGates/updateJobs

Authentication

To execute this request, you need the Read ActiveGates (activeGates.read) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

Parameter Type Description In Required
from string

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 2019-12-21T05: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.

query optional
to string

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 2019-12-21T05: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.

query optional
startVersionCompareType string

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

Specify the comparison operator here.

The startVersionCompareType element can hold these values.
query optional
startVersion string

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

query optional
updateType string

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

The updateType element can hold these values.
query optional
targetVersionCompareType string

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

Specify the comparison operator here.

The targetVersionCompareType element can hold these values.
query optional
targetVersion string

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

query optional

Possible values

Possible values for the targetVersionCompareType element:

  • EQUAL
  • GREATER
  • GREATER_EQUAL
  • LOWER
  • LOWER_EQUAL

Possible values for the updateType element:

  • ACTIVE_GATE
  • REMOTE_PLUGIN_AGENT
  • SYNTHETIC
  • Z_REMOTE

Possible values for the startVersionCompareType element:

  • EQUAL
  • GREATER
  • GREATER_EQUAL
  • LOWER
  • LOWER_EQUAL

Response format

The UpdateJobsAll object

A list of ActiveGates with update jobs.

Element Type Description
allUpdateJobs UpdateJobList[]

A list of ActiveGates with update jobs.

The UpdateJobList object

A list of update jobs of the ActiveGate.

Element Type Description
agId string

The ID of the ActiveGate.

updateJobs UpdateJob[]

A list of update jobs of the ActiveGate.

The UpdateJob object

Configuration of the ActiveGate update job.

Element Type Description
jobId string

The ID of the update job.

jobState string

The status of the update job.

The jobState element can hold these values.
updateMethod string

The method of updating the ActiveGate or its component.

The updateMethod element can hold these values.
updateType string

The component to be updated.

The updateType element can hold these values.
cancelable boolean

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

startVersion string

The initial version of the ActiveGate.

targetVersion string

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.

timestamp integer

The timestamp of the update job completion.

The null value means the job is still running.

agType string

The type of the ActiveGate.

The agType element can hold these values.
environments string[]

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

error string

The information about update error.

duration integer

The duration of the update, in milliseconds.

Possible values

Possible values for the agType element in the UpdateJob object:

  • CLUSTER
  • ENVIRONMENT
  • ENVIRONMENT_MULTI

Possible values for the updateType element in the UpdateJob object:

  • ACTIVE_GATE
  • REMOTE_PLUGIN_AGENT
  • SYNTHETIC
  • Z_REMOTE

Possible values for the updateMethod element in the UpdateJob object:

  • AUTOMATIC
  • MANUAL_INSTALLATION
  • ON_DEMAND

Possible values for the jobState element in the UpdateJob object:

  • FAILED
  • IN_PROGRESS
  • PENDING
  • ROLLBACK
  • SKIPPED
  • SUCCEED