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.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/activeGates/updateJobs |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/activeGates/updateJobs | |
Environment ActiveGate | https://{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
Parameter | Type | Description | In | 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 day 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 | Update | Success |
400 | ErrorEnvelope | Failed. The input is invalid. |
Response body objects
The UpdateJobsAll
object
A list of ActiveGates with update jobs.
Element | Type | Description |
---|---|---|
allUpdateJobs | Update | A list of ActiveGates with update jobs. |
The UpdateJobList
object
A list of update jobs of the ActiveGate.
Element | Type | Description |
---|---|---|
updateJobs | Update | A list of update jobs of the ActiveGate. |
agId | string | The ID of the ActiveGate. |
The UpdateJob
object
Configuration of the ActiveGate update job.
Element | Type | Description |
---|---|---|
cancelable | boolean | The job can ( |
environments | string[] | A list of environments (specified by IDs) the ActiveGate can connect to. |
jobState | string | The status of the update job. |
updateMethod | string | The method of updating the ActiveGate or its component. |
updateType | string | The component to be updated. |
agType | string | The type of the ActiveGate. |
startVersion | string | The initial version of the ActiveGate. |
jobId | string | The ID of the update job. |
timestamp | integer | The timestamp of the update job completion. The |
duration | integer | The duration of the update, in milliseconds. |
targetVersion | string | The target version of the update. Specify the version in the To update to the latest available version, use the |
error | string | The information about update error. |
Response body JSON model
{
"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"
}
]
}