-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathallocate_prefixes-new-adapter.json
More file actions
46 lines (46 loc) · 1.13 KB
/
allocate_prefixes-new-adapter.json
File metadata and controls
46 lines (46 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"id": "Allocate Prefixes-2.0",
"name": "Allocate Prefixes",
"start": "Allocate",
"states": [
{
"end": true,
"name": "Allocate",
"type": "foreach",
"actions": [
{
"name": "Set Prefix",
"functionRef": {
"refName": "NETBOX.PostPrefixes",
"arguments": {
"input": {
"data": {
"prefix": "${.endpoint.ip}",
"description": "${.endpoint.des}"
}
},
"config": {
"resourceId": "netbox_lab"
}
},
"actionDataFilter": {
"results": "${ if (.data) then .data else { detail:\"not found\" } end }",
"toStateData": "${ .prefixRecord }"
}
}}
],
"iterationParam": "endpoint",
"inputCollection": "${ .endpoints }",
"outputCollection": "${ .prefixes }"
}
],
"version": "2.0",
"functions": [
{
"name": "NETBOX.PostPrefixes",
"operation": "netbox.oasx.v1.0.0.ipam.PostPrefixes"
}
],
"description": "",
"specVersion": "0.8"
}