Repository navigation
Expand file tree
/
Copy pathzowe.schema.json
More file actions
616 lines (616 loc) · 35.9 KB
/
Copy pathzowe.schema.json
File metadata and controls
616 lines (616 loc) · 35.9 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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$version": "1.0",
"type": "object",
"description": "Zowe configuration",
"properties": {
"profiles": {
"type": "object",
"description": "Mapping of profile names to profile configurations",
"patternProperties": {
"^\\S*$": {
"type": "object",
"description": "Profile configuration object",
"properties": {
"type": {
"description": "Profile type",
"type": "string",
"enum": [
"zosmf",
"tso",
"ssh",
"rse",
"cics",
"zOpenDebug",
"base"
]
},
"properties": {
"description": "Profile properties object",
"type": "object"
},
"profiles": {
"description": "Optional subprofile configurations",
"type": "object",
"$ref": "#/properties/profiles"
},
"secure": {
"description": "Secure property names",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"allOf": [
{
"if": {
"properties": {
"type": false
}
},
"then": {
"properties": {
"properties": {
"title": "Missing profile type"
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "zosmf"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "z/OSMF Profile",
"description": "z/OSMF Profile",
"properties": {
"host": {
"type": "string",
"description": "The z/OSMF server host name."
},
"port": {
"type": "number",
"description": "The z/OSMF server port.",
"default": 443
},
"user": {
"type": "string",
"description": "Mainframe (z/OSMF) user name, which can be the same as your TSO login."
},
"password": {
"type": "string",
"description": "Mainframe (z/OSMF) password, which can be the same as your TSO password."
},
"rejectUnauthorized": {
"type": "boolean",
"description": "Reject self-signed certificates.",
"default": true
},
"certFile": {
"type": "string",
"description": "The file path to a certificate file to use for authentication"
},
"certKeyFile": {
"type": "string",
"description": "The file path to a certificate key file to use for authentication"
},
"certAccount": {
"type": "string",
"description": "The account name for PKCS 12 certificate stored in credential manager"
},
"basePath": {
"type": "string",
"description": "The base path for your API mediation layer instance. Specify this option to prepend the base path to all z/OSMF resources when making REST requests. Do not specify this option if you are not using an API mediation layer."
},
"protocol": {
"type": "string",
"description": "The protocol used (HTTP or HTTPS)",
"default": "https",
"enum": [
"http",
"https"
]
},
"encoding": {
"type": "string",
"description": "The encoding for download and upload of z/OS data set and USS files. The default encoding if not specified is IBM-1047."
},
"responseTimeout": {
"type": "number",
"description": "The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600"
}
},
"required": []
},
"secure": {
"items": {
"enum": [
"user",
"password"
]
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "tso"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "TSO Profile",
"description": "z/OS TSO/E User Profile",
"properties": {
"account": {
"type": "string",
"description": "Your z/OS TSO/E accounting information."
},
"characterSet": {
"type": "string",
"description": "Character set for address space to convert messages and responses from UTF-8 to EBCDIC.",
"default": "697"
},
"codePage": {
"type": "string",
"description": "Codepage value for TSO/E address space to convert messages and responses from UTF-8 to EBCDIC.",
"default": "1047"
},
"columns": {
"type": "number",
"description": "The number of columns on a screen.",
"default": 80
},
"logonProcedure": {
"type": "string",
"description": "The logon procedure to use when creating TSO procedures on your behalf.",
"default": "IZUFPROC"
},
"regionSize": {
"type": "number",
"description": "Region size for the TSO/E address space.",
"default": 4096
},
"rows": {
"type": "number",
"description": "The number of rows on a screen.",
"default": 24
}
},
"required": []
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "ssh"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "z/OS SSH Profile",
"description": "z/OS SSH Profile",
"properties": {
"host": {
"type": "string",
"description": "The z/OS SSH server host name."
},
"port": {
"type": "number",
"description": "The z/OS SSH server port.",
"default": 22
},
"user": {
"type": "string",
"description": "Mainframe user name, which can be the same as your TSO login."
},
"password": {
"type": "string",
"description": "Mainframe password, which can be the same as your TSO password."
},
"privateKey": {
"type": "string",
"description": "Path to a file containing your private key, that must match a public key stored in the server for authentication"
},
"keyPassphrase": {
"type": "string",
"description": "Private key passphrase, which unlocks the private key."
},
"handshakeTimeout": {
"type": "number",
"description": "How long in milliseconds to wait for the SSH handshake to complete."
}
},
"required": []
},
"secure": {
"items": {
"enum": [
"user",
"password",
"keyPassphrase"
]
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "rse"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "IBM RSE API Zowe Profile",
"description": "A profile to issue commands to a z/OS system with a working Zowe REST server,Mediation Layer, or IBM RSE (Remote System Explorer) API server installation.",
"properties": {
"host": {
"type": "string",
"description": "The z/OS host name running the Zowe REST API."
},
"port": {
"type": "number",
"description": "The server port used by the REST API.",
"default": 6800
},
"user": {
"type": "string",
"description": "The user name for the Zowe REST API operations."
},
"password": {
"type": "string",
"description": "The password of the user for the Zowe REST API operations."
},
"rejectUnauthorized": {
"type": "boolean",
"description": "Reject self-signed certificates.",
"default": true
},
"basePath": {
"type": "string",
"description": "The base path of the API for the REST API operations.",
"default": "rseapi"
},
"protocol": {
"type": "string",
"description": "Only HTTPS supported for a TLS handshake to access REST API.",
"default": "https",
"enum": [
"https"
]
},
"encoding": {
"type": "string",
"description": "The encoding for download and upload of z/OS data set and USS files. The encoding should be specified in the form of \"IBM-1047\"."
},
"tokenType": {
"type": "string",
"description": "JWT type assigned to profile when \"zowe rse auth login\" is used for authentication."
},
"tokenValue": {
"type": "string",
"description": "JWT value assigned to profile when \"zowe rse auth login\" is used for authentication."
},
"tokenExpiration": {
"type": "string",
"description": "JWT expiration assigned to profile when \"zowe rse auth login\" is used for authentication."
}
},
"required": []
},
"secure": {
"items": {
"enum": [
"user",
"password",
"tokenValue"
]
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "cics"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "CICS Profile",
"description": "A cics profile is required to issue commands in the cics command group that interact with CICS regions. The cics profile contains your host, port, user name, and password for the IBM CICS management client interface (CMCI) server of your choice.",
"properties": {
"host": {
"type": "string",
"description": "The CMCI server host name"
},
"port": {
"type": "number",
"description": "The CMCI server port",
"default": 1490
},
"user": {
"type": "string",
"description": "Your username to connect to CICS"
},
"password": {
"type": "string",
"description": "Your password to connect to CICS"
},
"regionName": {
"type": "string",
"description": "The name of the CICS region name to interact with"
},
"cicsPlex": {
"type": "string",
"description": "The name of the CICSPlex to interact with"
},
"rejectUnauthorized": {
"type": "boolean",
"description": "Reject self-signed certificates.",
"default": true
},
"protocol": {
"type": "string",
"description": "Specifies CMCI protocol (http or https).",
"default": "https",
"enum": [
"http",
"https"
]
}
},
"required": []
},
"secure": {
"items": {
"enum": [
"user",
"password"
]
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "zOpenDebug"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "Zowe Z Open Debug Profile",
"description": "Zowe Profile to use IBM z/OS Debugger",
"properties": {
"host": {
"type": "string",
"description": "The z/OS host name you are running the debugger against."
},
"dpsPort": {
"type": "number",
"description": "The port that Debug Profile Service is running on.",
"default": 8143
},
"dpsContextRoot": {
"type": "string",
"description": "The context root for Debug Profile Service",
"default": "api/v1"
},
"dpsSecured": {
"type": "boolean",
"description": "Is Debug Profile Service running securely?",
"default": true
},
"rdsPort": {
"type": "number",
"description": "The port that Remote Debug Service is running on. If the rdsPort is undefined, Z Open Debug will attempt to automatically discover it",
"default": 8001
},
"rdsSecured": {
"type": "boolean",
"description": "Is Remote Debug Service running securely?",
"default": true
},
"rejectUnauthorized": {
"type": "boolean",
"description": "Reject self-signed certificates",
"default": true
},
"uuid": {
"type": "string",
"description": "unique id for profile. This value is generated programatically and should not be changed. Doing so may cause unexpected behaviour."
},
"tokenValue": {
"type": "string",
"description": "The token value used for multi factored authentication"
},
"user": {
"type": "string"
},
"password": {
"type": "string"
},
"authenticationType": {
"type": "string",
"description": "How authentication is performed with Debug Profile Service. Supports either 'basic' or 'token' authentication.",
"default": "token",
"enum": [
"basic",
"token"
]
},
"ccsPort": {
"type": "number",
"description": "The port for the Code Coverage Service. If specified, this will override the port returned from the Attach request. This is useful when the external port differs from the internal port."
},
"ccsSecured": {
"type": "boolean",
"description": "Is Code Coverage Service running securely? If specified, this will override the default security setting."
}
}
},
"secure": {
"items": {
"enum": [
"tokenValue",
"user",
"password"
]
}
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "base"
}
}
},
"then": {
"properties": {
"properties": {
"type": "object",
"title": "Base Profile",
"description": "Base profile that stores values shared by multiple service profiles",
"properties": {
"host": {
"type": "string",
"description": "Host name of service on the mainframe."
},
"port": {
"type": "number",
"description": "Port number of service on the mainframe."
},
"user": {
"type": "string",
"description": "User name to authenticate to service on the mainframe."
},
"password": {
"type": "string",
"description": "Password to authenticate to service on the mainframe."
},
"rejectUnauthorized": {
"type": "boolean",
"description": "Reject self-signed certificates.",
"default": true
},
"tokenType": {
"type": "string",
"description": "The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'."
},
"tokenValue": {
"type": "string",
"description": "The value of the token to pass to the API."
},
"certFile": {
"type": "string",
"description": "The file path to a certificate file to use for authentication.\n\nNote: The CLI does not support certificate files that require a password. For more information, search Troubleshooting PEM Certificates in Zowe Docs."
},
"certKeyFile": {
"type": "string",
"description": "The file path to a certificate key file to use for authentication"
},
"certAccount": {
"type": "string",
"description": "The account name for PKCS 12 certificate stored in credential manager"
}
},
"required": []
},
"secure": {
"items": {
"enum": [
"user",
"password",
"tokenValue"
]
}
}
}
}
}
]
}
}
},
"defaults": {
"type": "object",
"description": "Mapping of profile types to default profile names",
"properties": {
"zosmf": {
"description": "Default zosmf profile",
"type": "string"
},
"tso": {
"description": "Default tso profile",
"type": "string"
},
"ssh": {
"description": "Default ssh profile",
"type": "string"
},
"rse": {
"description": "Default rse profile",
"type": "string"
},
"cics": {
"description": "Default cics profile",
"type": "string"
},
"zOpenDebug": {
"description": "Default zOpenDebug profile",
"type": "string"
},
"base": {
"description": "Default base profile",
"type": "string"
}
}
},
"autoStore": {
"type": "boolean",
"description": "If true, values you enter when prompted are stored for future use"
}
}
}