packages/api-client/AutomationApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| createAction | POST /automation/{resourceId}/actions | Create automation action |
| createTrigger | POST /automation/{resourceId}/triggers | Create automation robot trigger |
| deleteAction | DELETE /automation/{resourceId}/actions/{actionId} | Delete automation action |
| deleteRobot | DELETE /automation/{resourceId}/robots/{robotId} | Delete automation robot |
| deleteTrigger | DELETE /automation/{resourceId}/triggers/{triggerId} | Delete automation trigger |
| getNodeRobot | GET /automation/{resourceId}/robots/{robotId} | Get node automation detail. |
| getResourceRobots | GET /automation/robots | Get automation robots |
| getRunHistory | GET /automation/{resourceId}/roots/{robotId}/run-history | Get automation run history |
| modifyRobot | PATCH /automation/{resourceId}/robots/{robotId} | Update automation info. |
| updateAction | PATCH /automation/{resourceId}/actions/{actionId} | Update automation action |
| updateTrigger | PATCH /automation/{resourceId}/triggers/{triggerId} | Update automation robot trigger |
ResponseDataListActionVO createAction(createActionRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiCreateActionRequest = {
// CreateActionRO
createActionRO: {
robotId: "arb****",
input: {},
prevActionId: "atr",
actionTypeId: "test",
},
// string | node id
resourceId: "aut****",
// string | share id
shareId: "shr****",
};
apiInstance.createAction(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| createActionRO | CreateActionRO | ||
| resourceId | [string] | node id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataListActionVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListTriggerVO createTrigger(createTriggerRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiCreateTriggerRequest = {
// CreateTriggerRO
createTriggerRO: {
robotId: "arb****",
input: {},
relatedResourceId: "dst***/fom***",
prevTriggerId: "atr",
triggerTypeId: "test",
},
// string | node id
resourceId: "aut****",
// string | share id
shareId: "shr****",
};
apiInstance.createTrigger(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| createTriggerRO | CreateTriggerRO | ||
| resourceId | [string] | node id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataListTriggerVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid deleteAction()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiDeleteActionRequest = {
// string | node id
resourceId: "aut****",
// string | action id
actionId: "atr****",
// string | robot id
robotId: "arb****",
};
apiInstance.deleteAction(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | [string] | node id | defaults to undefined |
| actionId | [string] | action id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid deleteRobot()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiDeleteRobotRequest = {
// string | node id
resourceId: "aut****",
// string | robot id
robotId: "arb****",
};
apiInstance.deleteRobot(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | [string] | node id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid deleteTrigger()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiDeleteTriggerRequest = {
// string | node id
resourceId: "aut****",
// string | trigger id
triggerId: "atr****",
// string | robot id
robotId: "arb****",
};
apiInstance.deleteTrigger(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | [string] | node id | defaults to undefined |
| triggerId | [string] | trigger id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataAutomationVO getNodeRobot()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiGetNodeRobotRequest = {
// string | node id
resourceId: "aut****",
// string | robot id
robotId: "arb****",
// string | share id
shareId: "shr****",
};
apiInstance.getNodeRobot(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | [string] | node id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataAutomationVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListAutomationSimpleVO getResourceRobots()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiGetResourceRobotsRequest = {
// string | node id
resourceId: "aut****",
// string | share id
shareId: "shr****",
};
apiInstance.getResourceRobots(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| resourceId | [string] | node id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataListAutomationSimpleVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListAutomationTaskSimpleVO getRunHistory()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiGetRunHistoryRequest = {
// number | Current page number, default: 1
pageNum: 1,
// string | share id
shareId: "shr****",
// string | node id
resourceId: "aut****",
// string | robot id
robotId: "arb****",
// number | Page size, default: 20 (optional)
pageSize: 20,
};
apiInstance.getRunHistory(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| pageNum | [number] | Current page number, default: 1 | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
| resourceId | [string] | node id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
| pageSize | [number] | Page size, default: 20 | (optional) defaults to undefined |
ResponseDataListAutomationTaskSimpleVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid modifyRobot(updateRobotRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiModifyRobotRequest = {
// UpdateRobotRO
updateRobotRO: {
name: "test",
description: "test",
props: {
failureNotifyEnable: false,
},
isActive: true,
},
// string | node id
resourceId: "aut****",
// string | robot id
robotId: "arb****",
// string | share id
shareId: "shr****",
};
apiInstance.modifyRobot(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| updateRobotRO | UpdateRobotRO | ||
| resourceId | [string] | node id | defaults to undefined |
| robotId | [string] | robot id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListActionVO updateAction(updateActionRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiUpdateActionRequest = {
// UpdateActionRO
updateActionRO: {
robotId: "arb****",
input: {},
prevActionId: "atr",
actionTypeId: "test",
},
// string | node id
resourceId: "aut****",
// string | action id
actionId: "atr****",
// string | share id
shareId: "shr****",
};
apiInstance.updateAction(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| updateActionRO | UpdateActionRO | ||
| resourceId | [string] | node id | defaults to undefined |
| actionId | [string] | action id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataListActionVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListTriggerVO updateTrigger(updateTriggerRO, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AutomationApi(configuration);
let body:.AutomationApiUpdateTriggerRequest = {
// UpdateTriggerRO
updateTriggerRO: {
robotId: "arb****",
input: {},
relatedResourceId: "dst***/fom***",
prevTriggerId: "atr",
triggerTypeId: "test",
},
// string | node id
resourceId: "aut****",
// string | trigger id
triggerId: "atr****",
// string | share id
shareId: "shr****",
};
apiInstance.updateTrigger(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| updateTriggerRO | UpdateTriggerRO | ||
| resourceId | [string] | node id | defaults to undefined |
| triggerId | [string] | trigger id | defaults to undefined |
| shareId | [string] | share id | defaults to undefined |
ResponseDataListTriggerVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]