automations-list

Purpose

This automation returns an array of all automations and their associated triggers present on the declared Itential Platform instance.

automations-list

APIs used:

/operations-manager/automations
/operations-manager/triggers

Input

InputsData TypeSample InputDescription
instance_nameDropdown (String)SE Lab Prod 2023.1The Itential Platform instance name
token (optional)string9f0999c2-7054-4820-8eeb-c3052d30acaaAuthentication token or empty if an API key is used

Output

OutputData TypeSample OutputDescription
all_automationsJSONSample output as mentioned belowReturns a JSON object with all automations and their associated triggers

Sample Output - Success Return

1{"list_automations":[
2 {
3 _id: '612397982e145902a762abd2',
4 name: 'Create Security Policy Palo Alto',
5 description: '',
6 componentName: 'Create Security Policy Palo Alto',
7 componentType: 'workflows',
8 componentId: '66d4868f-83a7-4539-ab04-8d00660d308d',
9 gbac: { write: [], read: [] },
10 created: '2023-05-17T02:36:06.754Z',
11 createdBy: 'user.user@itential.com',
12 lastUpdated: '2023-05-17T02:36:06.754Z',
13 lastUpdatedBy: 'user.user@itential.com',
14 triggers: [ [Object] ]
15 },
16 {
17 _id: '62e7978be8433b0288de8e17',
18 name: 'NVD - Find Vulnerabilities by OS Type',
19 description: '',
20 componentName: 'NVD - Bulk Find Vulnerabilities',
21 componentType: 'workflows',
22 componentId: '12dcd61c-84a3-4b87-b588-c4562751ce45',
23 gbac: { write: [], read: [] },
24 created: '2023-02-24T03:44:52.961Z',
25 createdBy: 'user.user@itential.com',
26 lastUpdated: '2023-02-24T03:44:52.961Z',
27 lastUpdatedBy: 'user.user@itential.com',
28 triggers: [ [Object] ]
29 },
30 {
31 _id: '64667058e4e820010c7b6d55',
32 name: 'test_snow_Actions',
33 description: '',
34 componentName: 'test_snow_Action',
35 componentType: 'workflows',
36 componentId: '64d3ce26-7e8f-4e6b-8cb9-979b3cd388d5',
37 gbac: { read: [], write: [] },
38 created: '2023-05-18T18:37:12.324Z',
39 createdBy: 'user.user@itential.com',
40 lastUpdated: '2023-05-31T15:18:44.664Z',
41 lastUpdatedBy: 'user.user@itential.com',
42 triggers: [ [Object], [Object], [Object], [Object] ]
43 }
44]
45}

Error Output

Error OutputData TypeSample OutputDescription
error_messageStringMalformed URL encountered: Protocol is missing in the URLError message