Lists all ActiveGates that are currently connected to the environment or have been connected during the last 2 hours.
You can narrow down the output by specifying filtering parameters in your request.
The request produces an application/json payload.
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/activeGates |
| Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/activeGates |
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.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| hostname | string | Filters the resulting set of ActiveGates by the name of the host it's running on. You can specify a partial name. In that case, the | query | optional |
| osType | string | Filters the resulting set of ActiveGates by the OS type of the host it's running on.
| query | optional |
| osArchitecture | string | Filters the resulting set of ActiveGates by the OS architecture of the host it's running on.
| query | optional |
| networkAddress | string | Filters the resulting set of ActiveGates by the network address. You can specify a partial address. In that case, the | query | optional |
| loadBalancerAddress | string | Filters the resulting set of ActiveGates by the Load Balancer address. You can specify a partial address. In that case, the | query | optional |
| type | string | Filters the resulting set of ActiveGates by the ActiveGate type.
| query | optional |
| networkZone | string | Filters the resulting set of ActiveGates by the network zone. You can specify a partial name. In that case, the | query | optional |
| updateStatus | string | Filters the resulting set of ActiveGates by the auto-update status.
| query | optional |
| versionCompareType | string | Filters the resulting set of ActiveGates by the specified version. Specify the comparison operator here.
| query | optional |
| version | string | Filters the resulting set of ActiveGates by the specified version. Specify the version in | query | optional |
| autoUpdate | string | Filters the resulting set of ActiveGates by the actual state of auto-update.
| query | optional |
| group | string | Filters the resulting set of ActiveGates by the group. You can specify a partial name. In that case, the | query | optional |
| online | boolean | Filters the resulting set of ActiveGates by the communication status. | query | optional |
| enabledModule | string[] | Filters the resulting set of ActiveGates by the enabled modules.
| query | optional |
| disabledModule | string[] | Filters the resulting set of ActiveGates by the disabled modules.
| query | optional |
| containerized | boolean | Filters the resulting set of ActiveGates to those which are running in container ( | query | optional |
| tokenState | string | Filters the resulting set of ActiveGates to those with authorization token in specified state.
| query | optional |
| tokenExpirationSet | boolean | Filters the resulting set of ActiveGates to those with set expiration date for authorization token. | query | optional |
| fipsMode | boolean | Filters the resulting set of ActiveGates to those which are running in FIPS mode ( | query | optional |
| Code | Type | Description |
|---|---|---|
| 200 | Active | Success |
| 400 | Error | Failed. The input is invalid. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
ActiveGateList objectA list of ActiveGates.
| Element | Type | Description |
|---|---|---|
| activeGates | Active | A list of ActiveGates. |
ActiveGate objectParameters of the ActiveGate.
| Element | Type | Description |
|---|---|---|
| activeGateTokens | Active | A list of the ActiveGate tokens. |
| autoUpdateSettings | Active | Configuration of the ActiveGate auto-updates. |
| autoUpdateStatus | string | The current status of auto-updates of the ActiveGate.
|
| connectedHosts | Active | Information about hosts currently connected to the ActiveGate |
| containerized | boolean | ActiveGate is deployed in container ( |
| environments | string[] | A list of environments (specified by IDs) the ActiveGate can connect to. |
| fipsMode | boolean | ActiveGate is running in FIPS compliant mode ( |
| group | string | The group of the ActiveGate. |
| hostname | string | The name of the host the ActiveGate is running on. |
| id | string | The ID of the ActiveGate. |
| loadBalancerAddresses | string[] | A list of Load Balancer addresses of the ActiveGate. |
| mainEnvironment | string | The ID of the main environment for a multi-environment ActiveGate. |
| modules | Active | A list of modules of the ActiveGate. |
| networkAddresses | string[] | A list of network addresses of the ActiveGate. |
| networkZone | string | The network zone of the ActiveGate. |
| offlineSince | integer | The timestamp since when the ActiveGate is offline. The |
| osArchitecture | string | The OS architecture that the ActiveGate is running on.
|
| osBitness | string | The OS bitness that the ActiveGate is running on.
|
| osType | string | The OS type that the ActiveGate is running on.
|
| type | string | The type of the ActiveGate.
|
| version | string | The current version of the ActiveGate in the |
ActiveGateTokenInfoDto objectInformation about ActiveGate token.
| Element | Type | Description |
|---|---|---|
| environmentId | string | The environment ID to which the token belongs. Only available if more than one environment is supported. |
| id | string | The ActiveGate token identifier, consisting of prefix and public part of the token. |
| state | string | State of the ActiveGate token.
|
ActiveGateAutoUpdateConfig objectConfiguration of the ActiveGate auto-updates.
| Element | Type | Description |
|---|---|---|
| effectiveSetting | string | The actual state of the ActiveGate auto-update. Applicable only if the setting parameter is set to
|
| setting | string | The state of the ActiveGate auto-update: enabled, disabled, or inherited. If set to
|
ActiveGateConnectedHosts objectInformation about hosts currently connected to the ActiveGate
| Element | Type | Description |
|---|---|---|
| number | integer | The number of hosts currently connected to the ActiveGate |
ActiveGateModule objectInformation about ActiveGate module
| Element | Type | Description |
|---|---|---|
| attributes | object | The attributes of the ActiveGate module. |
| enabled | boolean | The module is enabled ( |
| misconfigured | boolean | The module is misconfigured ( |
| type | string | The type of ActiveGate module.
|
| version | string | The version of the ActiveGate module. |
{"activeGates": [{"activeGateTokens": [{"environmentId": "string","id": "dt0g02.4KWZO5EF","state": "ABSENT"}],"autoUpdateSettings": {"effectiveSetting": "ENABLED","setting": "INHERITED"},"autoUpdateStatus": "OUTDATED","connectedHosts": {"number": 150},"containerized": true,"environments": ["string"],"fipsMode": true,"group": "default","hostname": "exampleHostname","id": "0x3efdd091","loadBalancerAddresses": ["string"],"mainEnvironment": "d1bf4a7e-666b-43af-9f45-718g98372e2f","modules": [{"attributes": {},"enabled": true,"misconfigured": true,"type": "KUBERNETES","version": "string"}],"networkAddresses": ["string"],"networkZone": "exampleNetworkZone","offlineSince": 1582031917814,"osArchitecture": "X86","osBitness": "64","osType": "WINDOWS","type": "ENVIRONMENT","version": "1.185.0.20200201-120000"}]}
In this example, the request lists all ActiveGates available for the mySampleEnv environment.
The API token is passed in the Authorization header.
The result is truncated to two entries.
curl -L -X GET 'https://mySampleEnv.live.dynatrace.com/api/v2/activeGates' \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/v2/activeGates
{"activeGates": [{"id": "1541791174","networkAddresses": ["orange-15.easytravel.com","150.134.11.6"],"osType": "LINUX","autoUpdateStatus": "UP2DATE","offlineSince": null,"version": "1.193.0.20200416-144858","type": "ENVIRONMENT","hostname": "orange-15.easytravel.com","mainEnvironment": null,"environments": ["mySampleEnv"],"networkZone": "default"},{"id": "974977376","networkAddresses": ["win-18.easytravel.com","66.165.59.105"],"osType": "WINDOWS","autoUpdateStatus": "OUTDATED","offlineSince": null,"version": "1.198.0.20200629-221007","type": "ENVIRONMENT","hostname": "win-18.easytravel.com","mainEnvironment": null,"environments": ["mySampleEnv"],"networkZone": "default"}]}
200