-
Notifications
You must be signed in to change notification settings - Fork 1
/
createUIDefinition.json
81 lines (81 loc) · 2.36 KB
/
createUIDefinition.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"config": {
"isWizard": false,
"basics": {}
},
"basics": [],
"steps": [
{
"name": "clusterDetails",
"label": "Cluster Details",
"elements": [
{
"name": "existingClusterSection",
"type": "Microsoft.Common.Section",
"elements": [
{
"name": "clusterLookupControl",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(subscription().id, '/resourcegroups/', resourceGroup().name, '/providers/Microsoft.ContainerService/managedClusters?api-version=2022-03-01')]"
}
},
{
"name": "existingClusterResourceName",
"type": "Microsoft.Common.DropDown",
"label": "AKS Cluster Name",
"toolTip": "AKS Cluster Resource Name",
"constraints": {
"allowedValues": "[map(steps('clusterDetails').existingClusterSection.clusterLookupControl.value, (item) => parse(concat('{\"label\":\"', item.name, '\",\"value\":\"', item.name, '\"}')))]",
"required": true
}
}
]
}
]
},
{
"name": "extensionDetails",
"label": "Cluster Extension Details",
"elements": [
{
"name": "clientId",
"type": "Microsoft.Common.TextBox",
"label": "Buoyant Cloud Client ID",
"defaultValue": "",
"toolTip": "Please provide your Buoyant Cloud Client ID",
"constraints": {
"required": true,
"regex": "^.*$",
"validationMessage": "client ID required"
},
"visible": true
},
{
"name": "clientSecret",
"type": "Microsoft.Common.TextBox",
"label": "Buoyant Cloud Client Secret",
"defaultValue": "",
"toolTip": "Please provide your client secret",
"constraints": {
"required": true,
"regex": "^.*$",
"validationMessage": "client secret required"
},
"visible": true
}
]
}
],
"outputs": {
"clusterResourceName": "[steps('clusterDetails').existingClusterSection.existingClusterResourceName]",
"clientId" : "[steps('extensionDetails').clientId]",
"clientSecret" : "[steps('extensionDetails').clientSecret]"
}
}
}