@dishantlangayan/solace-cloud-cli 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +214 -145
  2. package/dist/commands/account/list.d.ts +10 -0
  3. package/dist/commands/account/list.js +36 -0
  4. package/dist/commands/account/login.d.ts +43 -0
  5. package/dist/commands/account/login.js +231 -0
  6. package/dist/commands/account/logout.d.ts +15 -0
  7. package/dist/commands/account/logout.js +113 -0
  8. package/dist/commands/missionctrl/broker/create.d.ts +2 -0
  9. package/dist/commands/missionctrl/broker/create.js +15 -2
  10. package/dist/commands/missionctrl/broker/delete.d.ts +2 -0
  11. package/dist/commands/missionctrl/broker/delete.js +15 -2
  12. package/dist/commands/missionctrl/broker/display.d.ts +2 -0
  13. package/dist/commands/missionctrl/broker/display.js +18 -3
  14. package/dist/commands/missionctrl/broker/list.d.ts +2 -0
  15. package/dist/commands/missionctrl/broker/list.js +15 -5
  16. package/dist/commands/missionctrl/broker/opstatus.d.ts +2 -0
  17. package/dist/commands/missionctrl/broker/opstatus.js +15 -2
  18. package/dist/commands/missionctrl/broker/state.d.ts +2 -0
  19. package/dist/commands/missionctrl/broker/state.js +15 -2
  20. package/dist/commands/missionctrl/broker/update.d.ts +2 -0
  21. package/dist/commands/missionctrl/broker/update.js +15 -3
  22. package/dist/commands/platform/env/create.d.ts +2 -0
  23. package/dist/commands/platform/env/create.js +16 -3
  24. package/dist/commands/platform/env/delete.d.ts +2 -0
  25. package/dist/commands/platform/env/delete.js +15 -2
  26. package/dist/commands/platform/env/display.d.ts +2 -0
  27. package/dist/commands/platform/env/display.js +15 -2
  28. package/dist/commands/platform/env/list.d.ts +2 -0
  29. package/dist/commands/platform/env/list.js +15 -3
  30. package/dist/commands/platform/env/update.d.ts +2 -0
  31. package/dist/commands/platform/env/update.js +16 -3
  32. package/dist/lib/org-utils.d.ts +24 -0
  33. package/dist/lib/org-utils.js +73 -0
  34. package/oclif.manifest.json +727 -224
  35. package/package.json +3 -3
  36. package/dist/config/env-vars.d.ts +0 -44
  37. package/dist/config/env-vars.js +0 -47
@@ -1,11 +1,64 @@
1
1
  {
2
2
  "commands": {
3
- "missionctrl:broker:create": {
3
+ "account:list": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Create an event broker service. You must provide a unique name and select a service class and datacenter. You can optionally define other properties for the event broker service.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:post` ]",
6
+ "description": "List all authenticated organizations.\n\nDisplays organizations you have logged into, including their aliases and which one is set as default.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ },
18
+ "log-level": {
19
+ "helpGroup": "GLOBAL",
20
+ "name": "log-level",
21
+ "summary": "Specify level for logging.",
22
+ "default": "info",
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "options": [
26
+ "debug",
27
+ "warn",
28
+ "error",
29
+ "info",
30
+ "trace"
31
+ ],
32
+ "type": "option"
33
+ }
34
+ },
35
+ "hasDynamicHelp": false,
36
+ "hiddenAliases": [],
37
+ "id": "account:list",
38
+ "pluginAlias": "@dishantlangayan/solace-cloud-cli",
39
+ "pluginName": "@dishantlangayan/solace-cloud-cli",
40
+ "pluginType": "core",
41
+ "strict": true,
42
+ "enableJsonFlag": true,
43
+ "isESM": true,
44
+ "relativePath": [
45
+ "dist",
46
+ "commands",
47
+ "account",
48
+ "list.js"
49
+ ]
50
+ },
51
+ "account:login": {
52
+ "aliases": [],
53
+ "args": {},
54
+ "description": "Login to a Solace Cloud organization.\n\nStores organization credentials securely using OS keychain.\nThe access token is encrypted and stored locally.\n\nYou can store multiple access tokens for the same organization by using unique aliases.\nWithout an alias, only one token per organization ID is allowed.\n\nRequired token permissions: Varies by operations you intend to perform",
7
55
  "examples": [
8
- "<%= config.bin %> <%= command.id %> --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER"
56
+ "<%= config.bin %> <%= command.id %> --org=my-org-id",
57
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --alias=production",
58
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --alias=staging",
59
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --set-default",
60
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --no-prompt",
61
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --base-url=https://api.custom.solace.cloud"
9
62
  ],
10
63
  "flags": {
11
64
  "json": {
@@ -31,75 +84,220 @@
31
84
  ],
32
85
  "type": "option"
33
86
  },
34
- "datacenter-id": {
35
- "char": "d",
36
- "description": "The identifier of the datacenter.",
37
- "name": "datacenter-id",
87
+ "alias": {
88
+ "char": "a",
89
+ "description": "Alias name for this organization (allows storing multiple tokens for the same org with different aliases)",
90
+ "name": "alias",
91
+ "hasDynamicHelp": false,
92
+ "multiple": false,
93
+ "type": "option"
94
+ },
95
+ "api-version": {
96
+ "description": "API version to use (optional)",
97
+ "name": "api-version",
98
+ "hasDynamicHelp": false,
99
+ "multiple": false,
100
+ "type": "option"
101
+ },
102
+ "base-url": {
103
+ "description": "Custom base URL for Solace Cloud API (optional)",
104
+ "name": "base-url",
105
+ "hasDynamicHelp": false,
106
+ "multiple": false,
107
+ "type": "option"
108
+ },
109
+ "no-prompt": {
110
+ "description": "Read access token from SC_ACCESS_TOKEN environment variable instead of prompting",
111
+ "name": "no-prompt",
112
+ "allowNo": false,
113
+ "type": "boolean"
114
+ },
115
+ "org": {
116
+ "char": "o",
117
+ "description": "Organization ID to login to",
118
+ "name": "org",
38
119
  "required": true,
39
120
  "hasDynamicHelp": false,
40
121
  "multiple": false,
41
122
  "type": "option"
42
123
  },
43
- "env-name": {
44
- "char": "e",
45
- "description": "The name of the environment environment where you want to create the service. \n You can only specify an environment identifier when creating services in a Public Region. \n You cannot specify an environment identifier when creating a service in a Dedicated Region. \n If no name is provided, the service will be created in the default environment.",
46
- "name": "env-name",
124
+ "set-default": {
125
+ "char": "d",
126
+ "description": "Set this organization as the default",
127
+ "name": "set-default",
128
+ "allowNo": false,
129
+ "type": "boolean"
130
+ }
131
+ },
132
+ "hasDynamicHelp": false,
133
+ "hiddenAliases": [],
134
+ "id": "account:login",
135
+ "pluginAlias": "@dishantlangayan/solace-cloud-cli",
136
+ "pluginName": "@dishantlangayan/solace-cloud-cli",
137
+ "pluginType": "core",
138
+ "strict": true,
139
+ "enableJsonFlag": true,
140
+ "isESM": true,
141
+ "relativePath": [
142
+ "dist",
143
+ "commands",
144
+ "account",
145
+ "login.js"
146
+ ]
147
+ },
148
+ "account:logout": {
149
+ "aliases": [],
150
+ "args": {},
151
+ "description": "Logout from authenticated organizations.\n\nRemoves locally stored organization credentials and access tokens.\nInteractive mode allows selection with arrow keys and spacebar.",
152
+ "examples": [
153
+ "<%= config.bin %> <%= command.id %>",
154
+ "<%= config.bin %> <%= command.id %> --org=my-org-id",
155
+ "<%= config.bin %> <%= command.id %> --org=production",
156
+ "<%= config.bin %> <%= command.id %> --all",
157
+ "<%= config.bin %> <%= command.id %> --org=my-org-id --no-prompt"
158
+ ],
159
+ "flags": {
160
+ "json": {
161
+ "description": "Format output as json.",
162
+ "helpGroup": "GLOBAL",
163
+ "name": "json",
164
+ "allowNo": false,
165
+ "type": "boolean"
166
+ },
167
+ "log-level": {
168
+ "helpGroup": "GLOBAL",
169
+ "name": "log-level",
170
+ "summary": "Specify level for logging.",
171
+ "default": "info",
47
172
  "hasDynamicHelp": false,
48
173
  "multiple": false,
174
+ "options": [
175
+ "debug",
176
+ "warn",
177
+ "error",
178
+ "info",
179
+ "trace"
180
+ ],
49
181
  "type": "option"
50
182
  },
51
- "locked": {
52
- "char": "l",
53
- "description": "Indicates if you can delete the event broker service after creating it. The default value is false.",
54
- "name": "locked",
183
+ "all": {
184
+ "char": "a",
185
+ "description": "Logout of all organizations",
186
+ "name": "all",
55
187
  "allowNo": false,
56
188
  "type": "boolean"
57
189
  },
58
- "max-spool-usage": {
59
- "char": "s",
60
- "description": "The message spool size, in gigabytes (GB). A default message spool size is provided if this is not specified.",
61
- "name": "max-spool-usage",
190
+ "no-prompt": {
191
+ "description": "Skip confirmation prompt and assume Yes",
192
+ "name": "no-prompt",
193
+ "allowNo": false,
194
+ "type": "boolean"
195
+ },
196
+ "org": {
197
+ "char": "o",
198
+ "description": "Organization ID or alias to logout from",
199
+ "name": "org",
62
200
  "hasDynamicHelp": false,
63
201
  "multiple": false,
64
202
  "type": "option"
203
+ }
204
+ },
205
+ "hasDynamicHelp": false,
206
+ "hiddenAliases": [],
207
+ "id": "account:logout",
208
+ "pluginAlias": "@dishantlangayan/solace-cloud-cli",
209
+ "pluginName": "@dishantlangayan/solace-cloud-cli",
210
+ "pluginType": "core",
211
+ "strict": true,
212
+ "enableJsonFlag": true,
213
+ "isESM": true,
214
+ "relativePath": [
215
+ "dist",
216
+ "commands",
217
+ "account",
218
+ "logout.js"
219
+ ]
220
+ },
221
+ "platform:env:create": {
222
+ "aliases": [],
223
+ "args": {},
224
+ "description": "Create a new environment.\n\n Token Permissions: [ environments:edit ]",
225
+ "examples": [
226
+ "<%= config.bin %> <%= command.id %> --name=MyEnvironment",
227
+ "<%= config.bin %> <%= command.id %> --org=my-org --name=MyEnvironment --description=\"My environment description\" --isDefault --isProduction",
228
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyEnvironment --isDefault"
229
+ ],
230
+ "flags": {
231
+ "json": {
232
+ "description": "Format output as json.",
233
+ "helpGroup": "GLOBAL",
234
+ "name": "json",
235
+ "allowNo": false,
236
+ "type": "boolean"
65
237
  },
66
- "msg-vpn-name": {
67
- "char": "m",
68
- "description": "The message VPN name. A default message VPN name is provided when this is not specified.",
69
- "name": "msg-vpn-name",
238
+ "log-level": {
239
+ "helpGroup": "GLOBAL",
240
+ "name": "log-level",
241
+ "summary": "Specify level for logging.",
242
+ "default": "info",
70
243
  "hasDynamicHelp": false,
71
244
  "multiple": false,
245
+ "options": [
246
+ "debug",
247
+ "warn",
248
+ "error",
249
+ "info",
250
+ "trace"
251
+ ],
72
252
  "type": "option"
73
253
  },
74
- "name": {
75
- "char": "n",
76
- "description": "Name of the event broker service to create.",
77
- "name": "name",
78
- "required": true,
254
+ "alias": {
255
+ "char": "a",
256
+ "description": "Organization alias to use. If not specified, uses the default organization.",
257
+ "exclusive": [
258
+ "org"
259
+ ],
260
+ "name": "alias",
79
261
  "hasDynamicHelp": false,
80
262
  "multiple": false,
81
263
  "type": "option"
82
264
  },
83
- "redundancy-group-ssl-enabled": {
84
- "char": "r",
85
- "description": "Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)",
86
- "name": "redundancy-group-ssl-enabled",
265
+ "description": {
266
+ "char": "d",
267
+ "description": "Description of the environment to create.",
268
+ "name": "description",
269
+ "hasDynamicHelp": false,
270
+ "multiple": false,
271
+ "type": "option"
272
+ },
273
+ "isDefault": {
274
+ "description": "Indicates this is the organization's default environment.",
275
+ "name": "isDefault",
87
276
  "allowNo": false,
88
277
  "type": "boolean"
89
278
  },
90
- "service-class-id": {
91
- "char": "c",
92
- "description": "Supported service classes.",
93
- "name": "service-class-id",
279
+ "isProduction": {
280
+ "description": "Indicates this is an organization's production environment. \n This is an immutable field. If an environment needs to be migrated, \n architecture can be migrated to a new environment with the desired \n environment type instead.",
281
+ "name": "isProduction",
282
+ "allowNo": false,
283
+ "type": "boolean"
284
+ },
285
+ "name": {
286
+ "char": "n",
287
+ "description": "Name of the environment to create.",
288
+ "name": "name",
94
289
  "required": true,
95
290
  "hasDynamicHelp": false,
96
291
  "multiple": false,
97
292
  "type": "option"
98
293
  },
99
- "version": {
100
- "char": "v",
101
- "description": "The event broker version. A default version is provided when this is not specified.",
102
- "name": "version",
294
+ "org": {
295
+ "char": "o",
296
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
297
+ "exclusive": [
298
+ "alias"
299
+ ],
300
+ "name": "org",
103
301
  "hasDynamicHelp": false,
104
302
  "multiple": false,
105
303
  "type": "option"
@@ -107,7 +305,7 @@
107
305
  },
108
306
  "hasDynamicHelp": false,
109
307
  "hiddenAliases": [],
110
- "id": "missionctrl:broker:create",
308
+ "id": "platform:env:create",
111
309
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
112
310
  "pluginName": "@dishantlangayan/solace-cloud-cli",
113
311
  "pluginType": "core",
@@ -117,18 +315,20 @@
117
315
  "relativePath": [
118
316
  "dist",
119
317
  "commands",
120
- "missionctrl",
121
- "broker",
318
+ "platform",
319
+ "env",
122
320
  "create.js"
123
321
  ]
124
322
  },
125
- "missionctrl:broker:delete": {
323
+ "platform:env:delete": {
126
324
  "aliases": [],
127
325
  "args": {},
128
- "description": "Delete a service using its unique identifier.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:delete` **or** `services:delete:self` **or** `mission_control:access` ]",
326
+ "description": "Delete an environment using either its name or unique identifier. The default environment cannot be deleted.\n\n Token Permissions: [ environments:edit ]",
129
327
  "examples": [
130
- "<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId",
131
- "<%= config.bin %> <%= command.id %> --name=MyBrokerName"
328
+ "<%= config.bin %> <%= command.id %> --name=MyEnvName",
329
+ "<%= config.bin %> <%= command.id %> --env-id=MyEnvId",
330
+ "<%= config.bin %> <%= command.id %> --org=my-org --name=MyEnvName",
331
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyEnvName"
132
332
  ],
133
333
  "flags": {
134
334
  "json": {
@@ -154,26 +354,48 @@
154
354
  ],
155
355
  "type": "option"
156
356
  },
157
- "broker-id": {
158
- "char": "b",
159
- "description": "Id of the event broker service.",
160
- "name": "broker-id",
357
+ "alias": {
358
+ "char": "a",
359
+ "description": "Organization alias to use. If not specified, uses the default organization.",
360
+ "exclusive": [
361
+ "org"
362
+ ],
363
+ "name": "alias",
364
+ "hasDynamicHelp": false,
365
+ "multiple": false,
366
+ "type": "option"
367
+ },
368
+ "env-id": {
369
+ "char": "e",
370
+ "description": "Id of the environment.",
371
+ "name": "env-id",
161
372
  "hasDynamicHelp": false,
162
373
  "multiple": false,
163
374
  "type": "option"
164
375
  },
165
376
  "name": {
166
377
  "char": "n",
167
- "description": "Name of the event broker service.",
378
+ "description": "Name of the environment.",
168
379
  "name": "name",
169
380
  "hasDynamicHelp": false,
170
381
  "multiple": false,
171
382
  "type": "option"
383
+ },
384
+ "org": {
385
+ "char": "o",
386
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
387
+ "exclusive": [
388
+ "alias"
389
+ ],
390
+ "name": "org",
391
+ "hasDynamicHelp": false,
392
+ "multiple": false,
393
+ "type": "option"
172
394
  }
173
395
  },
174
396
  "hasDynamicHelp": false,
175
397
  "hiddenAliases": [],
176
- "id": "missionctrl:broker:delete",
398
+ "id": "platform:env:delete",
177
399
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
178
400
  "pluginName": "@dishantlangayan/solace-cloud-cli",
179
401
  "pluginType": "core",
@@ -183,17 +405,20 @@
183
405
  "relativePath": [
184
406
  "dist",
185
407
  "commands",
186
- "missionctrl",
187
- "broker",
408
+ "platform",
409
+ "env",
188
410
  "delete.js"
189
411
  ]
190
412
  },
191
- "missionctrl:broker:display": {
413
+ "platform:env:display": {
192
414
  "aliases": [],
193
415
  "args": {},
194
- "description": "Get the details of an event broker service using its identifier or name.\n \n Use either the Event Broker's ID (--broker-id) or name of the Event Broker (--name).\n \n Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
416
+ "description": "Display information about an Environment.\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Required token permissions: [ environments:view ]",
195
417
  "examples": [
196
- "<%= config.bin %> <%= command.id %>"
418
+ "<%= config.bin %> <%= command.id %> --name=MyEnvName",
419
+ "<%= config.bin %> <%= command.id %> --env-id=MyEnvId",
420
+ "<%= config.bin %> <%= command.id %> --org=my-org --env-id=MyEnvId",
421
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyEnvName"
197
422
  ],
198
423
  "flags": {
199
424
  "json": {
@@ -219,26 +444,48 @@
219
444
  ],
220
445
  "type": "option"
221
446
  },
222
- "broker-id": {
223
- "char": "b",
224
- "description": "Id of the event broker service.",
225
- "name": "broker-id",
447
+ "alias": {
448
+ "char": "a",
449
+ "description": "Organization alias to use. If not specified, uses the default organization.",
450
+ "exclusive": [
451
+ "org"
452
+ ],
453
+ "name": "alias",
454
+ "hasDynamicHelp": false,
455
+ "multiple": false,
456
+ "type": "option"
457
+ },
458
+ "env-id": {
459
+ "char": "e",
460
+ "description": "Id of the environment.",
461
+ "name": "env-id",
226
462
  "hasDynamicHelp": false,
227
463
  "multiple": false,
228
464
  "type": "option"
229
465
  },
230
466
  "name": {
231
467
  "char": "n",
232
- "description": "Name of the event broker service.",
468
+ "description": "Name of the environment.",
233
469
  "name": "name",
234
470
  "hasDynamicHelp": false,
235
471
  "multiple": false,
236
472
  "type": "option"
473
+ },
474
+ "org": {
475
+ "char": "o",
476
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
477
+ "exclusive": [
478
+ "alias"
479
+ ],
480
+ "name": "org",
481
+ "hasDynamicHelp": false,
482
+ "multiple": false,
483
+ "type": "option"
237
484
  }
238
485
  },
239
486
  "hasDynamicHelp": false,
240
487
  "hiddenAliases": [],
241
- "id": "missionctrl:broker:display",
488
+ "id": "platform:env:display",
242
489
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
243
490
  "pluginName": "@dishantlangayan/solace-cloud-cli",
244
491
  "pluginType": "core",
@@ -248,18 +495,19 @@
248
495
  "relativePath": [
249
496
  "dist",
250
497
  "commands",
251
- "missionctrl",
252
- "broker",
498
+ "platform",
499
+ "env",
253
500
  "display.js"
254
501
  ]
255
502
  },
256
- "missionctrl:broker:list": {
503
+ "platform:env:list": {
257
504
  "aliases": [],
258
505
  "args": {},
259
- "description": "Get a listing of event broker services.\n\nThe maximum number of objects that can be returned in a single page is 100. Default is 10.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
506
+ "description": "Get a list of all Environments. \n \n Required token permissions: [ environments:view ]",
260
507
  "examples": [
261
508
  "<%= config.bin %> <%= command.id %>",
262
- "<%= config.bin %> <%= command.id %> --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc"
509
+ "<%= config.bin %> <%= command.id %> --org=my-org",
510
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC"
263
511
  ],
264
512
  "flags": {
265
513
  "json": {
@@ -285,30 +533,54 @@
285
533
  ],
286
534
  "type": "option"
287
535
  },
536
+ "alias": {
537
+ "char": "a",
538
+ "description": "Organization alias to use. If not specified, uses the default organization.",
539
+ "exclusive": [
540
+ "org"
541
+ ],
542
+ "name": "alias",
543
+ "hasDynamicHelp": false,
544
+ "multiple": false,
545
+ "type": "option"
546
+ },
288
547
  "name": {
289
548
  "char": "n",
290
- "description": "Name of the event broker service to match on.",
549
+ "description": "Name of the environment to match on.",
291
550
  "name": "name",
292
551
  "hasDynamicHelp": false,
293
552
  "multiple": false,
294
553
  "type": "option"
295
554
  },
555
+ "org": {
556
+ "char": "o",
557
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
558
+ "exclusive": [
559
+ "alias"
560
+ ],
561
+ "name": "org",
562
+ "hasDynamicHelp": false,
563
+ "multiple": false,
564
+ "type": "option"
565
+ },
296
566
  "pageNumber": {
297
- "description": "The page number to get. Defaults to 1",
567
+ "char": "p",
568
+ "description": "The page number to get. Defaults to 10",
298
569
  "name": "pageNumber",
299
570
  "hasDynamicHelp": false,
300
571
  "multiple": false,
301
572
  "type": "option"
302
573
  },
303
574
  "pageSize": {
304
- "description": "The number of event broker services to return per page. Defaults to 10",
575
+ "char": "s",
576
+ "description": "The number of environments to get per page. Defaults to 1",
305
577
  "name": "pageSize",
306
578
  "hasDynamicHelp": false,
307
579
  "multiple": false,
308
580
  "type": "option"
309
581
  },
310
582
  "sort": {
311
- "description": "Sort the returned event broker services by attribute.\n\n You can use the following value formats for the sort order:\n\n * attributes-names \n * attributes-names:sort-order",
583
+ "description": "The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.",
312
584
  "name": "sort",
313
585
  "hasDynamicHelp": false,
314
586
  "multiple": false,
@@ -317,7 +589,7 @@
317
589
  },
318
590
  "hasDynamicHelp": false,
319
591
  "hiddenAliases": [],
320
- "id": "missionctrl:broker:list",
592
+ "id": "platform:env:list",
321
593
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
322
594
  "pluginName": "@dishantlangayan/solace-cloud-cli",
323
595
  "pluginType": "core",
@@ -327,18 +599,20 @@
327
599
  "relativePath": [
328
600
  "dist",
329
601
  "commands",
330
- "missionctrl",
331
- "broker",
602
+ "platform",
603
+ "env",
332
604
  "list.js"
333
605
  ]
334
606
  },
335
- "missionctrl:broker:opstatus": {
607
+ "platform:env:update": {
336
608
  "aliases": [],
337
609
  "args": {},
338
- "description": "Get the status of all operations being performed on an event broker service. \n To get the operation status, you must provide the identifier or name of the event broker service.\n\n Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or services:view:self ]",
610
+ "description": "Modify an environment's attributes\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Token Permissions: [ environments:edit ]\n ",
339
611
  "examples": [
340
- "<%= config.bin %> <%= command.id %> -b <broker-id>",
341
- "<%= config.bin %> <%= command.id %> -n <broker-name>"
612
+ "<%= config.bin %> <%= command.id %> --name=MyEnvName --new-name=MyNewEnvName",
613
+ "<%= config.bin %> <%= command.id %> --env-id=MyEnvId --new-name=MyNewEnvName --description=\"My description to update\" --isDefault",
614
+ "<%= config.bin %> <%= command.id %> --org=my-org --name=MyEnvName --isDefault",
615
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyEnvName --new-name=MyNewEnvName"
342
616
  ],
343
617
  "flags": {
344
618
  "json": {
@@ -364,33 +638,61 @@
364
638
  ],
365
639
  "type": "option"
366
640
  },
367
- "broker-id": {
368
- "char": "b",
369
- "description": "Id of the event broker service.",
370
- "name": "broker-id",
641
+ "alias": {
642
+ "char": "a",
643
+ "description": "Organization alias to use. If not specified, uses the default organization.",
644
+ "exclusive": [
645
+ "org"
646
+ ],
647
+ "name": "alias",
648
+ "hasDynamicHelp": false,
649
+ "multiple": false,
650
+ "type": "option"
651
+ },
652
+ "description": {
653
+ "char": "d",
654
+ "description": "Description of the environment to update.",
655
+ "name": "description",
656
+ "hasDynamicHelp": false,
657
+ "multiple": false,
658
+ "type": "option"
659
+ },
660
+ "env-id": {
661
+ "char": "e",
662
+ "description": "Id of the environment.",
663
+ "name": "env-id",
371
664
  "hasDynamicHelp": false,
372
665
  "multiple": false,
373
666
  "type": "option"
374
667
  },
668
+ "isDefault": {
669
+ "description": "Indicates this is the organization's default environment. The default value is false.",
670
+ "name": "isDefault",
671
+ "allowNo": false,
672
+ "type": "boolean"
673
+ },
375
674
  "name": {
376
675
  "char": "n",
377
- "description": "Name of the event broker service.",
676
+ "description": "Current name of the environment.",
378
677
  "name": "name",
379
678
  "hasDynamicHelp": false,
380
679
  "multiple": false,
381
680
  "type": "option"
382
681
  },
383
- "show-progress": {
384
- "char": "p",
385
- "description": "Displays a status bar of the in-progress operations. The command will wait for completion of each step of the operation.",
386
- "name": "show-progress",
387
- "allowNo": false,
388
- "type": "boolean"
682
+ "new-name": {
683
+ "description": "New name of the environment.",
684
+ "name": "new-name",
685
+ "hasDynamicHelp": false,
686
+ "multiple": false,
687
+ "type": "option"
389
688
  },
390
- "wait-ms": {
391
- "char": "w",
392
- "description": "The milliseconds to wait between API calls for checking progress of the operation. Default is 5000 ms.",
393
- "name": "wait-ms",
689
+ "org": {
690
+ "char": "o",
691
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
692
+ "exclusive": [
693
+ "alias"
694
+ ],
695
+ "name": "org",
394
696
  "hasDynamicHelp": false,
395
697
  "multiple": false,
396
698
  "type": "option"
@@ -398,7 +700,7 @@
398
700
  },
399
701
  "hasDynamicHelp": false,
400
702
  "hiddenAliases": [],
401
- "id": "missionctrl:broker:opstatus",
703
+ "id": "platform:env:update",
402
704
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
403
705
  "pluginName": "@dishantlangayan/solace-cloud-cli",
404
706
  "pluginType": "core",
@@ -408,18 +710,19 @@
408
710
  "relativePath": [
409
711
  "dist",
410
712
  "commands",
411
- "missionctrl",
412
- "broker",
413
- "opstatus.js"
713
+ "platform",
714
+ "env",
715
+ "update.js"
414
716
  ]
415
717
  },
416
- "missionctrl:broker:state": {
718
+ "missionctrl:broker:create": {
417
719
  "aliases": [],
418
720
  "args": {},
419
- "description": "Get the availability state of an event broker service and the name of the active messaging node using the service's unique identifier.\n\n Your token must have one of the permissions listed in the Token Permissions.\n \n Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or services:view:self ]",
721
+ "description": "Create an event broker service. You must provide a unique name and select a service class and datacenter. You can optionally define other properties for the event broker service.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:post` ]",
420
722
  "examples": [
421
- "<%= config.bin %> <%= command.id %> --broker-id=MyBrokerServiceId",
422
- "<%= config.bin %> <%= command.id %> --name=MyBrokerName"
723
+ "<%= config.bin %> <%= command.id %> --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER",
724
+ "<%= config.bin %> <%= command.id %> --org=my-org --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER",
725
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER"
423
726
  ],
424
727
  "flags": {
425
728
  "json": {
@@ -445,18 +748,97 @@
445
748
  ],
446
749
  "type": "option"
447
750
  },
448
- "broker-id": {
449
- "char": "b",
450
- "description": "Id of the event broker service.",
451
- "name": "broker-id",
751
+ "alias": {
752
+ "char": "a",
753
+ "description": "Organization alias to use. If not specified, uses the default organization.",
754
+ "exclusive": [
755
+ "org"
756
+ ],
757
+ "name": "alias",
758
+ "hasDynamicHelp": false,
759
+ "multiple": false,
760
+ "type": "option"
761
+ },
762
+ "datacenter-id": {
763
+ "char": "d",
764
+ "description": "The identifier of the datacenter.",
765
+ "name": "datacenter-id",
766
+ "required": true,
767
+ "hasDynamicHelp": false,
768
+ "multiple": false,
769
+ "type": "option"
770
+ },
771
+ "env-name": {
772
+ "char": "e",
773
+ "description": "The name of the environment environment where you want to create the service. \n You can only specify an environment identifier when creating services in a Public Region. \n You cannot specify an environment identifier when creating a service in a Dedicated Region. \n If no name is provided, the service will be created in the default environment.",
774
+ "name": "env-name",
775
+ "hasDynamicHelp": false,
776
+ "multiple": false,
777
+ "type": "option"
778
+ },
779
+ "locked": {
780
+ "char": "l",
781
+ "description": "Indicates if you can delete the event broker service after creating it. The default value is false.",
782
+ "name": "locked",
783
+ "allowNo": false,
784
+ "type": "boolean"
785
+ },
786
+ "max-spool-usage": {
787
+ "char": "s",
788
+ "description": "The message spool size, in gigabytes (GB). A default message spool size is provided if this is not specified.",
789
+ "name": "max-spool-usage",
790
+ "hasDynamicHelp": false,
791
+ "multiple": false,
792
+ "type": "option"
793
+ },
794
+ "msg-vpn-name": {
795
+ "char": "m",
796
+ "description": "The message VPN name. A default message VPN name is provided when this is not specified.",
797
+ "name": "msg-vpn-name",
452
798
  "hasDynamicHelp": false,
453
799
  "multiple": false,
454
800
  "type": "option"
455
801
  },
456
802
  "name": {
457
803
  "char": "n",
458
- "description": "Name of the event broker service.",
804
+ "description": "Name of the event broker service to create.",
459
805
  "name": "name",
806
+ "required": true,
807
+ "hasDynamicHelp": false,
808
+ "multiple": false,
809
+ "type": "option"
810
+ },
811
+ "org": {
812
+ "char": "o",
813
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
814
+ "exclusive": [
815
+ "alias"
816
+ ],
817
+ "name": "org",
818
+ "hasDynamicHelp": false,
819
+ "multiple": false,
820
+ "type": "option"
821
+ },
822
+ "redundancy-group-ssl-enabled": {
823
+ "char": "r",
824
+ "description": "Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)",
825
+ "name": "redundancy-group-ssl-enabled",
826
+ "allowNo": false,
827
+ "type": "boolean"
828
+ },
829
+ "service-class-id": {
830
+ "char": "c",
831
+ "description": "Supported service classes.",
832
+ "name": "service-class-id",
833
+ "required": true,
834
+ "hasDynamicHelp": false,
835
+ "multiple": false,
836
+ "type": "option"
837
+ },
838
+ "version": {
839
+ "char": "v",
840
+ "description": "The event broker version. A default version is provided when this is not specified.",
841
+ "name": "version",
460
842
  "hasDynamicHelp": false,
461
843
  "multiple": false,
462
844
  "type": "option"
@@ -464,7 +846,7 @@
464
846
  },
465
847
  "hasDynamicHelp": false,
466
848
  "hiddenAliases": [],
467
- "id": "missionctrl:broker:state",
849
+ "id": "missionctrl:broker:create",
468
850
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
469
851
  "pluginName": "@dishantlangayan/solace-cloud-cli",
470
852
  "pluginType": "core",
@@ -476,17 +858,18 @@
476
858
  "commands",
477
859
  "missionctrl",
478
860
  "broker",
479
- "state.js"
861
+ "create.js"
480
862
  ]
481
863
  },
482
- "missionctrl:broker:update": {
864
+ "missionctrl:broker:delete": {
483
865
  "aliases": [],
484
866
  "args": {},
485
- "description": "Update the configuration of an existing event broker service. \n You can provide any combination of supported flags. If a flag is not provided, then it will not be updated.\n \n Your token must have one of the permissions listed in the Token Permissions.\n\n Token Permissions: [ mission_control:access or services:put ]",
867
+ "description": "Delete a service using its unique identifier.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `services:delete` **or** `services:delete:self` **or** `mission_control:access` ]",
486
868
  "examples": [
487
- "<%= config.bin %> <%= command.id %>",
488
- "<%= config.bin %> <%= command.id %> --broker-id <broker-id> --new-name <new-name>",
489
- "<%= config.bin %> <%= command.id %> --name <name> --new-name <new-name>"
869
+ "<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId",
870
+ "<%= config.bin %> <%= command.id %> --name=MyBrokerName",
871
+ "<%= config.bin %> <%= command.id %> --org=my-org --broker-id=MyBrokerId",
872
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName"
490
873
  ],
491
874
  "flags": {
492
875
  "json": {
@@ -512,18 +895,21 @@
512
895
  ],
513
896
  "type": "option"
514
897
  },
515
- "broker-id": {
516
- "char": "b",
517
- "description": "Id of the event broker service.",
518
- "name": "broker-id",
898
+ "alias": {
899
+ "char": "a",
900
+ "description": "Organization alias to use. If not specified, uses the default organization.",
901
+ "exclusive": [
902
+ "org"
903
+ ],
904
+ "name": "alias",
519
905
  "hasDynamicHelp": false,
520
906
  "multiple": false,
521
907
  "type": "option"
522
908
  },
523
- "locked": {
524
- "char": "l",
525
- "description": "Indicates whether the event broker service has deletion protection enabled. The valid values are 'true' (enabled) or 'false' (disabled).",
526
- "name": "locked",
909
+ "broker-id": {
910
+ "char": "b",
911
+ "description": "Id of the event broker service.",
912
+ "name": "broker-id",
527
913
  "hasDynamicHelp": false,
528
914
  "multiple": false,
529
915
  "type": "option"
@@ -536,9 +922,13 @@
536
922
  "multiple": false,
537
923
  "type": "option"
538
924
  },
539
- "new-name": {
540
- "description": "New name of the event broker service. The new service name must be unique within an organization.",
541
- "name": "new-name",
925
+ "org": {
926
+ "char": "o",
927
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
928
+ "exclusive": [
929
+ "alias"
930
+ ],
931
+ "name": "org",
542
932
  "hasDynamicHelp": false,
543
933
  "multiple": false,
544
934
  "type": "option"
@@ -546,7 +936,7 @@
546
936
  },
547
937
  "hasDynamicHelp": false,
548
938
  "hiddenAliases": [],
549
- "id": "missionctrl:broker:update",
939
+ "id": "missionctrl:broker:delete",
550
940
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
551
941
  "pluginName": "@dishantlangayan/solace-cloud-cli",
552
942
  "pluginType": "core",
@@ -558,15 +948,17 @@
558
948
  "commands",
559
949
  "missionctrl",
560
950
  "broker",
561
- "update.js"
951
+ "delete.js"
562
952
  ]
563
953
  },
564
- "platform:env:create": {
954
+ "missionctrl:broker:display": {
565
955
  "aliases": [],
566
956
  "args": {},
567
- "description": "Create a new environment.\n\n Token Permissions: [ environments:edit ]",
957
+ "description": "Get the details of an event broker service using its identifier or name.\n \n Use either the Event Broker's ID (--broker-id) or name of the Event Broker (--name).\n \n Token Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
568
958
  "examples": [
569
- "<%= config.bin %> <%= command.id %> --name=MyEnvironment --description=\"My environment description\" --isDefault --isProduction"
959
+ "<%= config.bin %> <%= command.id %> --broker-id=MyBrokerId",
960
+ "<%= config.bin %> <%= command.id %> --org=my-org --name=MyBrokerName",
961
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName"
570
962
  ],
571
963
  "flags": {
572
964
  "json": {
@@ -592,31 +984,40 @@
592
984
  ],
593
985
  "type": "option"
594
986
  },
595
- "description": {
596
- "char": "d",
597
- "description": "Description of the environment to create.",
598
- "name": "description",
987
+ "alias": {
988
+ "char": "a",
989
+ "description": "Organization alias to use. If not specified, uses the default organization.",
990
+ "exclusive": [
991
+ "org"
992
+ ],
993
+ "name": "alias",
599
994
  "hasDynamicHelp": false,
600
995
  "multiple": false,
601
996
  "type": "option"
602
997
  },
603
- "isDefault": {
604
- "description": "Indicates this is the organization's default environment.",
605
- "name": "isDefault",
606
- "allowNo": false,
607
- "type": "boolean"
608
- },
609
- "isProduction": {
610
- "description": "Indicates this is an organization's production environment. \n This is an immutable field. If an environment needs to be migrated, \n architecture can be migrated to a new environment with the desired \n environment type instead.",
611
- "name": "isProduction",
612
- "allowNo": false,
613
- "type": "boolean"
998
+ "broker-id": {
999
+ "char": "b",
1000
+ "description": "Id of the event broker service.",
1001
+ "name": "broker-id",
1002
+ "hasDynamicHelp": false,
1003
+ "multiple": false,
1004
+ "type": "option"
614
1005
  },
615
1006
  "name": {
616
1007
  "char": "n",
617
- "description": "Name of the environment to create.",
1008
+ "description": "Name of the event broker service.",
618
1009
  "name": "name",
619
- "required": true,
1010
+ "hasDynamicHelp": false,
1011
+ "multiple": false,
1012
+ "type": "option"
1013
+ },
1014
+ "org": {
1015
+ "char": "o",
1016
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
1017
+ "exclusive": [
1018
+ "alias"
1019
+ ],
1020
+ "name": "org",
620
1021
  "hasDynamicHelp": false,
621
1022
  "multiple": false,
622
1023
  "type": "option"
@@ -624,7 +1025,7 @@
624
1025
  },
625
1026
  "hasDynamicHelp": false,
626
1027
  "hiddenAliases": [],
627
- "id": "platform:env:create",
1028
+ "id": "missionctrl:broker:display",
628
1029
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
629
1030
  "pluginName": "@dishantlangayan/solace-cloud-cli",
630
1031
  "pluginType": "core",
@@ -634,18 +1035,19 @@
634
1035
  "relativePath": [
635
1036
  "dist",
636
1037
  "commands",
637
- "platform",
638
- "env",
639
- "create.js"
1038
+ "missionctrl",
1039
+ "broker",
1040
+ "display.js"
640
1041
  ]
641
1042
  },
642
- "platform:env:delete": {
1043
+ "missionctrl:broker:list": {
643
1044
  "aliases": [],
644
1045
  "args": {},
645
- "description": "Delete an environment using either its name or unique identifier. The default environment cannot be deleted.\n\n Token Permissions: [ environments:edit ]",
1046
+ "description": "Get a listing of event broker services.\n\nYour token must have one of the permissions listed in the Token Permissions.\n\nToken Permissions: [ `mission_control:access` **or** `services:get` **or** `services:get:self` **or** `services:view` **or** `services:view:self` ]",
646
1047
  "examples": [
647
- "<%= config.bin %> <%= command.id %> --name=MyEnvName",
648
- "<%= config.bin %> <%= command.id %> --env-id=MyEnvId"
1048
+ "<%= config.bin %> <%= command.id %>",
1049
+ "<%= config.bin %> <%= command.id %> --org=my-org",
1050
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc"
649
1051
  ],
650
1052
  "flags": {
651
1053
  "json": {
@@ -671,26 +1073,61 @@
671
1073
  ],
672
1074
  "type": "option"
673
1075
  },
674
- "env-id": {
675
- "char": "e",
676
- "description": "Id of the environment.",
677
- "name": "env-id",
1076
+ "alias": {
1077
+ "char": "a",
1078
+ "description": "Organization alias to use. If not specified, uses the default organization.",
1079
+ "exclusive": [
1080
+ "org"
1081
+ ],
1082
+ "name": "alias",
678
1083
  "hasDynamicHelp": false,
679
1084
  "multiple": false,
680
1085
  "type": "option"
681
1086
  },
682
1087
  "name": {
683
1088
  "char": "n",
684
- "description": "Name of the environment.",
1089
+ "description": "Name of the event broker service to match on.",
685
1090
  "name": "name",
686
1091
  "hasDynamicHelp": false,
687
1092
  "multiple": false,
688
1093
  "type": "option"
1094
+ },
1095
+ "org": {
1096
+ "char": "o",
1097
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
1098
+ "exclusive": [
1099
+ "alias"
1100
+ ],
1101
+ "name": "org",
1102
+ "hasDynamicHelp": false,
1103
+ "multiple": false,
1104
+ "type": "option"
1105
+ },
1106
+ "pageNumber": {
1107
+ "description": "The page number to get. Defaults to 1",
1108
+ "name": "pageNumber",
1109
+ "hasDynamicHelp": false,
1110
+ "multiple": false,
1111
+ "type": "option"
1112
+ },
1113
+ "pageSize": {
1114
+ "description": "The number of event broker services to return per page. Defaults to 10",
1115
+ "name": "pageSize",
1116
+ "hasDynamicHelp": false,
1117
+ "multiple": false,
1118
+ "type": "option"
1119
+ },
1120
+ "sort": {
1121
+ "description": "Sort the returned event broker services by attribute.\n\n You can use the following value formats for the sort order:\n\n * attributes-names \n * attributes-names:sort-order",
1122
+ "name": "sort",
1123
+ "hasDynamicHelp": false,
1124
+ "multiple": false,
1125
+ "type": "option"
689
1126
  }
690
1127
  },
691
1128
  "hasDynamicHelp": false,
692
1129
  "hiddenAliases": [],
693
- "id": "platform:env:delete",
1130
+ "id": "missionctrl:broker:list",
694
1131
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
695
1132
  "pluginName": "@dishantlangayan/solace-cloud-cli",
696
1133
  "pluginType": "core",
@@ -700,18 +1137,20 @@
700
1137
  "relativePath": [
701
1138
  "dist",
702
1139
  "commands",
703
- "platform",
704
- "env",
705
- "delete.js"
1140
+ "missionctrl",
1141
+ "broker",
1142
+ "list.js"
706
1143
  ]
707
1144
  },
708
- "platform:env:display": {
1145
+ "missionctrl:broker:opstatus": {
709
1146
  "aliases": [],
710
1147
  "args": {},
711
- "description": "Display information about an Environment.\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Required token permissions: [ environments:view ]",
1148
+ "description": "Get the status of all operations being performed on an event broker service. \n To get the operation status, you must provide the identifier or name of the event broker service.\n\n Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or services:view:self ]",
712
1149
  "examples": [
713
- "<%= config.bin %> <%= command.id %> --name=MyEnvName",
714
- "<%= config.bin %> <%= command.id %> --env-id=MyEnvId"
1150
+ "<%= config.bin %> <%= command.id %> -b <broker-id>",
1151
+ "<%= config.bin %> <%= command.id %> -n <broker-name>",
1152
+ "<%= config.bin %> <%= command.id %> --org=my-org -b <broker-id>",
1153
+ "<%= config.bin %> <%= command.id %> --alias=my-alias -b <broker-id>"
715
1154
  ],
716
1155
  "flags": {
717
1156
  "json": {
@@ -737,26 +1176,63 @@
737
1176
  ],
738
1177
  "type": "option"
739
1178
  },
740
- "env-id": {
741
- "char": "e",
742
- "description": "Id of the environment.",
743
- "name": "env-id",
1179
+ "alias": {
1180
+ "char": "a",
1181
+ "description": "Organization alias to use. If not specified, uses the default organization.",
1182
+ "exclusive": [
1183
+ "org"
1184
+ ],
1185
+ "name": "alias",
1186
+ "hasDynamicHelp": false,
1187
+ "multiple": false,
1188
+ "type": "option"
1189
+ },
1190
+ "broker-id": {
1191
+ "char": "b",
1192
+ "description": "Id of the event broker service.",
1193
+ "name": "broker-id",
744
1194
  "hasDynamicHelp": false,
745
1195
  "multiple": false,
746
1196
  "type": "option"
747
1197
  },
748
1198
  "name": {
749
1199
  "char": "n",
750
- "description": "Name of the environment.",
1200
+ "description": "Name of the event broker service.",
751
1201
  "name": "name",
752
1202
  "hasDynamicHelp": false,
753
1203
  "multiple": false,
754
1204
  "type": "option"
1205
+ },
1206
+ "org": {
1207
+ "char": "o",
1208
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
1209
+ "exclusive": [
1210
+ "alias"
1211
+ ],
1212
+ "name": "org",
1213
+ "hasDynamicHelp": false,
1214
+ "multiple": false,
1215
+ "type": "option"
1216
+ },
1217
+ "show-progress": {
1218
+ "char": "p",
1219
+ "description": "Displays a status bar of the in-progress operations. The command will wait for completion of each step of the operation.",
1220
+ "name": "show-progress",
1221
+ "allowNo": false,
1222
+ "type": "boolean"
1223
+ },
1224
+ "wait-ms": {
1225
+ "char": "w",
1226
+ "description": "The milliseconds to wait between API calls for checking progress of the operation. Default is 5000 ms.",
1227
+ "name": "wait-ms",
1228
+ "hasDynamicHelp": false,
1229
+ "multiple": false,
1230
+ "type": "option"
755
1231
  }
756
1232
  },
757
1233
  "hasDynamicHelp": false,
758
1234
  "hiddenAliases": [],
759
- "id": "platform:env:display",
1235
+ "id": "missionctrl:broker:opstatus",
760
1236
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
761
1237
  "pluginName": "@dishantlangayan/solace-cloud-cli",
762
1238
  "pluginType": "core",
@@ -766,18 +1242,20 @@
766
1242
  "relativePath": [
767
1243
  "dist",
768
1244
  "commands",
769
- "platform",
770
- "env",
771
- "display.js"
1245
+ "missionctrl",
1246
+ "broker",
1247
+ "opstatus.js"
772
1248
  ]
773
1249
  },
774
- "platform:env:list": {
1250
+ "missionctrl:broker:state": {
775
1251
  "aliases": [],
776
1252
  "args": {},
777
- "description": "Get a list of all Environments. \n \n Required token permissions: [ environments:view ]",
1253
+ "description": "Get the availability state of an event broker service and the name of the active messaging node using the service's unique identifier.\n\n Your token must have one of the permissions listed in the Token Permissions.\n \n Token Permissions: [ mission_control:access or services:get or services:get:self or services:view or services:view:self ]",
778
1254
  "examples": [
779
- "<%= config.bin %> <%= command.id %>",
780
- "<%= config.bin %> <%= command.id %> --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC"
1255
+ "<%= config.bin %> <%= command.id %> --broker-id=MyBrokerServiceId",
1256
+ "<%= config.bin %> <%= command.id %> --name=MyBrokerName",
1257
+ "<%= config.bin %> <%= command.id %> --org=my-org --broker-id=MyBrokerServiceId",
1258
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name=MyBrokerName"
781
1259
  ],
782
1260
  "flags": {
783
1261
  "json": {
@@ -803,33 +1281,40 @@
803
1281
  ],
804
1282
  "type": "option"
805
1283
  },
806
- "name": {
807
- "char": "n",
808
- "description": "Name of the environment to match on.",
809
- "name": "name",
1284
+ "alias": {
1285
+ "char": "a",
1286
+ "description": "Organization alias to use. If not specified, uses the default organization.",
1287
+ "exclusive": [
1288
+ "org"
1289
+ ],
1290
+ "name": "alias",
810
1291
  "hasDynamicHelp": false,
811
1292
  "multiple": false,
812
1293
  "type": "option"
813
1294
  },
814
- "pageNumber": {
815
- "char": "p",
816
- "description": "The page number to get. Defaults to 10",
817
- "name": "pageNumber",
1295
+ "broker-id": {
1296
+ "char": "b",
1297
+ "description": "Id of the event broker service.",
1298
+ "name": "broker-id",
818
1299
  "hasDynamicHelp": false,
819
1300
  "multiple": false,
820
1301
  "type": "option"
821
1302
  },
822
- "pageSize": {
823
- "char": "s",
824
- "description": "The number of environments to get per page. Defaults to 1",
825
- "name": "pageSize",
1303
+ "name": {
1304
+ "char": "n",
1305
+ "description": "Name of the event broker service.",
1306
+ "name": "name",
826
1307
  "hasDynamicHelp": false,
827
1308
  "multiple": false,
828
1309
  "type": "option"
829
1310
  },
830
- "sort": {
831
- "description": "The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.",
832
- "name": "sort",
1311
+ "org": {
1312
+ "char": "o",
1313
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
1314
+ "exclusive": [
1315
+ "alias"
1316
+ ],
1317
+ "name": "org",
833
1318
  "hasDynamicHelp": false,
834
1319
  "multiple": false,
835
1320
  "type": "option"
@@ -837,7 +1322,7 @@
837
1322
  },
838
1323
  "hasDynamicHelp": false,
839
1324
  "hiddenAliases": [],
840
- "id": "platform:env:list",
1325
+ "id": "missionctrl:broker:state",
841
1326
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
842
1327
  "pluginName": "@dishantlangayan/solace-cloud-cli",
843
1328
  "pluginType": "core",
@@ -847,18 +1332,20 @@
847
1332
  "relativePath": [
848
1333
  "dist",
849
1334
  "commands",
850
- "platform",
851
- "env",
852
- "list.js"
1335
+ "missionctrl",
1336
+ "broker",
1337
+ "state.js"
853
1338
  ]
854
1339
  },
855
- "platform:env:update": {
1340
+ "missionctrl:broker:update": {
856
1341
  "aliases": [],
857
1342
  "args": {},
858
- "description": "Modify an environment's attributes\n \n Use either the Environment's ID (--env-id) or name of the Environment (--name).\n \n Token Permissions: [ environments:edit ]\n ",
1343
+ "description": "Update the configuration of an existing event broker service. \n You can provide any combination of supported flags. If a flag is not provided, then it will not be updated.\n \n Your token must have one of the permissions listed in the Token Permissions.\n\n Token Permissions: [ mission_control:access or services:put ]",
859
1344
  "examples": [
860
- "<%= config.bin %> <%= command.id %> --name=MyEnvName --new-name=MyNewEnvName --description=\"My description to update\" --isDefault",
861
- "<%= config.bin %> <%= command.id %> --env-id=MyEnvId --new-name=MyNewEnvName --description=\"My description to update\" --isDefault"
1345
+ "<%= config.bin %> <%= command.id %>",
1346
+ "<%= config.bin %> <%= command.id %> --broker-id <broker-id> --new-name <new-name>",
1347
+ "<%= config.bin %> <%= command.id %> --org=my-org --name <name> --new-name <new-name>",
1348
+ "<%= config.bin %> <%= command.id %> --alias=my-alias --name <name> --new-name <new-name>"
862
1349
  ],
863
1350
  "flags": {
864
1351
  "json": {
@@ -884,47 +1371,63 @@
884
1371
  ],
885
1372
  "type": "option"
886
1373
  },
887
- "description": {
888
- "char": "d",
889
- "description": "Description of the environment to update.",
890
- "name": "description",
1374
+ "alias": {
1375
+ "char": "a",
1376
+ "description": "Organization alias to use. If not specified, uses the default organization.",
1377
+ "exclusive": [
1378
+ "org"
1379
+ ],
1380
+ "name": "alias",
891
1381
  "hasDynamicHelp": false,
892
1382
  "multiple": false,
893
1383
  "type": "option"
894
1384
  },
895
- "env-id": {
896
- "char": "e",
897
- "description": "Id of the environment.",
898
- "name": "env-id",
1385
+ "broker-id": {
1386
+ "char": "b",
1387
+ "description": "Id of the event broker service.",
1388
+ "name": "broker-id",
899
1389
  "hasDynamicHelp": false,
900
1390
  "multiple": false,
901
1391
  "type": "option"
902
1392
  },
903
- "isDefault": {
904
- "description": "Indicates this is the organization's default environment. The default value is false.",
905
- "name": "isDefault",
906
- "allowNo": false,
907
- "type": "boolean"
1393
+ "locked": {
1394
+ "char": "l",
1395
+ "description": "Indicates whether the event broker service has deletion protection enabled. The valid values are 'true' (enabled) or 'false' (disabled).",
1396
+ "name": "locked",
1397
+ "hasDynamicHelp": false,
1398
+ "multiple": false,
1399
+ "type": "option"
908
1400
  },
909
1401
  "name": {
910
1402
  "char": "n",
911
- "description": "Current name of the environment.",
1403
+ "description": "Name of the event broker service.",
912
1404
  "name": "name",
913
1405
  "hasDynamicHelp": false,
914
1406
  "multiple": false,
915
1407
  "type": "option"
916
1408
  },
917
1409
  "new-name": {
918
- "description": "New name of the environment.",
1410
+ "description": "New name of the event broker service. The new service name must be unique within an organization.",
919
1411
  "name": "new-name",
920
1412
  "hasDynamicHelp": false,
921
1413
  "multiple": false,
922
1414
  "type": "option"
1415
+ },
1416
+ "org": {
1417
+ "char": "o",
1418
+ "description": "Organization ID to use. If not specified, uses the default organization or alias if specified.",
1419
+ "exclusive": [
1420
+ "alias"
1421
+ ],
1422
+ "name": "org",
1423
+ "hasDynamicHelp": false,
1424
+ "multiple": false,
1425
+ "type": "option"
923
1426
  }
924
1427
  },
925
1428
  "hasDynamicHelp": false,
926
1429
  "hiddenAliases": [],
927
- "id": "platform:env:update",
1430
+ "id": "missionctrl:broker:update",
928
1431
  "pluginAlias": "@dishantlangayan/solace-cloud-cli",
929
1432
  "pluginName": "@dishantlangayan/solace-cloud-cli",
930
1433
  "pluginType": "core",
@@ -934,11 +1437,11 @@
934
1437
  "relativePath": [
935
1438
  "dist",
936
1439
  "commands",
937
- "platform",
938
- "env",
1440
+ "missionctrl",
1441
+ "broker",
939
1442
  "update.js"
940
1443
  ]
941
1444
  }
942
1445
  },
943
- "version": "0.2.1"
1446
+ "version": "0.4.0"
944
1447
  }