• Home
  • Dynatrace API
  • Environment
  • Topology and Smartscape v1
  • Process groups
  • GET all process groups

Process groups API - GET all process groups

We have a new version of this API—Entity API v2. Check it out!

Gets the list of all process groups in your Dynatrace environment, along with their parameters and relationships.

The full list can be lengthy, so you can narrow it down by specifying filter parameters, like tags. See the Parameters section for more details.

You can additionally limit the output by using the pagination:

  1. Specify the number of results per page in the pageSize query parameter.
  2. Then use the cursor from the Next-Page-Key response header in the nextPageKey query parameter to obtain subsequent pages.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/process-groups
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/process-groups
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v1/entity/infrastructure/process-groups

Authentication

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

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

Parameters

The timeframe is restricted to a maximum period of 3 days.

ParameterTypeDescriptionInRequired
startTimestampinteger

The start timestamp of the requested timeframe, in milliseconds (UTC).

If not set, then 72 hours behind from now is used.

queryoptional
endTimestampinteger

The end timestamp of the requested timeframe, in milliseconds (UTC).

If not set, then the current timestamp is used.

The timeframe must not exceed 3 days.

queryoptional
relativeTimestring

The relative timeframe, back from now.

The element can hold these values
  • min
  • 5mins
  • 10mins
  • 15mins
  • 30mins
  • hour
  • 2hours
  • 6hours
  • day
  • 3days
queryoptional
tagstring[]

Filters the resulting set of process groups by the specified tag. You can specify several tags in the following format: tag=tag1&tag=tag2. The process group has to match all the specified tags.

In case of key-value tags, such as imported AWS or CloudFoundry tags, use the following format: tag=[context]key:value. For custom key-value tags, omit the context: tag=key:value.

queryoptional
entitystring[]

Filters result to the specified process groups only.

To specify several process groups use the following format: entity=ID1&entity=ID2.

queryoptional
hoststring[]

Filters process groups by the host they're running at.

Specify Dynatrace IDs of the host you're interested in.

To specify several hosts use the following format: host=hostID1&host=hostID2.

The OR logic applies.

queryoptional
managementZoneinteger

Only return process groups that are part of the specified management zone.

queryoptional
includeDetailsboolean

Includes (true) or excludes (false) details which are queried from related entities.

Excluding details may make queries faster.

If not set, then true is used.

queryoptional
pageSizeinteger

The number of process groups per result page.

If not set, pagination is not used and the result contains all process groups fitting the specified filtering criteria.

queryoptional
nextPageKeystring

The cursor for the next page of results. You can find it in the Next-Page-Key header of the previous response.

If you're using pagination, the first page is always returned without this cursor.

You must keep all other query parameters as they were in the first request to obtain subsequent pages.

queryoptional

Response headers

HeaderTypeDescription
Total-CountintegerThe estimated number of results.
Next-Page-KeystringThe cursor for the next page of results. Without it you'll get the first page again.
Page-SizestringThe maximum number of results per page.

Response

Response codes

CodeTypeDescription
200ProcessGroup[]

Success

400ErrorEnvelope

Failed. The input is invalid.

Response body objects

The ResponseBody object

The object doesn't provide any parameters.

The ProcessGroup object

Parameters of a process group.

ElementTypeDescription
entityIdstring

The Dynatrace entity ID of the required entity.

displayNamestring

The name of the Dynatrace entity as displayed in the UI.

customizedNamestring

The customized name of the entity

discoveredNamestring

The discovered name of the entity

firstSeenTimestampinteger

The timestamp of when the entity was first detected, in UTC milliseconds

lastSeenTimestampinteger

The timestamp of when the entity was last detected, in UTC milliseconds

tagsTagInfo[]

The list of entity tags.

fromRelationshipsobject-
toRelationshipsobject-
metadataobject-
azureSiteNamestring-
managementZonesEntityShortRepresentation[]

The management zones that the entity is part of.

azureHostNamestring-
listenPortsinteger[]-
softwareTechnologiesTechnologyInfo[]-

The TagInfo object

Tag of a Dynatrace entity.

ElementTypeDescription
contextstring

The origin of the tag, such as AWS or Cloud Foundry.

Custom tags use the CONTEXTLESS value.

The element can hold these values
  • AWS
  • AWS_GENERIC
  • AZURE
  • CLOUD_FOUNDRY
  • CONTEXTLESS
  • ENVIRONMENT
  • GOOGLE_CLOUD
  • KUBERNETES
keystring

The key of the tag.

Custom tags have the tag value here.

valuestring

The value of the tag.

Not applicable to custom tags.

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

ElementTypeDescription
idstring

The ID of the Dynatrace entity.

namestring

The name of the Dynatrace entity.

descriptionstring

A short description of the Dynatrace entity.

The TechnologyInfo object

ElementTypeDescription
typestring-
editionstring-
versionstring-

Response body JSON model

json
[ { "entityId": "string", "displayName": "string", "customizedName": "string", "discoveredName": "string", "firstSeenTimestamp": 1, "lastSeenTimestamp": 1, "tags": [ { "context": "AWS", "key": "string", "value": "string" } ], "fromRelationships": { "isNetworkClientOfProcessGroup": [ "string" ], "runsOn": [ "string" ] }, "toRelationships": { "isNetworkClientOfProcessGroup": [ "string" ], "isInstanceOf": [ "string" ], "runsOn": [ "string" ] }, "metadata": { "hostGroups": [ "string" ], "cloudFoundryAppIds": [ "string" ], "dynatraceNodeIds": [ "string" ], "executables": [ "string" ], "googleComputeEngineMetadata": {}, "phpScripts": [ "string" ], "awsEcsCluster": [ "string" ], "declarativeId": [ "string" ], "glassfishInstanceNames": [ "string" ], "tibcoBusinessWorksEnginePropertyFiles": [ "string" ], "jbossServerNames": [ "string" ], "catalinaBaseValues": [ "string" ], "mssqlInstanceName": [ "string" ], "ibmIntegrationServerName": [ "string" ], "varnishInstanceNames": [ "string" ], "phpWorkingDirectories": [ "string" ], "websphereLibertyServerName": [ "string" ], "googleCloudProjects": [ "string" ], "dockerContainerImageVersions": [ "string" ], "hybrisConfigDirectories": [ "string" ], "executablePaths": [ "string" ], "awsEcrImageRegions": [ "string" ], "tibcoBusinessWorksAppSpaceName": [ "string" ], "springBootStartupClass": [ "string" ], "weblogicDomainNames": [ "string" ], "elasticSearchNodeNames": [ "string" ], "tibcoBWEnginePropertyFilePaths": [ "string" ], "kubernetesContainerNames": [ "string" ], "rubyAppRootPaths": [ "string" ], "ibmImsMessageProcessingRegions": [ "string" ], "googleCloudInstanceId": [ "string" ], "googleCloudInstanceRegion": [ "string" ], "linkage": [ "string" ], "cloudfoundryMetadata": {}, "oracleSid": [ "string" ], "awsEcsFamily": [ "string" ], "commandLineArgs": [ "string" ], "aspDotNetCoreApplicationPaths": [ "string" ], "awsEcrImageAccountIds": [ "string" ], "springBootAppName": [ "string" ], "websphereClusterNames": [ "string" ], "springBootProfileName": [ "string" ], "kubernetesAnnotations": {}, "websphereServerNames": [ "string" ], "catalinaHomeValues": [ "string" ], "glassfishDomainNames": [ "string" ], "kubernetesBasePodNames": [ "string" ], "weblogicClusterNames": [ "string" ], "javaMainModules": [ "string" ], "ibmJobName": [ "string" ], "kubernetesPodUids": [ "string" ], "awsEcsContainerName": [ "string" ], "coldfusionJvmConfigFiles": [ "string" ], "dotnetCommandPath": [ "string" ], "tibcoBusinessWorksDomainName": [ "string" ], "elasticSearchClusterNames": [ "string" ], "nodejsScriptNames": [ "string" ], "iisRoleNames": [ "string" ], "apacheSparkMasterIpAddresses": [ "string" ], "weblogicNames": [ "string" ], "rubyScriptPaths": [ "string" ], "ibmImsSoapGwName": [ "string" ], "nodejsAppBaseDirectories": [ "string" ], "softwareAgProductPropertyName": [ "string" ], "awsEcsRevision": [ "string" ], "ibmImsControlRegions": [ "string" ], "javaMainClasses": [ "string" ], "cassandraClusterNames": [ "string" ], "softwareAgInstallRoot": [ "string" ], "cloudFoundryAppNames": [ "string" ], "cloudFoundrySpaceNames": [ "string" ], "pluginMetadata": {}, "ibmIntegrationNodeName": [ "string" ], "dockerContainerNames": [ "string" ], "ibmCtgName": [ "string" ], "googleCloudRunService": [ "string" ], "tibcoBusinessWorksCeAppName": [ "string" ], "kubernetesFullPodNames": [ "string" ], "apacheConfigPaths": [ "string" ], "tibcoBusinessWorksAppNodeName": [ "string" ], "tibcoBusinessWorksCeVersion": [ "string" ], "dotNetCommands": [ "string" ], "googleAppEngineServices": [ "string" ], "kubernetesNamespaces": [ "string" ], "hybrisDataDirectories": [ "string" ], "envVariables": {}, "javaJarFiles": [ "string" ], "javaJarPaths": [ "string" ], "dockerContainerIds": [ "string" ], "cloudFoundrySpaceIds": [ "string" ], "ruleResult": [ "string" ], "kubernetesRuleResult": [ "string" ], "jbossModes": [ "string" ], "awsLambdaFunctionNames": [ "string" ], "cloudFoundryInstanceIndexes": [ "string" ], "hybrisBinDirectories": [ "string" ], "weblogicHomeValues": [ "string" ], "jbossHomes": [ "string" ], "ibmApplid": [ "string" ], "dynatraceClusterIds": [ "string" ], "googleAppEngineInstances": [ "string" ], "websphereNodeNames": [ "string" ], "agentValueMetadata": {}, "iisAppPools": [ "string" ], "ibmImsConnectRegions": [ "string" ], "dockerContainerImageNames": [ "string" ], "tibcoBusinessWorksHome": [ "string" ], "ibmCicsRegion": [ "string" ], "serviceNames": [ "string" ], "websphereCellNames": [ "string" ], "nodejsAppNames": [ "string" ], "equinoxConfigPath": [ "string" ], "awsRegions": [ "string" ] }, "azureSiteName": "string", "managementZones": [ { "id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a", "name": "Dynatrace entity", "description": "Dynatrace entity for the REST API example" } ], "azureHostName": "string", "listenPorts": [ 1 ], "softwareTechnologies": [ { "type": "string", "edition": "string", "version": "string" } ] } ]

Example

In this example, the request lists all the process groups of the environment detected within the last 5 minutes.

The API token is passed in the Authorization header.

The result is truncated to two entries.

Curl

bash
curl -X GET \ 'https://mySampleEnv.live.dynatrace.com/api/v1/entity/infrastructure/process-groups?relativeTime=5mins' \ -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890' \

Request URL

plaintext
https://mySampleEnv.live.dynatrace.com/api/v1/entity/infrastructure/process-groups?relativeTime=5mins

Response body

json
[ { "entityId": "PROCESS_GROUP-B34081EFF9E5F516", "displayName": "Apache Web Server apache2", "discoveredName": "Apache Web Server apache2", "firstSeenTimestamp": 1405316247660, "lastSeenTimestamp": 1545149212556, "tags": [], "fromRelationships": {}, "toRelationships": { "runsOn": [ "SERVICE-B8C88BAA442098CF" ] }, "metadata": { "commandLineArgs": [ "/usr/sbin/apache2 -k start" ], "executables": [ "apache2" ], "executablePaths": [ "/usr/sbin/apache2" ], "apacheConfigPaths": [ "/etc/apache2/apache2.conf" ] }, "softwareTechnologies": [ { "type": "PHP", "edition": "Apache", "version": "5.5.9" }, { "type": "APACHE_HTTPD", "edition": null, "version": "2.4.7" }, { "type": "SQLITE", "edition": null, "version": null } ] }, { "entityId": "PROCESS_GROUP-E5C3CC7EC1F80B5B", "displayName": "PHP-FPM", "discoveredName": "PHP-FPM", "firstSeenTimestamp": 1503909407206, "lastSeenTimestamp": 1545149349700, "tags": [], "fromRelationships": { "runsOn": [ "HOST-74CDC8809AD43931", "HOST-9A81EACCA0270218" ] }, "toRelationships": { "isInstanceOf": [ "PROCESS_GROUP_INSTANCE-7E988C3503AE8803" ], "isNetworkClientOfProcessGroup": [ "PROCESS_GROUP-49C926A7091830E3" ], "runsOn": [ "SERVICE-72503CBDD2AEF066" ] }, "metadata": { "hostGroups": [ "authoring" ], "commandLineArgs": [ "/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf" ], "executables": [ "php-fpm7.0" ], "executablePaths": [ "/usr/sbin/php-fpm7.0" ] }, "softwareTechnologies": [ { "type": "SQLITE", "edition": null, "version": null }, { "type": "PHP", "edition": "FPM", "version": "7.0.32" }, { "type": "PHP_FPM", "edition": null, "version": null } ] } ]

Response code

200

Related topics
  • Process groups

    Analyze process groups and customize process group naming, detection, and monitoring.