Skip to content

Commit 674b2db

Browse files
committed
Add app docs
1 parent 4bb6633 commit 674b2db

File tree

5 files changed

+38
-24
lines changed

5 files changed

+38
-24
lines changed

app-docs/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Foundry Sample with Python Functions
2+
3+
This sample is designed to show you how to use Python Functions in Falcon Foundry.
4+
5+
It contains several Python functions that show you how to:
6+
7+
- Integrate with workflows
8+
- Use FalconPy
9+
- Use FalconPy to invoke an API Integration
10+
- Use FalconPy to store data in a collection
11+
- Share code between functions
12+
13+
When you install this app, you will be prompted for ServiceNow credentials. You can create a developer account at https://developer.servicenow.com. If you'd rather not create an account, just fill in fake values when installing. You won't be able to test the ServiceNow API integration nor invoke the servicenow function if you use fake values.

manifest.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
app_id: 911d4531429f4deb9bd79725c34912b7
1+
app_id: ""
22
name: functions-python
33
description: Foundry sample that shows how to use Python functions
4-
logo: images/logo.png
4+
logo: app-docs/images/logo.png
55
vendor: ""
66
vendor_products: []
77
use_case: Cloud security
@@ -14,7 +14,7 @@ ignored:
1414
ui:
1515
homepage: ""
1616
extensions:
17-
- id: cf6271db03414e95b34c0205943f30e0
17+
- id: ""
1818
name: hello
1919
description: UI to call the hello function
2020
path: ui/extensions/hello/src/dist
@@ -36,7 +36,7 @@ ui:
3636
dashboards: {}
3737
navigation: {}
3838
api_integrations:
39-
- id: b7eca9f88dcc48938b252eca233e4951
39+
- id: ""
4040
name: ServiceNow
4141
description: Allows you to perform CRUD operations on tables
4242
path: api-integrations/ServiceNow.json
@@ -53,12 +53,11 @@ collections:
5353
auth:
5454
scopes:
5555
- devices:read
56-
- devices:write
5756
- api-integrations:read
5857
permissions: {}
5958
roles: []
6059
functions:
61-
- id: 3c90153e60414b56b3eed83a740cc058
60+
- id: ""
6261
name: hello
6362
config: null
6463
description: Returns a greeting based on name input
@@ -73,7 +72,7 @@ functions:
7372
request_schema: request_schema.json
7473
response_schema: response_schema.json
7574
workflow_integration:
76-
id: 13511c8194f0447d9da5b34a5b88d3e7
75+
id: ""
7776
disruptive: false
7877
system_action: false
7978
tags:
@@ -82,7 +81,7 @@ functions:
8281
- Functions
8382
permissions: []
8483
language: python
85-
- id: ecb62e5f09144ba7986a3cdc7ca1a97d
84+
- id: ""
8685
name: host-details
8786
config: null
8887
description: Get Device Details using FalconPy
@@ -97,7 +96,7 @@ functions:
9796
request_schema: request_schema.json
9897
response_schema: response_schema.json
9998
workflow_integration:
100-
id: a73c5b79261a42628f4d04010f73d176
99+
id: ""
101100
disruptive: false
102101
system_action: true
103102
tags:
@@ -107,7 +106,7 @@ functions:
107106
- FalconPy
108107
permissions: []
109108
language: python
110-
- id: 9afd44e9e03842a780c279d12de1e81f
109+
- id: ""
111110
name: servicenow
112111
config: null
113112
description: Create ServiceNow Ticket
@@ -122,7 +121,7 @@ functions:
122121
request_schema: request_schema.json
123122
response_schema: response_schema.json
124123
workflow_integration:
125-
id: 4029a2f6b7a943b084147b7f8b1be8b0
124+
id: ""
126125
disruptive: false
127126
system_action: true
128127
tags:
@@ -132,7 +131,7 @@ functions:
132131
- FalconPy
133132
permissions: []
134133
language: python
135-
- id: cbaecd0e17c040a3bf56a0a627ff34e4
134+
- id: ""
136135
name: log-event
137136
config: null
138137
description: Store Data in a Collection
@@ -147,7 +146,7 @@ functions:
147146
request_schema: request_schema.json
148147
response_schema: response_schema.json
149148
workflow_integration:
150-
id: 8d5f38cfe6e54ddd8f5ba39058a83bda
149+
id: ""
151150
disruptive: false
152151
system_action: true
153152
tags:
@@ -157,7 +156,7 @@ functions:
157156
- FalconPy
158157
permissions: []
159158
language: python
160-
- id: 86c21f8136204c30bcddccfab707d939
159+
- id: ""
161160
name: host-info
162161
config: null
163162
description: Get Host Information
@@ -172,15 +171,15 @@ functions:
172171
request_schema: request_schema.json
173172
response_schema: response_schema.json
174173
workflow_integration:
175-
id: af9f2c0015c3424aa21fc54e8b814ef4
174+
id: ""
176175
disruptive: false
177176
system_action: false
178177
tags:
179178
- 911d4531429f4deb9bd79725c34912b7
180179
- Multiple
181180
permissions: []
182181
language: python
183-
- id: 86c21f8136204c30bcffccfab707d939
182+
- id: ""
184183
name: user-management
185184
config: null
186185
description: Create a User
@@ -195,7 +194,7 @@ functions:
195194
request_schema: request_schema.json
196195
response_schema: response_schema.json
197196
workflow_integration:
198-
id: af9f2c0015c3424aa21fc54q8b814ef4
197+
id: ""
199198
disruptive: false
200199
system_action: false
201200
tags:
@@ -204,24 +203,26 @@ functions:
204203
permissions: []
205204
language: python
206205
workflows:
207-
- id: f9fa1e26bdd0481f962a69b5453e059e
206+
- id: ""
208207
name: Test log-event function
209208
path: workflows/Test_log-event_function.yml
210209
permissions: []
211-
- id: d601624237d04f58ac97445ceded5bb8
210+
- id: ""
212211
name: Test hello function
213212
path: workflows/Test_hello_function.yml
214213
permissions: []
215-
- id: be5c02ea9b9f468da8d42df46c8cd5f4
214+
- id: ""
216215
name: Test host-details function
217216
path: workflows/Test_host-details_function.yml
218217
permissions: []
219-
- id: 9a79d44830894c3db2cb1ffb76ceb2a0
218+
- id: ""
220219
name: Test servicenow function
221220
path: workflows/Test_servicenow_function.yml
222221
permissions: []
223222
parsers: []
224223
logscale:
225224
saved_searches: []
226225
lookup_files: []
227-
docs: {}
226+
docs:
227+
path: app-docs
228+
entrypoint: README.md

workflows/Test_hello_function.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Test hello function
2-
description: Workflow to invoke hello function
2+
description: Workflow to invoke the hello function
33
provision_on_install: true
44
trigger:
55
next:

workflows/Test_servicenow_function.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Test servicenow function
2-
description: Workflow to invoke servicenow function
2+
description: Workflow to invoke the servicenow function
33
provision_on_install: true
44
trigger:
55
next:

0 commit comments

Comments
 (0)