본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

kongctl 리소스 목록 조회

원문 보기 위키 갱신

kongctl 리소스 목록 조회 (kongctl list)

kongctl list 명령어는 AI Gateway, API, 인증 전략, Portal 등 Konnect의 다양한 리소스를 한눈에 조회할 수 있는 도구예요. 기본 출력은 터미널에 맞게 최적화되어 일부 필드가 생략될 수 있고, --output json이나 --output yaml 옵션을 쓰면 완전한 구조화된 결과를 얻을 수 있어요. --columns HEADER=.field 플래그를 반복해서 지정하면 원하는 필드만 골라 텍스트로 확인할 수도 있어요. 이 문서에서는 하위 명령어 목록과 사용 예시, 주요 플래그를 함께 소개해요

출처: 문서

본문

텍스트 출력은 터미널에 맞게 최적화되어 있어서 일부 필드가 생략될 수 있어요. 완전한 구조화된 출력을 보려면 --output json이나 --output yaml을 사용하세요. 사용자 지정 텍스트 컬럼을 선택하려면 --columns HEADER=.field 플래그를 반복해서 사용하세요.

kongctl list ai-gateway

설명: AI 게이트웨이 목록을 조회해요.

kongctl list api

설명: API 목록을 조회해요.

kongctl list auth-strategy

설명: 인증 전략 목록을 조회해요.

kongctl list dcr-provider

설명: DCR 공급자 목록을 조회해요.

kongctl list extensions

설명: 설치된 kongctl CLI 확장 목록을 조회해요.

kongctl list gateway

설명: 게이트웨이 목록을 조회해요.

kongctl list konnect

설명: Konnect 리소스 목록을 조회해요.

kongctl list organization

설명: 조직 목록을 조회해요.

kongctl list portal

설명: Portal 구성 목록을 조회해요.

kongctl list profile

설명: kongctl 프로필 목록을 조회해요.

kongctl list themes

설명: Portal 테마 목록을 조회해요.

명령 사용법

Usage:
  kongctl list [flags]
  kongctl list [command]

Aliases:
  list, ls, l

Examples:
  # Retrieve Konnect control planes
  kongctl list konnect gateway control-planes
  # Retrieve Konnect control planes ('konnect' is implied)
  kongctl list gateway control-planes
  # Retrieve Konnect portals
  kongctl list portals
  # Retrieve Konnect APIs
  kongctl list apis
  # Retrieve Konnect auth strategies
  kongctl list auth-strategies
  # Retrieve kongctl extensions
  kongctl list extensions

Available Commands:
  ai-gateway    List or get Konnect AI Gateways
  api           List or get Konnect APIs
  auth-strategy List or get Konnect authentication strategies
  dcr-provider  List or get Konnect DCR providers
  extensions    List installed kongctl CLI extensions
  gateway       Manage Konnect Kong Gateway resources
  konnect       Manage Konnect resources
  organization  Get current organization information
  portal        List or get Konnect portals
  profile       Manage kongctl profiles
  themes        List available color themes


Flags:
      --base-url string         Base URL for Konnect API requests.
                                - Config path: [ konnect.base-url ]
                                - Default   : [ https://us.api.konghq.com ]
      --color-theme string      Configures the CLI UI/theme (prompt, tables, TUI elements).
                                - Config path: [ color-theme ]
                                - Examples   : [ auto, 3024_day, 3024_night, aardvark_blue, abernathy ]
                                - Reference  : [ https://github.com/lrstanley/bubbletint/blob/master/DEFAULT_TINTS.md ] (default "auto")
      --columns stringArray     Select text columns as HEADER=.field (repeatable or comma-separated).
                                Supports nested fields, quoted keys, array indexes, and string slices.
      --config-file string      Path to the configuration file to load.
                                - Environment variable: KONGCTL_CONFIG_FILE (overridden by this flag)
                                - Default: [ $XDG_CONFIG_HOME/kongctl/config.yaml ]
  -h, --help                    help for list
      --jq string               Filter JSON responses using jq expressions (powered by gojq for full jq compatibility)
      --jq-color string         Controls colorized output for jq filter results.
                                - Config path: [ jq.color.enabled ]
                                - Allowed    : [ auto|always|never ] (default "auto")
      --jq-color-theme string   Select the color theme used for jq filter results.
                                - Config path: [ jq.color.theme ]
                                - Examples   : [ friendly, github-dark, dracula ]
                                - Reference  : [ https://xyproto.github.io/splash/docs/ ] (default "friendly")
  -r, --jq-raw-output           Output string jq results without JSON quotes (like jq -r).
                                - Config path: [ jq.raw-output ]
      --log-file string         Write execution logs to the specified file instead of STDERR.
                                - Config path: [ log-file ]
      --log-level string        Configures the logging level. Execution logs are written to STDERR.
                                - Config path: [ log-level ]
                                - Allowed    : [ trace|debug|info|warn|error ] (default "error")
      --no-telemetry            Disable telemetry for this command invocation. Overrides config and env.
                                - Config path: [ telemetry.enabled ]
                                - Env var    : [ KONGCTL_NO_TELEMETRY ]
                                - Default    : [ false ]
      --no-trunc                Preserve full cell widths in static text tables beyond terminal width.
                                Does not change column selection, UUID formatting, or explicit string slices.
                                - Config path: [ text.no-trunc ]
                                - Default    : [ false ]
  -o, --output string           Configures the format of data written to STDOUT.
                                - Config path: [ output ]
                                - Allowed    : [ json|yaml|text ] (default "text")
      --page-size int           Max number of results to include per response page for get and list operations.
                                - Config path: [ konnect.page-size ] (default 10)
      --pat string              Konnect Personal Access Token (PAT) used to authenticate the CLI.
                                Setting this value overrides tokens obtained from the login command.
                                - Config path: [ konnect.pat ]
  -p, --profile string          Specify the profile to use for this command. (default "default")
      --region string           Konnect region identifier (for example "eu"). Used to construct the base URL when --base-url is not provided.
                                - Config path: [ konnect.region ]
      --text-id-format string   Configure UUID rendering in static text-table ID columns.
                                - Config path: [ text.id-format ]
                                - Allowed    : [ compact|full ]
                                - Default    : [ compact ]
      --text-layout string      Configure static text-table column selection.
                                - Config path: [ text.layout ]
                                - Allowed    : [ compact|auto|wide ]
                                - Default    : [ compact ]

Use "kongctl list [command] --help" for more information about a command.

관련 리소스

더 알아보기 (Learn more)