B2B Gateway
- B2B Gateway
- All Products
public/core/v3/agent/service
Field
| Type
| Required
| Description
|
---|---|---|---|
serviceName
| String
| Yes
| Display name of the Secure Agent service to start or stop.
|
serviceAction
| String
| Yes
| Action to perform on the Secure Agent service. Include one of the following values:
|
agentId
| String
| Yes
| The ID of the agent on which the Secure Agent service is located.
To find the ID, send a lookup POST request that includes the agent path.
|
State
| Description
|
---|---|
NEED_RUNNING
| The start process has been initiated.
|
NEED_STOP
| The stop process has been initiated.
|
DEPLOYING
| The service is being provisioned.
|
DEPLOYED
| The service is deployed and will be running soon.
|
UNKNOWN
| Status is unknown. Check the status using the REST API version 2 agent resource.
To find the status, send a lookup POST request that includes the agent path.
|
ERROR
| The service is in a error state.
|
STARTING
| The service is starting up.
|
RUNNING
| The service is running and ready to accept jobs.
|
RESTARTING
| The service is restarting and will be running soon.
|
STOPPING
| The service is shutting down.
|
USER_STOPPED
| The service has been stopped by a user.
|
POST <baseApiUrl>/public/core/v3/agent/service Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "serviceName":"Data Integration Server", "serviceAction":"start", "agentId":"kiphQJoRWWJfaC3enJ1smP" }
{ "serviceState":"STARTING", "message":"Successfully initiated start action. Note that only the latest version of the service will be started. Send a GET request to /v2/agent/details API to check the updated status of the service." }