/
Workflow_CreateOrUpdate.json
146 lines (146 loc) · 5.13 KB
/
Workflow_CreateOrUpdate.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"parameters": {
"api-version": "2022-10-11-preview",
"subscriptionId": "subscriptionId1",
"resourceGroupName": "resourceGroup1",
"workflowName": "workflow1",
"parameters": {
"location": "location1",
"tags": {
"appname": "testApp"
},
"properties": {
"githubWorkflowProfile": {
"repositoryOwner": "owner1",
"repositoryName": "repo1",
"branchName": "branch1",
"dockerfile": "repo1/images/Dockerfile",
"dockerBuildContext": "repo1/src/",
"deploymentProperties": {
"manifestType": "kube",
"kubeManifestLocations": [
"/src/manifests/"
],
"overrides": {
"key1": "value1"
}
},
"namespace": "namespace1",
"acr": {
"acrSubscriptionId": "subscriptionId1",
"acrResourceGroup": "resourceGroup1",
"acrRegistryName": "registry1",
"acrRepositoryName": "repo1"
},
"oidcCredentials": {
"azureClientId": "12345678-3456-7890-5678-012345678901",
"azureTenantId": "66666666-3456-7890-5678-012345678901"
},
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1",
"location": "location1",
"name": "workflow1",
"type": "Micfosoft.DevHub/Workflow",
"tags": {
"appname": "testapp"
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"properties": {
"githubWorkflowProfile": {
"repositoryOwner": "owner1",
"repositoryName": "repo2",
"branchName": "branch2",
"dockerfile": "repo2/images/Dockerfile",
"dockerBuildContext": "repo2/src/",
"deploymentProperties": {
"manifestType": "helm",
"helmChartPath": "/src/charts",
"helmValues": "/src/chars/values.yaml",
"overrides": {
"key1": "value1"
}
},
"acr": {
"acrSubscriptionId": "subscriptionId1",
"acrResourceGroup": "resourceGroup1",
"acrRegistryName": "registry1",
"acrRepositoryName": "repo1"
},
"oidcCredentials": {
"azureClientId": "12345678-3456-7890-5678-012345678901",
"azureTenantId": "66666666-3456-7890-5678-012345678901"
},
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
"prURL": "https://github.com/User/repo2/pull/6567",
"pullNumber": 6567,
"prStatus": "submitted",
"authStatus": "Authorized"
}
}
}
},
"201": {
"body": {
"id": "/subscription/subscriptionId1/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/workflow/workflow1",
"location": "location1",
"name": "workflow1",
"type": "Micfosoft.DevHub/Workflow",
"tags": {
"appname": "testapp"
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"properties": {
"githubWorkflowProfile": {
"repositoryOwner": "owner1",
"repositoryName": "repo1",
"branchName": "branch1",
"dockerfile": "repo1/images/Dockerfile",
"dockerBuildContext": "repo1/src/",
"deploymentProperties": {
"manifestType": "kube",
"overrides": {
"key1": "value1"
}
},
"acr": {
"acrSubscriptionId": "subscriptionId1",
"acrResourceGroup": "resourceGroup1",
"acrRegistryName": "registry1",
"acrRepositoryName": "repo1"
},
"oidcCredentials": {
"azureClientId": "12345678-3456-7890-5678-012345678901",
"azureTenantId": "66666666-3456-7890-5678-012345678901"
},
"aksResourceId": "/subscriptions/subscriptionId1/resourcegroups/resourceGroup1/providers/Microsoft.ContainerService/managedClusters/cluster1",
"prURL": "https://github.com/owner1/repo1/pull/6567",
"pullNumber": 6567,
"prStatus": "submitted",
"authStatus": "Authorized"
}
}
}
}
}
}