cortexapps-cli 1.23.0__tar.gz → 1.25.0__tar.gz
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.
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/PKG-INFO +1 -1
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/catalog.py +187 -145
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/entity_types.py +6 -1
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/aws.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/azure_devops.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/azure_resources.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/circleci.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/coralogix.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/datadog.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/gitlab.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/incidentio.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/pagerduty.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/prometheus.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/sonarqube.py +2 -2
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/cortex_client.py +6 -1
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/pyproject.toml +1 -1
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/LICENSE +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/README.rst +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/__init__.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/cli.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/backup.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/custom_events.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/custom_metrics.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/deploys.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/entity_relationship_types.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/entity_relationships.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/apiiro.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/argocd.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/azure_active_directory.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/bamboohr.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/bitbucket.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/bugsnag.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/buildkite.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/checkmarx_sast.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/clickup.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/codecov.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/dynatrace.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/firehydrant.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/instana.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/jenkins.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/jira.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/mend_sast.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/mend_sca.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/okta.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/opsgenie.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/rollbar.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/rootly.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/semgrep.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/sentry.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/servicenow.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/servicenow_cloud_observability.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/snyk.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/splunk_observability_cloud.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/splunk_on_call.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/sumologic.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/veracode.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/wiz.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/workday.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/xmatters.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/scorecards.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/secrets.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/solutions.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/users.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/users_commands/roles.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/__init__.py +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/.github/workflows/cortex-service-version.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/README.md +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.0.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.1.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/api-gateway.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/auth-2.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/auth-2.1.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/auth-2.2.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/auth.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/aws-dev-us-west-2.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/billing-1.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/billing-1.2.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/billing.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/cart-1.0.2.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/cart.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.2.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.3.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.4.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/checkout.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/gcp-prod-us-east-1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/gcp-prod-us-west-1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/gcp-staging-us-east-1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.0.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.0.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/notifications.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/order-service-2.0.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/order-service-2.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/order-service.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/payments-1.6.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/payments-1.7.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/payments-1.7.1.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/payments.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/release-2026-06-20.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-01.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-09.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-10.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/search-4.0.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/search-4.1.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/search.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/user-service-1.2.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/user-service-1.3.0.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/catalog/user-service.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/entity-relationship-types/environments.json +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/entity-relationship-types/versions.json +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/entity-types/environment.json +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/entity-types/release.json +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/entity-types/service-version.json +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/workflows/create-environment.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/workflows/create-release.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/solutions/environments/workflows/trigger-github-release.yaml +0 -0
- {cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/utils.py +0 -0
|
@@ -65,149 +65,50 @@ class CatalogCommandOptions:
|
|
|
65
65
|
typer.Option("--types", "-t", help="Filter the response to specific types of entities. By default, this includes services, resources, and domains. Corresponds to the x-cortex-type field in the Entity Descriptor.", show_default=False)
|
|
66
66
|
]
|
|
67
67
|
|
|
68
|
-
@app.command(name="list")
|
|
69
|
-
def catalog_list(
|
|
70
|
-
ctx: typer.Context,
|
|
71
|
-
include_archived: CatalogCommandOptions.include_archived = False,
|
|
72
|
-
hierarchy_depth: CatalogCommandOptions.hierarchy_depth = 'full',
|
|
73
|
-
groups: CatalogCommandOptions.groups = None,
|
|
74
|
-
owners: CatalogCommandOptions.owners = None,
|
|
75
|
-
include_hierarchy_fields: CatalogCommandOptions.include_hierarchy_fields = None,
|
|
76
|
-
include_nested_fields: CatalogCommandOptions.include_nested_fields = None,
|
|
77
|
-
include_owners: CatalogCommandOptions.include_owners = False,
|
|
78
|
-
include_links: CatalogCommandOptions.include_links = False,
|
|
79
|
-
include_metadata: CatalogCommandOptions.include_metadata = False,
|
|
80
|
-
git_repositories: CatalogCommandOptions.git_repositories = None,
|
|
81
|
-
types: CatalogCommandOptions.types = None,
|
|
82
|
-
page: ListCommandOptions.page = None,
|
|
83
|
-
page_size: ListCommandOptions.page_size = 250,
|
|
84
|
-
table_output: ListCommandOptions.table_output = False,
|
|
85
|
-
csv_output: ListCommandOptions.csv_output = False,
|
|
86
|
-
columns: ListCommandOptions.columns = [],
|
|
87
|
-
no_headers: ListCommandOptions.no_headers = False,
|
|
88
|
-
filters: ListCommandOptions.filters = [],
|
|
89
|
-
sort: ListCommandOptions.sort = [],
|
|
90
|
-
_print: CommandOptions._print = True,
|
|
91
|
-
):
|
|
92
|
-
"""
|
|
93
|
-
List entities in the catalog
|
|
94
|
-
"""
|
|
95
|
-
client = ctx.obj["client"]
|
|
96
|
-
|
|
97
|
-
if (table_output or csv_output) and not ctx.params.get('columns'):
|
|
98
|
-
ctx.params['columns'] = [
|
|
99
|
-
"ID=id",
|
|
100
|
-
"Tag=tag",
|
|
101
|
-
"Name=name",
|
|
102
|
-
"Type=type",
|
|
103
|
-
"Git Repository=git.repository",
|
|
104
|
-
]
|
|
105
|
-
|
|
106
|
-
params = {
|
|
107
|
-
"includeArchived": include_archived,
|
|
108
|
-
"hierarchyDepth": hierarchy_depth,
|
|
109
|
-
"groups": groups,
|
|
110
|
-
"owners": owners,
|
|
111
|
-
"includeHierarchyFields": include_hierarchy_fields,
|
|
112
|
-
"includeNestedFields": include_nested_fields,
|
|
113
|
-
"includeOwners": include_owners,
|
|
114
|
-
"includeLinks": include_links,
|
|
115
|
-
"includeMetadata": include_metadata,
|
|
116
|
-
"page": page,
|
|
117
|
-
"pageSize": page_size,
|
|
118
|
-
"gitRepositories": git_repositories,
|
|
119
|
-
"types": types,
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
# remove any params that are None
|
|
123
|
-
params = {k: v for k, v in params.items() if v is not None}
|
|
124
|
-
|
|
125
|
-
# for keys that can have multiple values, remove whitespace around comma and split on comma
|
|
126
|
-
for key in ['groups', 'owners', 'gitRepositories', 'types']:
|
|
127
|
-
if key in params:
|
|
128
|
-
params[key] = [x.strip() for x in params[key].split(',')]
|
|
129
|
-
|
|
130
|
-
if page is None:
|
|
131
|
-
# if page is not specified, we want to fetch all pages
|
|
132
|
-
r = client.fetch("api/v1/catalog", params=params)
|
|
133
|
-
else:
|
|
134
|
-
# if page is specified, we want to fetch only that page
|
|
135
|
-
r = client.get("api/v1/catalog", params=params)
|
|
136
|
-
|
|
137
|
-
if _print:
|
|
138
|
-
data = r
|
|
139
|
-
print_output_with_context(ctx, data)
|
|
140
|
-
else:
|
|
141
|
-
return(r)
|
|
142
|
-
|
|
143
68
|
@app.command()
|
|
144
|
-
def
|
|
69
|
+
def archive(
|
|
145
70
|
ctx: typer.Context,
|
|
146
|
-
hierarchy_depth: CatalogCommandOptions.hierarchy_depth = 'full',
|
|
147
|
-
include_hierarchy_fields: CatalogCommandOptions.include_hierarchy_fields = None,
|
|
148
71
|
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
149
|
-
table_output: ListCommandOptions.table_output = False,
|
|
150
|
-
csv_output: ListCommandOptions.csv_output = False,
|
|
151
|
-
no_headers: ListCommandOptions.no_headers = False,
|
|
152
|
-
columns: ListCommandOptions.columns = [],
|
|
153
|
-
filters: ListCommandOptions.filters = [],
|
|
154
72
|
):
|
|
155
73
|
"""
|
|
156
|
-
|
|
74
|
+
Archive an entity
|
|
157
75
|
"""
|
|
158
76
|
client = ctx.obj["client"]
|
|
159
77
|
|
|
160
|
-
|
|
161
|
-
raise typer.BadParameter("Only one of --table and --csv can be specified")
|
|
162
|
-
|
|
163
|
-
if (table_output or csv_output) and not ctx.params.get('columns'):
|
|
164
|
-
ctx.params['columns'] = [
|
|
165
|
-
"ID=id",
|
|
166
|
-
"Tag=tag",
|
|
167
|
-
"Name=name",
|
|
168
|
-
"Type=type",
|
|
169
|
-
"Git Repository=git.repository",
|
|
170
|
-
]
|
|
171
|
-
|
|
172
|
-
output_format = "table" if table_output else "csv" if csv_output else "json"
|
|
173
|
-
|
|
174
|
-
params = {
|
|
175
|
-
"hierarchyDepth": hierarchy_depth,
|
|
176
|
-
"includeHierarchyFields": include_hierarchy_fields
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
# remove any params that are None
|
|
180
|
-
params = {k: v for k, v in params.items() if v is not None}
|
|
181
|
-
|
|
182
|
-
r = client.get("api/v1/catalog/" + tag, params=params)
|
|
183
|
-
|
|
184
|
-
data = r if output_format == 'json' else [r]
|
|
185
|
-
print_output_with_context(ctx, data)
|
|
78
|
+
r = client.put("api/v1/catalog/" + tag + "/archive")
|
|
186
79
|
|
|
187
80
|
@app.command()
|
|
188
|
-
def
|
|
81
|
+
def aws(
|
|
189
82
|
ctx: typer.Context,
|
|
190
83
|
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
191
84
|
):
|
|
192
85
|
"""
|
|
193
|
-
|
|
86
|
+
Get AWS resource details for an entity
|
|
194
87
|
"""
|
|
195
88
|
client = ctx.obj["client"]
|
|
196
89
|
|
|
197
|
-
r = client.
|
|
90
|
+
r = client.get("api/v1/catalog/" + tag + "/aws")
|
|
91
|
+
print_output_with_context(ctx, r)
|
|
198
92
|
|
|
199
93
|
@app.command()
|
|
200
|
-
def
|
|
94
|
+
def create(
|
|
201
95
|
ctx: typer.Context,
|
|
202
|
-
|
|
96
|
+
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help=" File containing YAML content of entity; can be passed as stdin with -, example: -f-")] = None,
|
|
97
|
+
dry_run: CatalogCommandOptions.dry_run = False,
|
|
98
|
+
_print: CommandOptions._print = True,
|
|
203
99
|
):
|
|
204
100
|
"""
|
|
205
|
-
|
|
101
|
+
Create entity
|
|
206
102
|
"""
|
|
207
103
|
client = ctx.obj["client"]
|
|
208
104
|
|
|
209
|
-
|
|
210
|
-
|
|
105
|
+
params = {
|
|
106
|
+
"dryRun": dry_run
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
r = client.post("api/v1/open-api", data=file_input.read(), params=params, content_type="application/openapi;charset=UTF-8")
|
|
110
|
+
if _print:
|
|
111
|
+
print_output_with_context(ctx, r)
|
|
211
112
|
|
|
212
113
|
@app.command()
|
|
213
114
|
def delete(
|
|
@@ -239,7 +140,6 @@ def delete_by_type(
|
|
|
239
140
|
|
|
240
141
|
client.delete("api/v1/catalog", params=params)
|
|
241
142
|
|
|
242
|
-
|
|
243
143
|
@app.command()
|
|
244
144
|
def descriptor(
|
|
245
145
|
ctx: typer.Context,
|
|
@@ -270,48 +170,166 @@ def descriptor(
|
|
|
270
170
|
print_output_with_context(ctx, r)
|
|
271
171
|
|
|
272
172
|
@app.command()
|
|
273
|
-
def
|
|
173
|
+
def details(
|
|
274
174
|
ctx: typer.Context,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
175
|
+
hierarchy_depth: CatalogCommandOptions.hierarchy_depth = 'full',
|
|
176
|
+
include_hierarchy_fields: CatalogCommandOptions.include_hierarchy_fields = None,
|
|
177
|
+
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
178
|
+
table_output: ListCommandOptions.table_output = False,
|
|
179
|
+
csv_output: ListCommandOptions.csv_output = False,
|
|
180
|
+
no_headers: ListCommandOptions.no_headers = False,
|
|
181
|
+
columns: ListCommandOptions.columns = [],
|
|
182
|
+
filters: ListCommandOptions.filters = [],
|
|
278
183
|
):
|
|
279
184
|
"""
|
|
280
|
-
|
|
185
|
+
Get details for a specific entity in the catalog
|
|
281
186
|
"""
|
|
282
187
|
client = ctx.obj["client"]
|
|
283
188
|
|
|
189
|
+
if table_output and csv_output:
|
|
190
|
+
raise typer.BadParameter("Only one of --table and --csv can be specified")
|
|
191
|
+
|
|
192
|
+
if (table_output or csv_output) and not ctx.params.get('columns'):
|
|
193
|
+
ctx.params['columns'] = [
|
|
194
|
+
"ID=id",
|
|
195
|
+
"Tag=tag",
|
|
196
|
+
"Name=name",
|
|
197
|
+
"Type=type",
|
|
198
|
+
"Git Repository=git.repository",
|
|
199
|
+
]
|
|
200
|
+
|
|
201
|
+
output_format = "table" if table_output else "csv" if csv_output else "json"
|
|
202
|
+
|
|
284
203
|
params = {
|
|
285
|
-
"
|
|
204
|
+
"hierarchyDepth": hierarchy_depth,
|
|
205
|
+
"includeHierarchyFields": include_hierarchy_fields
|
|
286
206
|
}
|
|
287
207
|
|
|
288
|
-
|
|
289
|
-
if
|
|
290
|
-
|
|
208
|
+
# remove any params that are None
|
|
209
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
210
|
+
|
|
211
|
+
r = client.get("api/v1/catalog/" + tag, params=params)
|
|
212
|
+
|
|
213
|
+
data = r if output_format == 'json' else [r]
|
|
214
|
+
print_output_with_context(ctx, data)
|
|
291
215
|
|
|
292
216
|
@app.command()
|
|
293
|
-
def
|
|
217
|
+
def gitops_log(
|
|
294
218
|
ctx: typer.Context,
|
|
295
|
-
|
|
296
|
-
delete_marker_value = typer.Option("__delete__", "--delete-marker-value", "-dmv", help="Delete keys with this value from the merged yaml, defaults to __delete__, if any values match this, they will not be included in merged YAML. For example my_value: __delete__ will remove my_value from the merged YAML."),
|
|
297
|
-
dry_run: CatalogCommandOptions.dry_run = False,
|
|
298
|
-
append_arrays: CatalogCommandOptions.append_arrays = False,
|
|
299
|
-
fail_if_not_exist: CatalogCommandOptions.fail_if_not_exist = False,
|
|
219
|
+
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
300
220
|
):
|
|
301
221
|
"""
|
|
302
|
-
|
|
222
|
+
Retrieve most recent GitOps log for entity
|
|
223
|
+
"""
|
|
224
|
+
client = ctx.obj["client"]
|
|
225
|
+
|
|
226
|
+
r = client.get("api/v1/catalog/" + tag + "/gitops-logs")
|
|
227
|
+
print_output_with_context(ctx, r)
|
|
228
|
+
|
|
229
|
+
@app.command()
|
|
230
|
+
def k8s(
|
|
231
|
+
ctx: typer.Context,
|
|
232
|
+
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
233
|
+
table_output: ListCommandOptions.table_output = False,
|
|
234
|
+
csv_output: ListCommandOptions.csv_output = False,
|
|
235
|
+
no_headers: ListCommandOptions.no_headers = False,
|
|
236
|
+
columns: ListCommandOptions.columns = [],
|
|
237
|
+
filters: ListCommandOptions.filters = [],
|
|
238
|
+
):
|
|
239
|
+
"""
|
|
240
|
+
Get Kubernetes resource details for an entity
|
|
241
|
+
"""
|
|
242
|
+
client = ctx.obj["client"]
|
|
243
|
+
|
|
244
|
+
if table_output and csv_output:
|
|
245
|
+
raise typer.BadParameter("Only one of --table and --csv can be specified")
|
|
246
|
+
|
|
247
|
+
if (table_output or csv_output) and not ctx.params.get('columns'):
|
|
248
|
+
ctx.params['columns'] = [
|
|
249
|
+
"Namespace=namespace",
|
|
250
|
+
"Name=name",
|
|
251
|
+
"Cluster=cluster",
|
|
252
|
+
"Type=type",
|
|
253
|
+
"Last Updated=lastUpdated",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
r = client.get("api/v1/catalog/" + tag + "/k8s")
|
|
257
|
+
print_output_with_context(ctx, r)
|
|
258
|
+
|
|
259
|
+
@app.command(name="list")
|
|
260
|
+
def catalog_list(
|
|
261
|
+
ctx: typer.Context,
|
|
262
|
+
include_archived: CatalogCommandOptions.include_archived = False,
|
|
263
|
+
hierarchy_depth: CatalogCommandOptions.hierarchy_depth = 'full',
|
|
264
|
+
groups: CatalogCommandOptions.groups = None,
|
|
265
|
+
owners: CatalogCommandOptions.owners = None,
|
|
266
|
+
include_hierarchy_fields: CatalogCommandOptions.include_hierarchy_fields = None,
|
|
267
|
+
include_nested_fields: CatalogCommandOptions.include_nested_fields = None,
|
|
268
|
+
include_owners: CatalogCommandOptions.include_owners = False,
|
|
269
|
+
include_links: CatalogCommandOptions.include_links = False,
|
|
270
|
+
include_metadata: CatalogCommandOptions.include_metadata = False,
|
|
271
|
+
git_repositories: CatalogCommandOptions.git_repositories = None,
|
|
272
|
+
types: CatalogCommandOptions.types = None,
|
|
273
|
+
page: ListCommandOptions.page = None,
|
|
274
|
+
page_size: ListCommandOptions.page_size = 250,
|
|
275
|
+
table_output: ListCommandOptions.table_output = False,
|
|
276
|
+
csv_output: ListCommandOptions.csv_output = False,
|
|
277
|
+
columns: ListCommandOptions.columns = [],
|
|
278
|
+
no_headers: ListCommandOptions.no_headers = False,
|
|
279
|
+
filters: ListCommandOptions.filters = [],
|
|
280
|
+
sort: ListCommandOptions.sort = [],
|
|
281
|
+
_print: CommandOptions._print = True,
|
|
282
|
+
):
|
|
283
|
+
"""
|
|
284
|
+
List entities in the catalog
|
|
303
285
|
"""
|
|
304
286
|
client = ctx.obj["client"]
|
|
305
287
|
|
|
288
|
+
if (table_output or csv_output) and not ctx.params.get('columns'):
|
|
289
|
+
ctx.params['columns'] = [
|
|
290
|
+
"ID=id",
|
|
291
|
+
"Tag=tag",
|
|
292
|
+
"Name=name",
|
|
293
|
+
"Type=type",
|
|
294
|
+
"Git Repository=git.repository",
|
|
295
|
+
]
|
|
296
|
+
|
|
306
297
|
params = {
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
"
|
|
298
|
+
"includeArchived": include_archived,
|
|
299
|
+
"hierarchyDepth": hierarchy_depth,
|
|
300
|
+
"groups": groups,
|
|
301
|
+
"owners": owners,
|
|
302
|
+
"includeHierarchyFields": include_hierarchy_fields,
|
|
303
|
+
"includeNestedFields": include_nested_fields,
|
|
304
|
+
"includeOwners": include_owners,
|
|
305
|
+
"includeLinks": include_links,
|
|
306
|
+
"includeMetadata": include_metadata,
|
|
307
|
+
"page": page,
|
|
308
|
+
"pageSize": page_size,
|
|
309
|
+
"gitRepositories": git_repositories,
|
|
310
|
+
"types": types,
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
# remove any params that are None
|
|
314
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
315
|
+
|
|
316
|
+
# for keys that can have multiple values, remove whitespace around comma and split on comma
|
|
317
|
+
for key in ['groups', 'owners', 'gitRepositories', 'types']:
|
|
318
|
+
if key in params:
|
|
319
|
+
params[key] = [x.strip() for x in params[key].split(',')]
|
|
320
|
+
|
|
321
|
+
if page is None:
|
|
322
|
+
# if page is not specified, we want to fetch all pages
|
|
323
|
+
r = client.fetch("api/v1/catalog", params=params)
|
|
324
|
+
else:
|
|
325
|
+
# if page is specified, we want to fetch only that page
|
|
326
|
+
r = client.get("api/v1/catalog", params=params)
|
|
327
|
+
|
|
328
|
+
if _print:
|
|
329
|
+
data = r
|
|
330
|
+
print_output_with_context(ctx, data)
|
|
331
|
+
else:
|
|
332
|
+
return(r)
|
|
315
333
|
|
|
316
334
|
@app.command()
|
|
317
335
|
def list_descriptors(
|
|
@@ -339,16 +357,27 @@ def list_descriptors(
|
|
|
339
357
|
return(r)
|
|
340
358
|
|
|
341
359
|
@app.command()
|
|
342
|
-
def
|
|
360
|
+
def patch(
|
|
343
361
|
ctx: typer.Context,
|
|
344
|
-
|
|
362
|
+
file_input: Annotated[typer.FileText, typer.Option(..., "--file", "-f", help=" File containing YAML content of entity; can be passed as stdin with -, example: -f-")] = None,
|
|
363
|
+
delete_marker_value = typer.Option("__delete__", "--delete-marker-value", "-dmv", help="Delete keys with this value from the merged yaml, defaults to __delete__, if any values match this, they will not be included in merged YAML. For example my_value: __delete__ will remove my_value from the merged YAML."),
|
|
364
|
+
dry_run: CatalogCommandOptions.dry_run = False,
|
|
365
|
+
append_arrays: CatalogCommandOptions.append_arrays = False,
|
|
366
|
+
fail_if_not_exist: CatalogCommandOptions.fail_if_not_exist = False,
|
|
345
367
|
):
|
|
346
368
|
"""
|
|
347
|
-
|
|
369
|
+
Creates or updates an entity. If the YAML refers to an entity that already exists (as referenced by the x-cortex-tag), this API will merge the specified changes into the existing entity
|
|
348
370
|
"""
|
|
349
371
|
client = ctx.obj["client"]
|
|
350
372
|
|
|
351
|
-
|
|
373
|
+
params = {
|
|
374
|
+
"dryRun":dry_run,
|
|
375
|
+
"appendArrays": append_arrays,
|
|
376
|
+
"deleteMarkerValue": delete_marker_value,
|
|
377
|
+
"failIfEntityDoesNotExist": fail_if_not_exist
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
r = client.patch("api/v1/open-api", data=file_input.read(), params=params, content_type="application/openapi;charset=UTF-8")
|
|
352
381
|
print_output_with_context(ctx, r)
|
|
353
382
|
|
|
354
383
|
@app.command()
|
|
@@ -363,3 +392,16 @@ def scorecard_scores(
|
|
|
363
392
|
|
|
364
393
|
r = client.get("api/v1/catalog/" + tag + "/scorecards")
|
|
365
394
|
print_output_with_context(ctx, r)
|
|
395
|
+
|
|
396
|
+
@app.command()
|
|
397
|
+
def unarchive(
|
|
398
|
+
ctx: typer.Context,
|
|
399
|
+
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
400
|
+
):
|
|
401
|
+
"""
|
|
402
|
+
Unarchive an entity
|
|
403
|
+
"""
|
|
404
|
+
client = ctx.obj["client"]
|
|
405
|
+
|
|
406
|
+
r = client.put("api/v1/catalog/" + tag + "/unarchive")
|
|
407
|
+
print_output_with_context(ctx, r)
|
|
@@ -100,6 +100,7 @@ def update(
|
|
|
100
100
|
ctx: typer.Context,
|
|
101
101
|
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help=" File containing custom entity definition; can be passed as stdin with -, example: -f-")] = None,
|
|
102
102
|
entity_type: str = typer.Option(..., "--type", "-t", help="The entity type"),
|
|
103
|
+
_print: CommandOptions._print = True,
|
|
103
104
|
):
|
|
104
105
|
"""
|
|
105
106
|
Update entity type
|
|
@@ -108,7 +109,11 @@ def update(
|
|
|
108
109
|
client = ctx.obj["client"]
|
|
109
110
|
data = json.loads("".join([line for line in file_input]))
|
|
110
111
|
|
|
111
|
-
r = client.
|
|
112
|
+
r = client.put("api/v1/catalog/definitions/" + entity_type, data=data)
|
|
113
|
+
if _print:
|
|
114
|
+
print_output_with_context(ctx, r)
|
|
115
|
+
else:
|
|
116
|
+
return(r)
|
|
112
117
|
|
|
113
118
|
@app.command()
|
|
114
119
|
def get(
|
{cortexapps_cli-1.23.0 → cortexapps_cli-1.25.0}/cortexapps_cli/commands/integrations_commands/aws.py
RENAMED
|
@@ -146,7 +146,7 @@ def validate(
|
|
|
146
146
|
|
|
147
147
|
client = ctx.obj["client"]
|
|
148
148
|
|
|
149
|
-
r = client.post("api/v1/aws/configurations/validate" + accountId)
|
|
149
|
+
r = client.post("api/v1/aws/configurations/validate/" + accountId)
|
|
150
150
|
print_json(data=r)
|
|
151
151
|
|
|
152
152
|
@app.command()
|
|
@@ -159,7 +159,7 @@ def validate_all(
|
|
|
159
159
|
|
|
160
160
|
client = ctx.obj["client"]
|
|
161
161
|
|
|
162
|
-
r = client.post("api/v1/aws/configurations")
|
|
162
|
+
r = client.post("api/v1/aws/configurations/all/validate")
|
|
163
163
|
print_json(data=r)
|
|
164
164
|
|
|
165
165
|
@app.command()
|
|
@@ -157,7 +157,7 @@ def validate(
|
|
|
157
157
|
|
|
158
158
|
client = ctx.obj["client"]
|
|
159
159
|
|
|
160
|
-
r = client.post("api/v1/azure-devops/
|
|
160
|
+
r = client.post("api/v1/azure-devops/configuration/validate/" + alias)
|
|
161
161
|
print_json(data=r)
|
|
162
162
|
|
|
163
163
|
@app.command()
|
|
@@ -170,5 +170,5 @@ def validate_all(
|
|
|
170
170
|
|
|
171
171
|
client = ctx.obj["client"]
|
|
172
172
|
|
|
173
|
-
r = client.post("api/v1/azure-devops/
|
|
173
|
+
r = client.post("api/v1/azure-devops/configuration/validate")
|
|
174
174
|
print_json(data=r)
|
|
@@ -183,7 +183,7 @@ def validate(
|
|
|
183
183
|
|
|
184
184
|
client = ctx.obj["client"]
|
|
185
185
|
|
|
186
|
-
r = client.post("api/v1/azure-resources/
|
|
186
|
+
r = client.post("api/v1/azure-resources/configuration/validate/" + alias)
|
|
187
187
|
print_json(data=r)
|
|
188
188
|
|
|
189
189
|
@app.command()
|
|
@@ -196,7 +196,7 @@ def validate_all(
|
|
|
196
196
|
|
|
197
197
|
client = ctx.obj["client"]
|
|
198
198
|
|
|
199
|
-
r = client.post("api/v1/azure-resources/
|
|
199
|
+
r = client.post("api/v1/azure-resources/configuration/validate")
|
|
200
200
|
print_json(data=r)
|
|
201
201
|
|
|
202
202
|
@app.command()
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/circleci/
|
|
156
|
+
r = client.post("api/v1/circleci/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/circleci/
|
|
169
|
+
r = client.post("api/v1/circleci/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -162,7 +162,7 @@ def validate(
|
|
|
162
162
|
|
|
163
163
|
client = ctx.obj["client"]
|
|
164
164
|
|
|
165
|
-
r = client.post("api/v1/coralogix/
|
|
165
|
+
r = client.post("api/v1/coralogix/configuration/validate/" + alias)
|
|
166
166
|
print_json(data=r)
|
|
167
167
|
|
|
168
168
|
@app.command()
|
|
@@ -175,5 +175,5 @@ def validate_all(
|
|
|
175
175
|
|
|
176
176
|
client = ctx.obj["client"]
|
|
177
177
|
|
|
178
|
-
r = client.post("api/v1/coralogix/
|
|
178
|
+
r = client.post("api/v1/coralogix/configuration/validate")
|
|
179
179
|
print_json(data=r)
|
|
@@ -161,7 +161,7 @@ def validate(
|
|
|
161
161
|
|
|
162
162
|
client = ctx.obj["client"]
|
|
163
163
|
|
|
164
|
-
r = client.post("api/v1/datadog/
|
|
164
|
+
r = client.post("api/v1/datadog/configuration/validate/" + alias)
|
|
165
165
|
print_json(data=r)
|
|
166
166
|
|
|
167
167
|
@app.command()
|
|
@@ -174,5 +174,5 @@ def validate_all(
|
|
|
174
174
|
|
|
175
175
|
client = ctx.obj["client"]
|
|
176
176
|
|
|
177
|
-
r = client.post("api/v1/datadog/
|
|
177
|
+
r = client.post("api/v1/datadog/configuration/validate")
|
|
178
178
|
print_json(data=r)
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/gitlab/
|
|
156
|
+
r = client.post("api/v1/gitlab/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/gitlab/
|
|
169
|
+
r = client.post("api/v1/gitlab/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/incidentio/
|
|
156
|
+
r = client.post("api/v1/incidentio/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/incidentio/
|
|
169
|
+
r = client.post("api/v1/incidentio/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/launchdarkly/
|
|
156
|
+
r = client.post("api/v1/launchdarkly/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/launchdarkly/
|
|
169
|
+
r = client.post("api/v1/launchdarkly/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/pagerduty/
|
|
156
|
+
r = client.post("api/v1/pagerduty/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/pagerduty/
|
|
169
|
+
r = client.post("api/v1/pagerduty/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -159,7 +159,7 @@ def validate(
|
|
|
159
159
|
|
|
160
160
|
client = ctx.obj["client"]
|
|
161
161
|
|
|
162
|
-
r = client.post("api/v1/prometheus/
|
|
162
|
+
r = client.post("api/v1/prometheus/configuration/validate/" + alias)
|
|
163
163
|
print_json(data=r)
|
|
164
164
|
|
|
165
165
|
@app.command()
|
|
@@ -172,5 +172,5 @@ def validate_all(
|
|
|
172
172
|
|
|
173
173
|
client = ctx.obj["client"]
|
|
174
174
|
|
|
175
|
-
r = client.post("api/v1/prometheus/
|
|
175
|
+
r = client.post("api/v1/prometheus/configuration/validate")
|
|
176
176
|
print_json(data=r)
|
|
@@ -153,7 +153,7 @@ def validate(
|
|
|
153
153
|
|
|
154
154
|
client = ctx.obj["client"]
|
|
155
155
|
|
|
156
|
-
r = client.post("api/v1/sonarqube/
|
|
156
|
+
r = client.post("api/v1/sonarqube/configuration/validate/" + alias)
|
|
157
157
|
print_json(data=r)
|
|
158
158
|
|
|
159
159
|
@app.command()
|
|
@@ -166,5 +166,5 @@ def validate_all(
|
|
|
166
166
|
|
|
167
167
|
client = ctx.obj["client"]
|
|
168
168
|
|
|
169
|
-
r = client.post("api/v1/sonarqube/
|
|
169
|
+
r = client.post("api/v1/sonarqube/configuration/validate")
|
|
170
170
|
print_json(data=r)
|
|
@@ -147,7 +147,12 @@ class CortexClient:
|
|
|
147
147
|
self.rate_limiter.acquire()
|
|
148
148
|
|
|
149
149
|
start_time = time.time()
|
|
150
|
-
|
|
150
|
+
try:
|
|
151
|
+
response = self.session.request(method, url, params=params, headers=req_headers, data=req_data)
|
|
152
|
+
except requests.exceptions.ConnectionError as e:
|
|
153
|
+
print(f'[red][bold]Connection error[/bold][/red]: Could not connect to {url}')
|
|
154
|
+
print(f' [dim]{e}[/dim]')
|
|
155
|
+
raise typer.Exit(code=1)
|
|
151
156
|
duration = time.time() - start_time
|
|
152
157
|
|
|
153
158
|
# Log slow requests or non-200 responses (likely retries happened)
|