cortexapps-cli 1.44.0__py3-none-any.whl → 1.46.0__py3-none-any.whl

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.
@@ -3,6 +3,9 @@ from rich import print_json
3
3
  import typer
4
4
  from typing_extensions import Annotated
5
5
 
6
+ from cortexapps_cli.command_options import ListCommandOptions
7
+ from cortexapps_cli.utils import print_output_with_context
8
+
6
9
  import cortexapps_cli.commands.integrations_commands.apiiro as apiiro
7
10
  import cortexapps_cli.commands.integrations_commands.argocd as argocd
8
11
  import cortexapps_cli.commands.integrations_commands.aws as aws
@@ -101,3 +104,31 @@ app.add_typer(veracode.app, name="veracode")
101
104
  app.add_typer(wiz.app, name="wiz")
102
105
  app.add_typer(workday.app, name="workday")
103
106
  app.add_typer(xmatters.app, name="xmatters")
107
+
108
+ @app.command()
109
+ def status(
110
+ ctx: typer.Context,
111
+ table_output: ListCommandOptions.table_output = False,
112
+ csv_output: ListCommandOptions.csv_output = False,
113
+ columns: ListCommandOptions.columns = [],
114
+ no_headers: ListCommandOptions.no_headers = False,
115
+ filters: ListCommandOptions.filters = [],
116
+ sort: ListCommandOptions.sort = [],
117
+ ):
118
+ """
119
+ List all installed integrations and their connection status
120
+ """
121
+
122
+ client = ctx.obj["client"]
123
+
124
+ if (table_output or csv_output) and not ctx.params.get('columns'):
125
+ ctx.params['columns'] = [
126
+ "Type=integrationType",
127
+ "Alias=alias",
128
+ "Status=validation.status",
129
+ "LastValidatedAt=validation.lastValidatedAt",
130
+ "Message=validation.message",
131
+ ]
132
+
133
+ r = client.get("api/v1/integrations/status")
134
+ print_output_with_context(ctx, r)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortexapps-cli
3
- Version: 1.44.0
3
+ Version: 1.46.0
4
4
  Summary: Command Line Interface for cortexapps
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -20,7 +20,7 @@ Requires-Dist: pyyaml (>=6.0.1,<7)
20
20
  Requires-Dist: requests (>=2.33.0,<3.0.0)
21
21
  Requires-Dist: typer (>=0.15,<1.0)
22
22
  Requires-Dist: typing_extensions (>=3.7.4.3)
23
- Requires-Dist: urllib3 (>=2.7.0)
23
+ Requires-Dist: urllib3 (>=2.8.0)
24
24
  Project-URL: Bug Tracker, https://github.com/cortexapps/cli/issues
25
25
  Project-URL: Changes, https://github.com/cortexapps/cli/blob/main/HISTORY.md
26
26
  Project-URL: Documentation, https://github.com/cortexapps/cli/blob/main/README.rst
@@ -21,7 +21,7 @@ cortexapps_cli/commands/entity_types.py,sha256=HJdp90GLQ3BMWMoSE2RCrc7T0Z7aYlK1P
21
21
  cortexapps_cli/commands/gitops_logs.py,sha256=xVYEaV1m85Vq5vGhRIZmFVjeJe2oxZQYQ65jHEmoRIM,2812
22
22
  cortexapps_cli/commands/groups.py,sha256=x826xb2NQt3ufSzB9afQAj2VFbhuBmu-gBjiZCUG-2g,3202
23
23
  cortexapps_cli/commands/initiatives.py,sha256=d8P6I9XXQCYFypZ7lwjCOGKOLR-JpXgm_G4hb7A2f1o,3837
24
- cortexapps_cli/commands/integrations.py,sha256=KEnahmlboTjPcGrIFtk2Ph25-7huJbmDZauOAMT18l0,6094
24
+ cortexapps_cli/commands/integrations.py,sha256=MeyKCQsWvTdN4ltYhGeUlcwzCYGVgbmwKPEmDKFmTik,7091
25
25
  cortexapps_cli/commands/integrations_commands/apiiro.py,sha256=bvkUlDUJL3sQA8ySZL6GcJ6kf0cc_geDSd4Q9qqQY1c,4089
26
26
  cortexapps_cli/commands/integrations_commands/argocd.py,sha256=r0U8OoT0iQkkA37NrbXnow-TnrCiI3AdL7419BvUwSg,4317
27
27
  cortexapps_cli/commands/integrations_commands/aws.py,sha256=oqLxcOyW6TwncdueMOxgwKwmFFd0I2vPNMIGG3R_b2o,5687
@@ -274,8 +274,8 @@ cortexapps_cli/solutions/workday/data/configuration.json,sha256=8_C6pFrCSSXIv3hx
274
274
  cortexapps_cli/solutions/workday/data/pied-piper-supervisory-org.json,sha256=OS0F5Pl0sBS4pENRsEhHAkAcXfqg8GLI8dJx2sqEvtE,3191
275
275
  cortexapps_cli/solutions/workday/setup.py,sha256=t7I5sCXqta66lC9PKEZfpSZ8l_0OBbCnpvSFuh7y9Jw,5591
276
276
  cortexapps_cli/utils.py,sha256=zJilDiFhL-cYdp5LA251rED7vdc0EIEivCZpCqQRvmI,6992
277
- cortexapps_cli-1.44.0.dist-info/METADATA,sha256=CgMUOpcGfQMAPsjYEvz5-6WmLl7ERw8vzNJci85WKtM,17883
278
- cortexapps_cli-1.44.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
279
- cortexapps_cli-1.44.0.dist-info/entry_points.txt,sha256=YffF7CawiDnK0vE7Fg9mAItnXoSjLvVkW3IdHhumz84,49
280
- cortexapps_cli-1.44.0.dist-info/licenses/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
281
- cortexapps_cli-1.44.0.dist-info/RECORD,,
277
+ cortexapps_cli-1.46.0.dist-info/METADATA,sha256=XNiZqUI--H6VTeRWDm71pAXqLj66-E0hWu-ufa-2jFU,17883
278
+ cortexapps_cli-1.46.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
279
+ cortexapps_cli-1.46.0.dist-info/entry_points.txt,sha256=YffF7CawiDnK0vE7Fg9mAItnXoSjLvVkW3IdHhumz84,49
280
+ cortexapps_cli-1.46.0.dist-info/licenses/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
281
+ cortexapps_cli-1.46.0.dist-info/RECORD,,