2.10. 방법


3scale toolbox를 사용하여 개발자 포털에서 메서드를 생성, 적용, 나열 및 삭제합니다.

2.10.1. 방법 생성

  • 메서드 이름을 제공해야 합니다.
  • system-name 을 재정의하려면 선택적 매개변수를 사용합니다.
  • 동일한 이름의 메서드가 이미 존재하는 경우 오류 메시지가 표시됩니다.
  • -- disabled 플래그로 비활성화된 방법을 생성합니다.

    • 기본적으로 활성화되어 있습니다.
참고
  • 서비스 위치 인수는 서비스 참조이며 서비스 ID 또는 서비스 system_name 일 수 있습니다.

    • 도구 상자는 둘 중 하나를 사용합니다.

다음 명령은 메서드를 생성합니다.

3scale method create [opts] <remote> <service> <method-name>

방법을 생성하는 동안 다음 옵션을 사용합니다.

Option
       --description=<value>      This will set a method description
       --disabled                 This will disable this method in all
                                  application plans
    -t --system-name=<value>      This will set the method system name

Options for method
    -c --config-file=<value>      3scale toolbox configuration file (default:
                                  $HOME/.3scalerc.yaml)
    -h --help                     show help for this command
    -k --insecure                 Proceed and operate even for server
                                  connections otherwise considered insecure
    -v --version                  This will print the version of this command
       --verbose                  Verbose mode

2.10.2. 방법 생성 또는 업데이트

새 메서드를 생성하지 않은 경우 새 방법을 생성하거나 기존 메서드를 업데이트하려면 다음 단계를 사용합니다.

  • 동일한 이름의 메서드가 이미 있으면 명령이 실패합니다.
  • -- disabled 플래그를 사용하여 disabled 메서드로 업데이트합니다.
  • -- enabled 플래그를 사용하여 활성화된 메서드로 업데이트합니다.
참고
  • 서비스 위치 인수는 서비스 참조이며 서비스 ID 또는 서비스 system_name 일 수 있습니다.

    • 도구 상자는 둘 중 하나를 사용합니다.
  • 메서드 위치 인수는 메서드 참조이며 메서드 id 또는 method system_name 일 수 있습니다.

    • 도구 상자는 둘 중 하나를 사용합니다.

다음 명령은 방법을 업데이트합니다.

3scale method apply [opts] <remote> <service> <method>

방법을 업데이트하는 동안 다음 옵션을 사용합니다.

Options
       --description=<value>      This will set a method description
       --disabled                 This will disable this method in all
                                  application plans
       --enabled                  This will enable this method in all
                                  application plans
    -n --name=<value>             This will set the method name

Options for method
    -c --config-file=<value>      3scale toolbox configuration file
                                  (default: $HOME/.3scalerc.yaml)
    -h --help                     This will show help for this command
    -k --insecure                 Proceed and operate even for server
                                  connections otherwise considered insecure
    -v --version                  This will print the version of this command
       --verbose                  Verbose mode

2.10.3. 메서드 나열

다음 명령은 방법을 나열합니다.

3scale method list [opts] <remote> <service>

메서드를 나열하는 동안 다음 옵션을 사용합니다.

Options for method
    -c --config-file=<value>      3scale toolbox configuration file
                                  (default: $HOME/.3scalerc.yaml)
    -h --help                     show help for this command
    -k --insecure                 Proceed and operate even for server
                                  connections otherwise considered insecure
    -v --version                  This will print the version of this command
       --verbose                  Verbose mode

2.10.4. 방법 삭제

다음 명령은 방법을 삭제합니다.

3scale method delete [opts] <remote> <service> <metric>

방법을 삭제하는 동안 다음 옵션을 사용합니다.

Options for method
    -c --config-file=<value>      3scale toolbox configuration file
                                  (default: $HOME/.3scalerc.yaml)
    -h --help                     show help for this command
    -k --insecure                 Proceed and operate even for server
                                  connections otherwise considered insecure
    -v --version                  This will print the version of this command
       --verbose                  Verbose mode
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.