You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/how-to-user-defined-functions.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: bertvanhoof
7
7
ms.service: digital-twins
8
8
services: digital-twins
9
9
ms.topic: conceptual
10
-
ms.date: 11/07/2019
10
+
ms.date: 11/21/2019
11
11
ms.custom: seodec18
12
12
---
13
13
@@ -41,7 +41,7 @@ Matchers are graph objects that determine what user-defined functions run for a
41
41
42
42
The following example matcher evaluates to true on any sensor telemetry event with `"Temperature"` as its data type value. You can create multiple matchers on a user-defined function by making an authenticated HTTP POST request to:
43
43
44
-
```plaintext
44
+
```URL
45
45
YOUR_MANAGEMENT_API_URL/matchers
46
46
```
47
47
@@ -76,7 +76,7 @@ Creating a user-defined function involves making a multipart HTTP request to the
76
76
77
77
After the matchers are created, upload the function snippet with the following authenticated multipart HTTP POST request to:
78
78
79
-
```plaintext
79
+
```URL
80
80
YOUR_MANAGEMENT_API_URL/userdefinedfunctions
81
81
```
82
82
@@ -196,7 +196,7 @@ Create a role assignment for the user-defined function to run under. If no role
196
196
197
197
1.[Query the System API](./security-create-manage-role-assignments.md#retrieve-all-roles) for all roles to get the role ID you want to assign to your user-defined function. Do so by making an authenticated HTTP GET request to:
198
198
199
-
```plaintext
199
+
```URL
200
200
YOUR_MANAGEMENT_API_URL/system/roles
201
201
```
202
202
Keep the desired role ID. It will be passed as the JSON body attribute **roleId** (`YOUR_DESIRED_ROLE_IDENTIFIER`) below.
@@ -205,7 +205,7 @@ Create a role assignment for the user-defined function to run under. If no role
205
205
1. Find the value of **path** (`YOUR_ACCESS_CONTROL_PATH`) by querying your spaces with `fullpath`.
206
206
1. Copy the returned `spacePaths` value. You'll use that below. Make an authenticated HTTP GET request to:
@@ -215,7 +215,7 @@ Create a role assignment for the user-defined function to run under. If no role
215
215
216
216
1. Paste the returned `spacePaths` value into **path** to create a user-defined function role assignment by making an authenticated HTTP POST request to:
217
217
218
-
```plaintext
218
+
```URL
219
219
YOUR_MANAGEMENT_API_URL/roleassignments
220
220
```
221
221
With JSON body:
@@ -233,7 +233,7 @@ Create a role assignment for the user-defined function to run under. If no role
233
233
| --- | --- |
234
234
| YOUR_DESIRED_ROLE_IDENTIFIER | The identifier for the desired role |
235
235
| YOUR_USER_DEFINED_FUNCTION_ID | The ID for the user-defined function you want to use |
236
-
| YOUR_USER_DEFINED_FUNCTION_TYPE_ID | The ID specifying the user-defined function type |
236
+
| YOUR_USER_DEFINED_FUNCTION_TYPE_ID | The ID specifying the user-defined function type (`UserDefinedFunctionId`) |
237
237
| YOUR_ACCESS_CONTROL_PATH | The access control path |
0 commit comments