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

리소스 조회 명령

원문 보기 위키 갱신

리소스 조회 명령 (kongctl get)

이 문서는 kongctl CLI에서 리소스와 리소스 상세 정보를 조회할 때 사용하는 get 명령을 설명해요. 터미널 텍스트 출력은 필드가 생략될 수 있어서 완전한 구조화된 결과가 필요하면 --output json이나 --output yaml 옵션을 쓰면 좋아요. --columns 플래그로 원하는 필드만 골라 출력할 수도 있어요. AI Gateway부터 API, Portal, 감사 로그까지 리소스별 하위 명령과 사용 예시가 정리되어 있으니 필요한 명령을 바로 찾아보세요

출처: 문서

본문

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

kongctl get ai-gateway

설명: AI Gateway 세부 정보를 조회해요.

kongctl get analytics

설명: Konnect Observability 세부 정보를 조회해요.

kongctl get api

설명: API 세부 정보를 조회해요.

kongctl get audit-logs

설명: 감사 로그를 조회해요.

kongctl get auth-strategy

설명: 인증 전략 세부 정보를 조회해요.

kongctl get catalog

설명: Catalog 세부 정보를 조회해요.

kongctl get dcr-provider

설명: DCR 공급자를 나열하거나 조회해요.

kongctl get event-gateway

설명: Event Gateway 세부 정보를 조회해요.

kongctl get extension

설명: kongctl CLI 확장을 조회해요.

kongctl get gateway

설명: 게이트웨이 정보를 조회해요.

kongctl get konnect

설명: Konnect 계정 정보를 조회해요.

kongctl get me

설명: 현재 사용자 정보를 조회해요.

kongctl get organization

설명: 조직 세부 정보를 조회해요.

kongctl get pat

설명: Konnect 개인 액세스 토큰을 조회해요.

kongctl get portal

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

kongctl get profile

설명: 사용자 프로필을 조회해요.

kongctl get regions

설명: 사용 가능한 리전을 조회해요.

kongctl get spat

설명: Konnect 시스템 계정 액세스 토큰을 조회해요.

명령어 사용법

Usage:
  kongctl get [flags]
  kongctl get [command]

Aliases:
  get, g, G

Examples:
  # Retrieve Konnect portals
  kongctl get portals
  # Retrieve Konnect APIs
  kongctl get apis
  # Retrieve Konnect Analytics dashboards
  kongctl get analytics dashboards
  # Retrieve Konnect auth strategies
  kongctl get auth-strategies
  # Retrieve Konnect DCR providers
  kongctl get dcr-providers
  # Retrieve Konnect control planes (Konnect-first)
  kongctl get gateway control-planes
  # Retrieve Konnect control planes (explicit)
  kongctl get konnect gateway control-planes
  # Retrieve Konnect audit-log destinations
  kongctl get audit-logs destinations

Available Commands:
  ai-gateway    List or get Konnect AI Gateways
  analytics     Manage Konnect Analytics resources
  api           List or get Konnect APIs
  audit-logs    Get Konnect organization audit logs
  auth-strategy List or get Konnect authentication strategies
  catalog       Manage Konnect catalog resources
  dcr-provider  List or get Konnect DCR providers
  event-gateway List or get Konnect Event Gateways
  extension     Get a kongctl CLI extension
  gateway       Manage Konnect Kong Gateway resources
  konnect       Manage Konnect resources
  me            Get current user information
  organization  Get current organization information
  pat           List or get Konnect personal access tokens
  portal        List or get Konnect portals
  profile       Manage kongctl profiles
  regions       List available Konnect regions
  spat          List or get Konnect system account access tokens


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 get
      --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 get [command] --help" for more information about a command.

관련 리소스

더 알아보기 (Learn more)