@dishantlangayan/solace-cloud-cli 0.0.1 → 0.0.2
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.
- package/README.md +57 -31
- package/dist/commands/missionctrl/broker/create.d.ts +1 -0
- package/dist/commands/missionctrl/broker/create.js +27 -14
- package/dist/commands/missionctrl/broker/delete.js +0 -2
- package/dist/commands/missionctrl/broker/list.js +7 -6
- package/dist/commands/platform/env/create.js +12 -5
- package/dist/commands/platform/env/delete.js +10 -4
- package/dist/commands/platform/env/display.js +10 -4
- package/dist/commands/platform/env/list.d.ts +2 -2
- package/dist/commands/platform/env/list.js +2 -3
- package/dist/commands/platform/env/update.js +19 -5
- package/oclif.manifest.json +11 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ The Solace Cloud CLI
|
|
|
12
12
|
|
|
13
13
|
<!-- toc -->
|
|
14
14
|
* [Usage](#usage)
|
|
15
|
+
* [Configuration](#configuration)
|
|
15
16
|
* [Commands](#commands)
|
|
16
17
|
<!-- tocstop -->
|
|
17
18
|
# Usage
|
|
@@ -21,13 +22,27 @@ $ npm install -g @dishantlangayan/solace-cloud-cli
|
|
|
21
22
|
$ sc COMMAND
|
|
22
23
|
running command...
|
|
23
24
|
$ sc (--version)
|
|
24
|
-
@dishantlangayan/solace-cloud-cli/0.0.
|
|
25
|
+
@dishantlangayan/solace-cloud-cli/0.0.2 darwin-x64 node-v23.10.0
|
|
25
26
|
$ sc --help [COMMAND]
|
|
26
27
|
USAGE
|
|
27
28
|
$ sc COMMAND
|
|
28
29
|
...
|
|
29
30
|
```
|
|
30
31
|
<!-- usagestop -->
|
|
32
|
+
# Configuration
|
|
33
|
+
<!-- configuration -->
|
|
34
|
+
To use any commands you will need to configure an Access Token in Solace Cloud Console with the appropriate permissions first. The access token can be set using the follow Environment Variable:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
SC_ACCESS_TOKEN=<Your access token>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The following Environment variables are optional:
|
|
41
|
+
|
|
42
|
+
* SC_API_VERSION - The API version of the Solace Cloud REST API. Default is `v2`.
|
|
43
|
+
* SC_BASE_URL - The location of your Solace Home Cloud account determines the base URL you use. Default is `https://api.solace.cloud/`
|
|
44
|
+
|
|
45
|
+
<!-- configurationtop -->
|
|
31
46
|
# Commands
|
|
32
47
|
<!-- commands -->
|
|
33
48
|
* [`sc help [COMMAND]`](#sc-help-command)
|
|
@@ -77,22 +92,39 @@ Create an event broker service. You must provide a unique name and select a serv
|
|
|
77
92
|
|
|
78
93
|
```
|
|
79
94
|
USAGE
|
|
80
|
-
$ sc missionctrl broker create -d <value> -n <value> -c <value> [-e <value>] [-l] [-s <value>] [-m <value>] [-v
|
|
95
|
+
$ sc missionctrl broker create -d <value> -n <value> -c <value> [-e <value>] [-l] [-s <value>] [-m <value>] [-r] [-v
|
|
81
96
|
<value>]
|
|
82
97
|
|
|
83
98
|
FLAGS
|
|
84
|
-
-c, --service-class-id=<value>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
-c, --service-class-id=<value>
|
|
100
|
+
(required) Supported service classes.
|
|
101
|
+
|
|
102
|
+
-d, --datacenter-id=<value>
|
|
103
|
+
(required) The identifier of the datacenter.
|
|
104
|
+
|
|
105
|
+
-e, --env-name=<value>
|
|
106
|
+
The name of the environment environment where you want to create the service.
|
|
107
|
+
You can only specify an environment identifier when creating services in a Public Region.
|
|
108
|
+
You cannot specify an environment identifier when creating a service in a Dedicated Region.
|
|
109
|
+
If no name is provided, the service will be created in the default environment.
|
|
110
|
+
|
|
111
|
+
-l, --locked
|
|
112
|
+
Indicates if you can delete the event broker service after creating it. The default value is false.
|
|
113
|
+
|
|
114
|
+
-m, --msg-vpn-name=<value>
|
|
115
|
+
The message VPN name. A default message VPN name is provided when this is not specified.
|
|
116
|
+
|
|
117
|
+
-n, --name=<value>
|
|
118
|
+
(required) Name of the event broker service to create.
|
|
119
|
+
|
|
120
|
+
-r, --redundancy-group-ssl-enabled
|
|
121
|
+
Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)
|
|
122
|
+
|
|
123
|
+
-s, --max-spool-usage=<value>
|
|
124
|
+
The message spool size, in gigabytes (GB). A default message spool size is provided if this is not specified.
|
|
125
|
+
|
|
126
|
+
-v, --version=<value>
|
|
127
|
+
The event broker version. A default version is provided when this is not specified.
|
|
96
128
|
|
|
97
129
|
DESCRIPTION
|
|
98
130
|
Create an event broker service. You must provide a unique name and select a service class and datacenter. You can
|
|
@@ -103,10 +135,10 @@ DESCRIPTION
|
|
|
103
135
|
Token Permissions: [ `services:post` ]
|
|
104
136
|
|
|
105
137
|
EXAMPLES
|
|
106
|
-
$ sc missionctrl broker create --datacenter-id=
|
|
138
|
+
$ sc missionctrl broker create --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER
|
|
107
139
|
```
|
|
108
140
|
|
|
109
|
-
_See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
141
|
+
_See code: [src/commands/missionctrl/broker/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/missionctrl/broker/create.ts)_
|
|
110
142
|
|
|
111
143
|
## `sc missionctrl broker delete`
|
|
112
144
|
|
|
@@ -133,7 +165,7 @@ EXAMPLES
|
|
|
133
165
|
$ sc missionctrl broker delete --name=MyBrokerName
|
|
134
166
|
```
|
|
135
167
|
|
|
136
|
-
_See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
168
|
+
_See code: [src/commands/missionctrl/broker/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/missionctrl/broker/delete.ts)_
|
|
137
169
|
|
|
138
170
|
## `sc missionctrl broker display`
|
|
139
171
|
|
|
@@ -159,7 +191,7 @@ EXAMPLES
|
|
|
159
191
|
$ sc missionctrl broker display
|
|
160
192
|
```
|
|
161
193
|
|
|
162
|
-
_See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
194
|
+
_See code: [src/commands/missionctrl/broker/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/missionctrl/broker/display.ts)_
|
|
163
195
|
|
|
164
196
|
## `sc missionctrl broker list`
|
|
165
197
|
|
|
@@ -199,7 +231,7 @@ EXAMPLES
|
|
|
199
231
|
$ sc missionctrl broker list --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc
|
|
200
232
|
```
|
|
201
233
|
|
|
202
|
-
_See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
234
|
+
_See code: [src/commands/missionctrl/broker/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/missionctrl/broker/list.ts)_
|
|
203
235
|
|
|
204
236
|
## `sc platform env create`
|
|
205
237
|
|
|
@@ -227,7 +259,7 @@ EXAMPLES
|
|
|
227
259
|
$ sc platform env create --name=MyEnvironment --desc="My environment description" --isDefault --isProduction
|
|
228
260
|
```
|
|
229
261
|
|
|
230
|
-
_See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
262
|
+
_See code: [src/commands/platform/env/create.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/platform/env/create.ts)_
|
|
231
263
|
|
|
232
264
|
## `sc platform env delete`
|
|
233
265
|
|
|
@@ -252,7 +284,7 @@ EXAMPLES
|
|
|
252
284
|
$ sc platform env delete --env-id=MyEnvId
|
|
253
285
|
```
|
|
254
286
|
|
|
255
|
-
_See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
287
|
+
_See code: [src/commands/platform/env/delete.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/platform/env/delete.ts)_
|
|
256
288
|
|
|
257
289
|
## `sc platform env display`
|
|
258
290
|
|
|
@@ -280,7 +312,7 @@ EXAMPLES
|
|
|
280
312
|
$ sc platform env display --env-id=MyEnvId
|
|
281
313
|
```
|
|
282
314
|
|
|
283
|
-
_See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
315
|
+
_See code: [src/commands/platform/env/display.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/platform/env/display.ts)_
|
|
284
316
|
|
|
285
317
|
## `sc platform env list`
|
|
286
318
|
|
|
@@ -288,8 +320,7 @@ Get a list of all Environments.
|
|
|
288
320
|
|
|
289
321
|
```
|
|
290
322
|
USAGE
|
|
291
|
-
$ sc platform env list [
|
|
292
|
-
[--pageSize <value>] [--sort <value>]
|
|
323
|
+
$ sc platform env list [-n <value>] [--pageNumber <value>] [--pageSize <value>] [--sort <value>]
|
|
293
324
|
|
|
294
325
|
FLAGS
|
|
295
326
|
-n, --name=<value> Name of the environment to match on.
|
|
@@ -297,11 +328,6 @@ FLAGS
|
|
|
297
328
|
--pageSize=<value> The number of environments to get per page. Defaults to 1
|
|
298
329
|
--sort=<value> The query (fieldName:<ASC/DESC>) used to sort the environment list in the response.
|
|
299
330
|
|
|
300
|
-
GLOBAL FLAGS
|
|
301
|
-
--json Format output as json.
|
|
302
|
-
--log-level=<option> [default: info] Specify level for logging.
|
|
303
|
-
<options: debug|warn|error|info|trace>
|
|
304
|
-
|
|
305
331
|
DESCRIPTION
|
|
306
332
|
Get a list of all Environments.
|
|
307
333
|
|
|
@@ -313,7 +339,7 @@ EXAMPLES
|
|
|
313
339
|
$ sc platform env list --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC
|
|
314
340
|
```
|
|
315
341
|
|
|
316
|
-
_See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
342
|
+
_See code: [src/commands/platform/env/list.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/platform/env/list.ts)_
|
|
317
343
|
|
|
318
344
|
## `sc platform env update`
|
|
319
345
|
|
|
@@ -344,7 +370,7 @@ EXAMPLES
|
|
|
344
370
|
$ sc platform env update --env-id=MyEnvId --new-name=MyNewEnvName --desc="My description to update" --isDefault
|
|
345
371
|
```
|
|
346
372
|
|
|
347
|
-
_See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.
|
|
373
|
+
_See code: [src/commands/platform/env/update.ts](https://github.com/dishantlangayan/solace-cloud-cli/blob/v0.0.2/src/commands/platform/env/update.ts)_
|
|
348
374
|
|
|
349
375
|
## `sc plugins`
|
|
350
376
|
|
|
@@ -10,6 +10,7 @@ export default class MissionctrlBrokerCreate extends Command {
|
|
|
10
10
|
'max-spool-usage': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
'msg-vpn-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'redundancy-group-ssl-enabled': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
14
|
'service-class-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
15
|
version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
16
|
};
|
|
@@ -9,7 +9,7 @@ export default class MissionctrlBrokerCreate extends Command {
|
|
|
9
9
|
Your token must have one of the permissions listed in the Token Permissions.
|
|
10
10
|
|
|
11
11
|
Token Permissions: [ \`services:post\` ]`;
|
|
12
|
-
static examples = ['<%= config.bin %> <%= command.id %> --datacenter-id=
|
|
12
|
+
static examples = ['<%= config.bin %> <%= command.id %> --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER'];
|
|
13
13
|
static flags = {
|
|
14
14
|
'datacenter-id': Flags.string({
|
|
15
15
|
char: 'd',
|
|
@@ -18,7 +18,10 @@ Token Permissions: [ \`services:post\` ]`;
|
|
|
18
18
|
}),
|
|
19
19
|
'env-name': Flags.string({
|
|
20
20
|
char: 'e',
|
|
21
|
-
description:
|
|
21
|
+
description: `The name of the environment environment where you want to create the service.
|
|
22
|
+
You can only specify an environment identifier when creating services in a Public Region.
|
|
23
|
+
You cannot specify an environment identifier when creating a service in a Dedicated Region.
|
|
24
|
+
If no name is provided, the service will be created in the default environment.`,
|
|
22
25
|
}),
|
|
23
26
|
locked: Flags.boolean({
|
|
24
27
|
char: 'l',
|
|
@@ -33,7 +36,16 @@ Token Permissions: [ \`services:post\` ]`;
|
|
|
33
36
|
char: 'm',
|
|
34
37
|
description: 'The message VPN name. A default message VPN name is provided when this is not specified.',
|
|
35
38
|
}),
|
|
36
|
-
name: Flags.string({
|
|
39
|
+
name: Flags.string({
|
|
40
|
+
char: 'n',
|
|
41
|
+
description: 'Name of the event broker service to create.',
|
|
42
|
+
required: true
|
|
43
|
+
}),
|
|
44
|
+
'redundancy-group-ssl-enabled': Flags.boolean({
|
|
45
|
+
char: 'r',
|
|
46
|
+
default: false,
|
|
47
|
+
description: 'Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)',
|
|
48
|
+
}),
|
|
37
49
|
'service-class-id': Flags.string({
|
|
38
50
|
char: 'c',
|
|
39
51
|
description: 'Supported service classes.',
|
|
@@ -47,14 +59,15 @@ Token Permissions: [ \`services:post\` ]`;
|
|
|
47
59
|
async run() {
|
|
48
60
|
const { flags } = await this.parse(MissionctrlBrokerCreate);
|
|
49
61
|
const datacenterId = flags['datacenter-id'] ?? '';
|
|
50
|
-
|
|
62
|
+
const envName = flags['env-name'] ?? '';
|
|
51
63
|
const locked = flags.locked ?? false;
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
const maxSpoolUsage = flags['max-spool-usage'] ?? '';
|
|
65
|
+
const msgVpnName = flags['msg-vpn-name'] ?? '';
|
|
54
66
|
const name = flags.name ?? '';
|
|
55
|
-
const redundancyGroupSslEnabled =
|
|
67
|
+
const redundancyGroupSslEnabled = flags['redundancy-group-ssl-enabled'];
|
|
56
68
|
const serviceClassId = flags['service-class-id'] ?? 'DEVELOPER';
|
|
57
|
-
|
|
69
|
+
const eventBrokerVersion = flags.version ?? '';
|
|
70
|
+
let envId = '';
|
|
58
71
|
const conn = new ScConnection();
|
|
59
72
|
// API url
|
|
60
73
|
const apiUrl = `/missionControl/eventBrokerServices`;
|
|
@@ -66,17 +79,17 @@ Token Permissions: [ \`services:post\` ]`;
|
|
|
66
79
|
this.error(`Multiple environments found with: ${name}. Exactly one environment must match the provided name.`);
|
|
67
80
|
}
|
|
68
81
|
else {
|
|
69
|
-
|
|
82
|
+
envId = envResp.data[0]?.id;
|
|
70
83
|
}
|
|
71
84
|
}
|
|
72
85
|
// API body
|
|
73
86
|
const body = {
|
|
74
|
-
datacenterId,
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
...(datacenterId && { datacenterId }),
|
|
88
|
+
...(envId) && { environmentId: envId },
|
|
89
|
+
...(eventBrokerVersion && { eventBrokerVersion }),
|
|
77
90
|
locked,
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
...(maxSpoolUsage && { maxSpoolUsage }),
|
|
92
|
+
...(msgVpnName && { msgVpnName }),
|
|
80
93
|
name,
|
|
81
94
|
redundancyGroupSslEnabled,
|
|
82
95
|
serviceClassId,
|
|
@@ -12,13 +12,11 @@ Token Permissions: [ \`services:delete\` **or** \`services:delete:self\` **or**
|
|
|
12
12
|
'<%= config.bin %> <%= command.id %> --name=MyBrokerName',
|
|
13
13
|
];
|
|
14
14
|
static flags = {
|
|
15
|
-
// flag for getting environment by id (-e, --env-id)
|
|
16
15
|
'broker-id': Flags.string({
|
|
17
16
|
char: 'b',
|
|
18
17
|
description: 'Id of the event broker service.',
|
|
19
18
|
exactlyOne: ['broker-id', 'name'],
|
|
20
19
|
}),
|
|
21
|
-
// flag for getting environment by name (-n, --name=VALUE)
|
|
22
20
|
name: Flags.string({
|
|
23
21
|
char: 'n',
|
|
24
22
|
description: 'Name of the event broker service.',
|
|
@@ -10,17 +10,18 @@ Your token must have one of the permissions listed in the Token Permissions.
|
|
|
10
10
|
Token Permissions: [ \`mission_control:access\` **or** \`services:get\` **or** \`services:get:self\` **or** \`services:view\` **or** \`services:view:self\` ]`;
|
|
11
11
|
static examples = ['<%= config.bin %> <%= command.id %> --name=MyBrokerName --pageNumber=1 --pageSize=10 --sort=name:asc'];
|
|
12
12
|
static flags = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
name: Flags.string({
|
|
14
|
+
char: 'n',
|
|
15
|
+
description: 'Name of the event broker service to match on.'
|
|
16
|
+
}),
|
|
17
|
+
pageNumber: Flags.integer({
|
|
18
|
+
description: 'The page number to get. Defaults to 1'
|
|
19
|
+
}),
|
|
18
20
|
pageSize: Flags.integer({
|
|
19
21
|
description: 'The number of event broker services to return per page. Defaults to 100',
|
|
20
22
|
max: 100,
|
|
21
23
|
min: 1,
|
|
22
24
|
}),
|
|
23
|
-
// sort (--sort=VALUE)
|
|
24
25
|
sort: Flags.string({
|
|
25
26
|
description: `Sort the returned event broker services by attribute.
|
|
26
27
|
|
|
@@ -9,17 +9,24 @@ export default class PlatformEnvCreate extends Command {
|
|
|
9
9
|
Token Permissions: [ environments:edit ]`;
|
|
10
10
|
static examples = ['<%= config.bin %> <%= command.id %> --name=MyEnvironment --desc="My environment description" --isDefault --isProduction'];
|
|
11
11
|
static flags = {
|
|
12
|
-
desc: Flags.string({
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
desc: Flags.string({
|
|
13
|
+
char: 'd',
|
|
14
|
+
description: 'Description of the environment to create.'
|
|
15
|
+
}),
|
|
16
|
+
isDefault: Flags.boolean({
|
|
17
|
+
description: 'Indicates this is the organization’s default environment.'
|
|
18
|
+
}),
|
|
15
19
|
isProduction: Flags.boolean({
|
|
16
20
|
description: `Indicates this is an organization’s production environment.
|
|
17
21
|
This is an immutable field. If an environment needs to be migrated,
|
|
18
22
|
architecture can be migrated to a new environment with the desired
|
|
19
23
|
environment type instead.`,
|
|
20
24
|
}),
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
name: Flags.string({
|
|
26
|
+
char: 'n',
|
|
27
|
+
description: 'Name of the environment to create.',
|
|
28
|
+
required: true
|
|
29
|
+
}),
|
|
23
30
|
};
|
|
24
31
|
async run() {
|
|
25
32
|
const { flags } = await this.parse(PlatformEnvCreate);
|
|
@@ -7,10 +7,16 @@ export default class PlatformEnvDelete extends Command {
|
|
|
7
7
|
Token Permissions: [ environments:edit ]`;
|
|
8
8
|
static examples = ['<%= config.bin %> <%= command.id %> --name=MyEnvName', '<%= config.bin %> <%= command.id %> --env-id=MyEnvId'];
|
|
9
9
|
static flags = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
'env-id': Flags.string({
|
|
11
|
+
char: 'e',
|
|
12
|
+
description: 'Id of the environment.',
|
|
13
|
+
exactlyOne: ['env-id', 'name']
|
|
14
|
+
}),
|
|
15
|
+
name: Flags.string({
|
|
16
|
+
char: 'n',
|
|
17
|
+
description: 'Name of the environment.',
|
|
18
|
+
exactlyOne: ['env-id', 'name']
|
|
19
|
+
}),
|
|
14
20
|
};
|
|
15
21
|
async run() {
|
|
16
22
|
const { flags } = await this.parse(PlatformEnvDelete);
|
|
@@ -12,10 +12,16 @@ export default class PlatformEnvDisplay extends Command {
|
|
|
12
12
|
`;
|
|
13
13
|
static examples = ['<%= config.bin %> <%= command.id %> --name=MyEnvName', '<%= config.bin %> <%= command.id %> --env-id=MyEnvId'];
|
|
14
14
|
static flags = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
'env-id': Flags.string({
|
|
16
|
+
char: 'e',
|
|
17
|
+
description: 'Id of the environment.',
|
|
18
|
+
exactlyOne: ['env-id', 'name']
|
|
19
|
+
}),
|
|
20
|
+
name: Flags.string({
|
|
21
|
+
char: 'n',
|
|
22
|
+
description: 'Name of the environment.',
|
|
23
|
+
exactlyOne: ['env-id', 'name']
|
|
24
|
+
}),
|
|
19
25
|
};
|
|
20
26
|
async run() {
|
|
21
27
|
const { flags } = await this.parse(PlatformEnvDisplay);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default class PlatformEnvList extends
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class PlatformEnvList extends Command {
|
|
3
3
|
static args: {};
|
|
4
4
|
static description: string;
|
|
5
5
|
static examples: string[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Flags } from '@oclif/core';
|
|
1
|
+
import { Command, Flags } from '@oclif/core';
|
|
2
2
|
import { table } from 'table';
|
|
3
|
-
import { ScCommand } from '../../../sc-command.js';
|
|
4
3
|
import { ScConnection } from '../../../util/sc-connection.js';
|
|
5
|
-
export default class PlatformEnvList extends
|
|
4
|
+
export default class PlatformEnvList extends Command {
|
|
6
5
|
static args = {};
|
|
7
6
|
static description = `Get a list of all Environments.
|
|
8
7
|
|
|
@@ -15,11 +15,25 @@ export default class PlatformEnvUpdate extends Command {
|
|
|
15
15
|
'<%= config.bin %> <%= command.id %> --env-id=MyEnvId --new-name=MyNewEnvName --desc="My description to update" --isDefault'
|
|
16
16
|
];
|
|
17
17
|
static flags = {
|
|
18
|
-
desc: Flags.string({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'
|
|
18
|
+
desc: Flags.string({
|
|
19
|
+
char: 'd',
|
|
20
|
+
description: 'Description of the environment to update.'
|
|
21
|
+
}),
|
|
22
|
+
'env-id': Flags.string({
|
|
23
|
+
char: 'e',
|
|
24
|
+
description: 'Id of the environment.',
|
|
25
|
+
exactlyOne: ['env-id', 'name']
|
|
26
|
+
}),
|
|
27
|
+
isDefault: Flags.boolean({
|
|
28
|
+
description: `Indicates this is the organization's default environment. The default value is false.`
|
|
29
|
+
}),
|
|
30
|
+
name: Flags.string({
|
|
31
|
+
char: 'n', description: 'Current name of the environment.',
|
|
32
|
+
exactlyOne: ['env-id', 'name']
|
|
33
|
+
}),
|
|
34
|
+
'new-name': Flags.string({
|
|
35
|
+
description: 'New name of the environment.'
|
|
36
|
+
}),
|
|
23
37
|
};
|
|
24
38
|
async run() {
|
|
25
39
|
const { flags } = await this.parse(PlatformEnvUpdate);
|
package/oclif.manifest.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"args": {},
|
|
6
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` ]",
|
|
7
7
|
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %> --datacenter-id=
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --name=MyBrokerName --datacenter-id=eks-ca-central-1a --service-class-id=DEVELOPER"
|
|
9
9
|
],
|
|
10
10
|
"flags": {
|
|
11
11
|
"datacenter-id": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"env-name": {
|
|
21
21
|
"char": "e",
|
|
22
|
-
"description": "The name of the environment environment where you want to create the service. If no name is provided, the service will be created in the default environment.",
|
|
22
|
+
"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.",
|
|
23
23
|
"name": "env-name",
|
|
24
24
|
"hasDynamicHelp": false,
|
|
25
25
|
"multiple": false,
|
|
@@ -57,6 +57,13 @@
|
|
|
57
57
|
"multiple": false,
|
|
58
58
|
"type": "option"
|
|
59
59
|
},
|
|
60
|
+
"redundancy-group-ssl-enabled": {
|
|
61
|
+
"char": "r",
|
|
62
|
+
"description": "Enable or disable SSL for the redundancy group (for mate-link encryption). The default value is false (disabled)",
|
|
63
|
+
"name": "redundancy-group-ssl-enabled",
|
|
64
|
+
"allowNo": false,
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
60
67
|
"service-class-id": {
|
|
61
68
|
"char": "c",
|
|
62
69
|
"description": "Supported service classes.",
|
|
@@ -382,29 +389,6 @@
|
|
|
382
389
|
"<%= config.bin %> <%= command.id %> --name=Default --pageNumber=1 --pageSize=10 --sort=name:ASC"
|
|
383
390
|
],
|
|
384
391
|
"flags": {
|
|
385
|
-
"json": {
|
|
386
|
-
"description": "Format output as json.",
|
|
387
|
-
"helpGroup": "GLOBAL",
|
|
388
|
-
"name": "json",
|
|
389
|
-
"allowNo": false,
|
|
390
|
-
"type": "boolean"
|
|
391
|
-
},
|
|
392
|
-
"log-level": {
|
|
393
|
-
"helpGroup": "GLOBAL",
|
|
394
|
-
"name": "log-level",
|
|
395
|
-
"summary": "Specify level for logging.",
|
|
396
|
-
"default": "info",
|
|
397
|
-
"hasDynamicHelp": false,
|
|
398
|
-
"multiple": false,
|
|
399
|
-
"options": [
|
|
400
|
-
"debug",
|
|
401
|
-
"warn",
|
|
402
|
-
"error",
|
|
403
|
-
"info",
|
|
404
|
-
"trace"
|
|
405
|
-
],
|
|
406
|
-
"type": "option"
|
|
407
|
-
},
|
|
408
392
|
"name": {
|
|
409
393
|
"char": "n",
|
|
410
394
|
"description": "Name of the environment to match on.",
|
|
@@ -442,7 +426,7 @@
|
|
|
442
426
|
"pluginName": "@dishantlangayan/solace-cloud-cli",
|
|
443
427
|
"pluginType": "core",
|
|
444
428
|
"strict": true,
|
|
445
|
-
"enableJsonFlag":
|
|
429
|
+
"enableJsonFlag": false,
|
|
446
430
|
"isESM": true,
|
|
447
431
|
"relativePath": [
|
|
448
432
|
"dist",
|
|
@@ -517,5 +501,5 @@
|
|
|
517
501
|
]
|
|
518
502
|
}
|
|
519
503
|
},
|
|
520
|
-
"version": "0.0.
|
|
504
|
+
"version": "0.0.2"
|
|
521
505
|
}
|