hosts update

hosts update

hosts update 명령은 기존 호스트를 업데이트해요.

출처: HashiCorp Boundary docs

본문

예시

이 예시는 ID가 hst_1234567890인 호스트를 업데이트해서 이름 devops와 설명 For DevOps usage를 추가해요.

$ boundary hosts update -id hst_1234567890 -name devops -description "For DevOps usage"

사용법 (Usage)

$ boundary hosts update [type] <subcommand> [options] [args]

유형별 하위 명령의 자세한 사용법은 그 하위 명령의 도움말을 참고해요.

Subcommands:
    static    static 유형 호스트 업데이트

유형별 사용법 (Usages by type)

boundary hosts update static 명령은 static 유형 호스트를 업데이트해요.

예시

이 예시는 ID가 hst_1234567890인 static 유형 호스트를 업데이트해서 이름 devops, 설명 Static host for DevOps, 주소 10.20.30.40을 추가해요.

$ boundary hosts update static -id hst_1234567890 -name "devops" -description "Static host for DevOps" -address "10.20.30.40"

사용법

$ boundary hosts update static [options] [args]

명령 옵션 (Command options)

  • -description=<string> — 호스트에 설정할 설명이에요.
  • -id=<string> — 업데이트할 호스트의 ID예요.
  • -name=<string> — 호스트에 설정할 이름이에요.
  • -version=<int> — 업데이트할 호스트의 버전이에요. 버전을 지정하지 않으면 명령이 check-and-set을 자동으로 수행해요.

Static 호스트 옵션

  • -address=<string> — static 호스트의 주소예요.

CLI 옵션 (CLI options)

명령별 옵션 외에, 모든 CLI 명령과 하위 명령에 공통으로 적용되는 옵션들이 있어요.

  • 연결 옵션 (Connection options)
  • 클라이언트 옵션 (Client options)
  • 출력 옵션 (Output options)
  • 환경 변수 (Environment variables)

더 알아보기 (Learn more)