Skip to content

Cani alpha export csm

cani alpha export csm

Export inventory using the csm provider

Synopsis

Export inventory using the csm provider

cani alpha export csm [flags]

Options

      --commit                 Push changes to the remote CSM system
      --dryrun                 Perform a dry run without applying changes
      --headers string         Comma-separated list of CSV columns to include (default "Type,Vlan,Role,SubRole,Status,Nid,Alias,Name,ID")
  -t, --type string            Comma-separated list of hardware types to include (default "Node,Cabinet")
  -a, --all                    Include all hardware types (overrides --type)
      --format string          Output format: csv, sls-json (default "csv")
      --ignore-validation      Skip validation (only applies to sls-json format)
  -S, --use-simulator          Use simulation mode (localhost:8443, no auth, skip TLS verification)
  -k, --insecure               Skip TLS certificate verification
      --csm-api-host string    FQDN or host:port of the CSM API gateway (default "api-gw-service.local")
      --csm-keycloak-username string Keycloak username for authentication
      --csm-keycloak-password string Keycloak password for authentication
      --csm-url-sls string     Override the SLS API base URL
      --csm-url-hsm string     Override the HSM API base URL
      --csm-ca-cert string     Path to a PEM-encoded CA certificate
      --csm-k8s-pods-cidr string CIDR used by Kubernetes for pods (default "10.32.0.0/12")
      --csm-k8s-services-cidr string CIDR used by Kubernetes for services (default "10.16.0.0/12")

Options inherited from parent commands

      --merge                  Update existing devices instead of skipping conflicts
      --dry-run                Preview changes without making API calls
      --config string          config file (default "/home/runner/.cani/cani.yml")
      --debug                  enable debug mode
      --datastore string       datastore type (json, postgres) (default "json")
      --datastore-path string  override path to the datastore file (for testing)
      --types-dirs stringSlice local directories with additional hardware types
      --types-repos stringSlice git repo URLs with additional hardware types
      --types-repo-clone       clone types repos that are not yet cached locally
      --types-repo-pull        pull latest changes from types repos on startup
      --strict                 require a resolved device type (slug) for all devices (default true)

SEE ALSO