-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulesoft-application-schema.json
More file actions
312 lines (312 loc) · 8.78 KB
/
Copy pathmulesoft-application-schema.json
File metadata and controls
312 lines (312 loc) · 8.78 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://anypoint.mulesoft.com/schemas/mulesoft/application.json",
"title": "MuleSoft Anypoint Application",
"description": "Schema for a Mule application deployed to the Anypoint Platform, including configuration for CloudHub, Runtime Fabric, and hybrid deployment targets.",
"type": "object",
"required": [
"domain",
"status"
],
"properties": {
"domain": {
"type": "string",
"description": "Unique domain name for the application, used as the subdomain in the CloudHub URL",
"pattern": "^[a-z0-9-]+$"
},
"fullDomain": {
"type": "string",
"description": "Full domain including the platform suffix (e.g., myapp.cloudhub.io)"
},
"status": {
"type": "string",
"description": "Current deployment status of the application",
"enum": [
"STARTED",
"STARTING",
"STOPPED",
"UNDEPLOYED",
"DEPLOYING",
"DEPLOY_FAILED",
"UPDATING"
]
},
"description": {
"type": "string",
"description": "Human-readable description of the application purpose and functionality"
},
"organizationId": {
"type": "string",
"format": "uuid",
"description": "Unique identifier of the organization that owns this application"
},
"environmentId": {
"type": "string",
"format": "uuid",
"description": "Unique identifier of the environment where this application is deployed"
},
"region": {
"type": "string",
"description": "Cloud region where the application is deployed",
"examples": [
"us-east-1",
"us-west-2",
"eu-west-1",
"eu-central-1",
"ap-southeast-1",
"ap-southeast-2",
"ap-northeast-1",
"ca-central-1",
"sa-east-1"
]
},
"muleVersion": {
"$ref": "#/$defs/MuleVersion"
},
"workers": {
"$ref": "#/$defs/WorkerConfig"
},
"deploymentTarget": {
"type": "string",
"description": "The target platform for deployment",
"enum": [
"cloudhub",
"cloudhub2",
"rtf",
"hybrid"
]
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Application properties passed as runtime configuration to the Mule runtime"
},
"secureProperties": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of property keys that are treated as secure and masked in the UI"
},
"lastUpdateTime": {
"type": "string",
"format": "date-time",
"description": "Timestamp of the last application update or redeployment"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the application was first created"
},
"fileName": {
"type": "string",
"description": "Name of the deployed application archive file (JAR or ZIP)"
},
"monitoringEnabled": {
"type": "boolean",
"description": "Whether Anypoint Monitoring is enabled for this application",
"default": true
},
"monitoringAutoRestart": {
"type": "boolean",
"description": "Whether the platform automatically restarts the application on failure",
"default": true
},
"staticIPsEnabled": {
"type": "boolean",
"description": "Whether static IP addresses are allocated to this application",
"default": false
},
"persistentQueues": {
"type": "boolean",
"description": "Whether persistent queues are enabled for reliable message processing",
"default": false
},
"persistentQueuesEncrypted": {
"type": "boolean",
"description": "Whether persistent queue data is encrypted at rest",
"default": false
},
"objectStoreV1": {
"type": "boolean",
"description": "Whether the application uses the legacy Object Store v1",
"default": false
},
"objectStoreV2": {
"type": "boolean",
"description": "Whether the application uses Object Store v2",
"default": true
},
"loggingNgEnabled": {
"type": "boolean",
"description": "Whether next-generation logging with Anypoint Monitoring is enabled",
"default": true
},
"trackingSettings": {
"$ref": "#/$defs/TrackingSettings"
},
"ipAddresses": {
"type": "array",
"items": {
"type": "string",
"format": "ipv4"
},
"description": "List of IP addresses assigned to the application workers"
},
"vpnConfig": {
"$ref": "#/$defs/VpnConfig"
},
"logLevels": {
"type": "array",
"items": {
"$ref": "#/$defs/LogLevel"
},
"description": "Custom log level configuration for application packages"
}
},
"$defs": {
"MuleVersion": {
"type": "object",
"description": "Mule runtime version information for the deployed application",
"required": [
"version"
],
"properties": {
"version": {
"type": "string",
"description": "Mule runtime version string (e.g., 4.6.0)",
"pattern": "^\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9]+)?$"
},
"updateId": {
"type": "string",
"description": "Runtime update identifier for patch-level updates"
},
"endOfSupportDate": {
"type": ["string", "null"],
"format": "date",
"description": "Date when this runtime version reaches end of support"
}
}
},
"WorkerConfig": {
"type": "object",
"description": "Worker configuration defining compute resources allocated to the application",
"required": [
"amount",
"type"
],
"properties": {
"amount": {
"type": "integer",
"description": "Number of worker instances running the application",
"minimum": 1,
"maximum": 8
},
"type": {
"type": "object",
"description": "Worker type defining the vCore allocation and memory",
"properties": {
"name": {
"type": "string",
"description": "Worker size name",
"enum": [
"Micro",
"Small",
"Medium",
"Large",
"xLarge",
"xxLarge",
"4xLarge"
]
},
"weight": {
"type": "number",
"description": "vCore weight of the worker type",
"enum": [
0.1,
0.2,
1,
2,
4,
8,
16
]
},
"cpu": {
"type": "string",
"description": "CPU allocation description"
},
"memory": {
"type": "string",
"description": "Memory allocation description (e.g., 500 MB, 1.5 GB)"
}
}
},
"remainingOrgWorkers": {
"type": "number",
"description": "Remaining vCore allocation available in the organization after this application"
}
}
},
"TrackingSettings": {
"type": "object",
"description": "Transaction tracking configuration for API analytics and debugging",
"properties": {
"trackingLevel": {
"type": "string",
"description": "Level of transaction tracking detail",
"enum": [
"DISABLED",
"API_ANALYTICS",
"DEBUG"
]
}
}
},
"VpnConfig": {
"type": "object",
"description": "VPN configuration for connecting the application to a private network",
"properties": {
"vpnId": {
"type": "string",
"description": "Unique identifier of the Anypoint VPN connection"
},
"vpcId": {
"type": "string",
"description": "Unique identifier of the Anypoint Virtual Private Cloud"
},
"vpcName": {
"type": "string",
"description": "Display name of the VPC"
}
}
},
"LogLevel": {
"type": "object",
"description": "Custom log level override for a specific package or class",
"required": [
"packageName",
"level"
],
"properties": {
"packageName": {
"type": "string",
"description": "Fully qualified Java package or class name"
},
"level": {
"type": "string",
"description": "Log level to apply",
"enum": [
"DEBUG",
"INFO",
"WARN",
"ERROR",
"OFF"
]
}
}
}
}
}