Processes and Services


This section explains how to use REST APIs to perform various operations with 'Processes' and 'Services'.

Processes

Services

Processes

Syntax

Add Process

https://[HOST]:[PORT]/AppManager/xml/process/add?apikey=[API_Key]&resourceid=[Server_ResourceID]&name=[Process_Name]&command=[Commands_Encoded_As_HTML]

Supported HTTP methods: POST

Allowed roles: Administrator

Delete Process

https://[HOST]:[PORT]/AppManager/xml/process/delete?apikey=[APIKey]&monitorid=[resid]&processid=[Processid]

Supported HTTP methods: POST

Allowed roles: Administrator

Edit Process

https://[HOST]:[PORT]/AppManager/xml/process/edit?apikey=[APIKey]&type=0&processid=[Processid]&name=[pname]&command=[command]&matchcriteria=[matchcriteria]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

Field Description
resourceid Resource ID of the server.
name Name of the process to be added.
command Command path in which the process is running.
displayname Display name of the process to be added.
matchcriteria Indicates the criteria that match the condition. By default, it is Contains.
processid Resource ID of the process in Applications Manager, which can be found from AM_HOST_PROCESS_INFO table.
monitorid Resource ID of the monitor.
type Indicates the procees is to be edited. Value should be 0.

Services

Syntax

Add Service

https://[HOST]:[PORT]/AppManager/xml/service/add?apikey=[API_Key]&resourceid=[Server_ResourceID]&name=[Service_Name]&displayname=[Service_Display_Name]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

Field Description
resourceid Resource ID of the server.
name Name of the service to be added.
displayname Display name of the service to be added.
matchcriteria Indicates the criteria that match the condition. By default, it is Contains.