ActiveGate API - GET all auto-update jobs
Lists all update jobs for the specified ActiveGate. The list includes completed jobs (successful or failed) and jobs in progress.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/activeGates/{agId}/updateJobs |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/activeGates/{agId}/updateJobs | |
Environment and Cluster ActiveGate (default port 9999) | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/activeGates/{agId}/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
Parameter | Type | Description | In | Required |
---|---|---|---|---|
agId | string | The ID of the required ActiveGate. | path | required |
from | string | The start of the requested timeframe for update jobs. You can use one of the following formats:
If not set, the relative timeframe of one week is used ( 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:
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.
| query | optional |
startVersion | string | Filters the resulting set of update-jobs by the initial version (required format | query | optional |
updateType | string | Filters the resulting set of update-jobs by the update type.
| query | optional |
targetVersionCompareType | string | Filters the resulting set of update jobs by the specified target version. Specify the comparison operator here.
| query | optional |
targetVersion | string | Filters the resulting set of update-jobs by the target version (required format | query | optional |
lastUpdates | boolean | If | query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | UpdateJobList | Success |
404 | ErrorEnvelope | Not found. See response body for details. |
Response body objects
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 |
---|---|---|
agType | string | The type of the ActiveGate.
|
cancelable | boolean | The job can ( |
duration | integer | The duration of the update, in milliseconds. |
environments | string[] | A list of environments (specified by IDs) the ActiveGate can connect to. |
error | string | The information about update error. |
jobId | string | The ID of the update job. |
jobState | string | The status of the update job.
|
startVersion | string | The initial version of the ActiveGate. |
targetVersion | string | The target version of the update. Specify the version in the To update to the latest available version, use the |
timestamp | integer | The timestamp of the update job completion. The |
updateMethod | string | The method of updating the ActiveGate or its component.
|
updateType | string | The component to be updated.
|
Response body JSON model
1{2 "agId": "0x3efdd092",3 "updateJobs": [4 {5 "agType": "ENVIRONMENT",6 "cancelable": false,7 "duration": 3608000,8 "environments": [9 "string"10 ],11 "error": "string",12 "jobId": "-3524498778810258605",13 "jobState": "SUCCEED",14 "startVersion": "1.185.0.20200201-120000",15 "targetVersion": "1.190.0.20200301-130000",16 "timestamp": 1582031917814,17 "updateMethod": "AUTOMATIC",18 "updateType": "ACTIVE_GATE"19 }20 ]21}
Example
In this example, the request lists all auto-update jobs of the ActiveGate with the ID of 2100855201.
The API token is passed in the Authorization header.
Curl
1curl -L -X GET 'https://mySampleEnv.live.dynatrace.com/api/v2/activeGates/2100855201/updateJobs' \2-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/v2/activeGates/2100855201/updateJobs
Response body
1{2 "agId": "2100855201",3 "updateJobs": [4 {5 "jobId": "-3137933319273211278",6 "jobState": "SUCCEED",7 "updateMethod": "MANUAL_INSTALLATION",8 "updateType": "ACTIVE_GATE",9 "cancelable": false,10 "startVersion": "1.198.0.20200629-221007",11 "targetVersion": "1.198.0.20200630-163221",12 "timestamp": 1593683526719,13 "agType": "ENVIRONMENT",14 "environments": [15 "mySampleEnv"16 ],17 "error": null,18 "duration": 55657419 },20 {21 "jobId": "-6733215466838702651",22 "jobState": "SUCCEED",23 "updateMethod": "AUTOMATIC",24 "updateType": "REMOTE_PLUGIN_AGENT",25 "cancelable": false,26 "startVersion": "1.198.0.20200629-123323",27 "targetVersion": "1.198.0.20200630-155408",28 "timestamp": 1593545522797,29 "agType": "ENVIRONMENT",30 "environments": [31 "mySampleEnv"32 ],33 "error": null,34 "duration": 4266935 }36 ]37}
Response code
200