Processes API - GET a process
Gets the parameters of the specified process.
The request produces an application/json
payload.
GET |
|
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
meIdentifier | string |
The DESK entity ID of the required process. |
path | required |
Response format
The ProcessGroupInstance object
Parameters of a process.
Element | Type | Description |
---|---|---|
entityId | string | The DESK entity ID of the required entity. |
displayName | string | The name of the DESK entity as displayed in the UI. |
customizedName | string | The customized name of the entity |
discoveredName | string | The discovered name of the entity |
firstSeenTimestamp | integer | The timestamp of when the entity was first detected, in UTC milliseconds |
lastSeenTimestamp | integer | The timestamp of when the entity was last detected, in UTC milliseconds |
tags | TagInfo[] | The list of entity tags. |
fromRelationships | object | |
toRelationships | object | |
softwareTechnologies | TechnologyInfo[] | |
azureHostName | string | |
listenPorts | integer[] | |
managementZones | EntityShortRepresentation[] | The management zones that the entity is part of. |
metadata | object | |
bitness | string | |
modules | string[] | |
agentVersions | AgentVersion[] | Versions of OneAgents currently running on the entity. |
azureSiteName | string | |
monitoringState | MonitoringState | The current monitoring state of an entity. |
versionedModules | ProcessGroupInstanceModule[] |
The ProcessGroupInstanceModule object
Element | Type | Description |
---|---|---|
name | string | |
version | string |
The MonitoringState object
Defines the current monitoring state of an entity.
Element | Type | Description |
---|---|---|
actualMonitoringState | string | The current actual monitoring state on the entity. |
expectedMonitoringState | string | The monitoring state that is expected from the configuration |
restartRequired | boolean | Defines whether or not the process has to restarted to enable monitoring |
The AgentVersion object
Defines the version of the agent currently running on the entity.
Element | Type | Description |
---|---|---|
major | integer | The major version number. |
minor | integer | The minor version number. |
revision | integer | The revision number. |
sourceRevision | string | A string representation of the SVN revision number. |
timestamp | string | A timestamp string: format "yyyymmdd-hhmmss |
The EntityShortRepresentation object
The short representation of a DESK entity.
Element | Type | Description |
---|---|---|
id | string | The ID of the DESK entity. |
name | string | The name of the DESK entity. |
description | string | A short description of the DESK entity. |
The TechnologyInfo object
Element | Type | Description |
---|---|---|
type | string | |
edition | string | |
version | string |
The TagInfo object
Tag of a DESK entity.
Element | Type | Description |
---|---|---|
context | string | The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the |
key | string | The key of the tag. Custom tags have the tag value here. |
value | string | The value of the tag. Not applicable to custom tags. |
{
"entityId": "string",
"displayName": "string",
"customizedName": "string",
"discoveredName": "string",
"firstSeenTimestamp": 0,
"lastSeenTimestamp": 0,
"tags": [
{
"context": "AWS",
"key": "string",
"value": "string"
}
],
"fromRelationships": "object",
"toRelationships": "object",
"softwareTechnologies": [
{
"type": "string",
"edition": "string",
"version": "string"
}
],
"azureHostName": "string",
"listenPorts": [
"integer"
],
"managementZones": [
{
"id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a",
"name": "DESK entity",
"description": "DESK entity for the REST API example\n"
}
],
"metadata": "object",
"bitness": "32bit",
"modules": [
"string"
],
"agentVersions": [
{
"major": 0,
"minor": 0,
"revision": 0,
"sourceRevision": "string",
"timestamp": "string"
}
],
"azureSiteName": "string",
"monitoringState": {
"actualMonitoringState": "OFF",
"expectedMonitoringState": "OFF",
"restartRequired": true
},
"versionedModules": [
{
"name": "string",
"version": "string"
}
]
}
Example
In this example, the request gets the details of the Apache Web Server apache2 process, which has the ID of PROCESS_GROUP_INSTANCE-EC9688429EB24B6B.
The API token is passed in the Authorization header.
Curl
curl -X GET \
https://mySampleEnv.live.dexp.ae/api/v1/entity/infrastructure/processes/PROCESS_GROUP_INSTANCE-EC9688429EB24B6B \
-H 'Authorization: Api-Token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dexp.ae/api/v1/entity/infrastructure/processes/PROCESS_GROUP_INSTANCE-EC9688429EB24B6B
Response body
{
"entityId": "PROCESS_GROUP_INSTANCE-EC9688429EB24B6B",
"displayName": "Apache Web Server apache2",
"discoveredName": "Apache Web Server apache2",
"firstSeenTimestamp": 1464951001104,
"lastSeenTimestamp": 1545147232609,
"tags": [],
"fromRelationships": {
"isProcessOf": [
"HOST-5FD609AD6757BE7D"
],
"isInstanceOf": [
"PROCESS_GROUP-B34081EFF9E5F516"
]
},
"toRelationships": {
"runsOnProcessGroupInstance": [
"SERVICE-C3173FEB08025322",
"SERVICE-443EACA6DCAEE651",
"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
}
],
"listenPorts": [
80,
443
],
"bitness": "64bit",
"modules": [
"mod_auth_basic.c",
"mod_authn_file.c",
"mod_negotiation.c",
"mod_dir.c",
"mod_rewrite.c"
],
"monitoringState": {
"actualMonitoringState": "ON",
"expectedMonitoringState": "ON",
"restartRequired": false
},
"agentVersions": [
{
"major": 1,
"minor": 157,
"revision": 210,
"timestamp": "20181213-075558",
"sourceRevision": ""
}
]
}
Response code
200