4.10. 방법 생성
3scale toolbox를 사용하여 개발자 포털에서 메서드를 생성, 적용, 나열 및 삭제합니다.
4.10.1. 방법 생성 링크 복사링크가 클립보드에 복사되었습니다!
방법을 생성하려면 다음 단계를 사용하십시오.
- 메서드 이름을 제공해야 합니다.
-
system-name을 재정의하려면 선택적 매개 변수를 사용합니다. - 같은 이름의 메서드가 이미 존재하는 경우 오류 메시지가 표시됩니다.
--disabled플래그를 사용하여비활성화된메서드를 생성합니다.-
기본적으로
활성화되어있습니다.
-
기본적으로
서비스위치 인수는 서비스 참조이며 서비스ID또는 서비스system_name일 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
다음 명령은 메서드를 생성합니다.
3scale method create [opts] <remote> <service> <method-name>
방법을 생성하는 동안 다음 옵션을 사용합니다.
Options
--description=<value> Set a method description
--disabled Disable this method in all
application plans
-o --output=<value> Output format on stdout:
one of json|yaml
-t --system-name=<value> Set the method system name
Options for method
-c --config-file=<value> 3scale toolbox configuration file:
defaults to $HOME/.3scalerc.yaml
-h --help Print help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Print the version of this command
--verbose Verbose mode
4.10.2. 생성 또는 업데이트 방법 링크 복사링크가 클립보드에 복사되었습니다!
새로운 메서드가 없는 경우 새 메서드를 생성하거나 기존 메서드를 업데이트하려면 아래 단계를 사용합니다.
- 같은 이름의 메서드가 이미 있으면 명령에서 오류 메시지를 반환합니다.
-
--disabled 플래그를 사용하여disabled메서드로 업데이트합니다. -
--enabled 플래그를 사용하여enabled메서드를 업데이트합니다.
서비스위치 인수는 서비스 참조이며 서비스ID또는 서비스system_name일 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
메서드위치 인수는 메서드 참조이며 메서드id또는 메서드system_name일 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
다음 명령은 메서드를 업데이트합니다.
3scale method apply [opts] <remote> <service> <method>
방법을 업데이트하는 동안 다음 옵션을 사용합니다.
Options
--description=<value> Set a method description
--disabled Disable this method in all
application plans
--enabled Enable this method in all
application plans
-n --name=<value> Set the method name
-o --output=<value> Output format on stdout:
one of json|yaml
Options for method
-c --config-file=<value> 3scale toolbox configuration file:
defaults to $HOME/.3scalerc.yaml
-h --help Print help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Print the version of this command
--verbose Verbose mode
4.10.3. 방법 나열 링크 복사링크가 클립보드에 복사되었습니다!
다음 명령은 메서드를 나열합니다.
3scale method list [opts] <remote> <service>
방법을 나열하는 동안 다음 옵션을 사용합니다.
Options
-o --output=<value> Output format on stdout:
one of json|yaml
Options for method
-c --config-file=<value> 3scale toolbox configuration file:
defaults to $HOME/.3scalerc.yaml
-h --help Print help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Print the version of this command
--verbose Verbose mode
4.10.4. 방법 삭제 링크 복사링크가 클립보드에 복사되었습니다!
다음 명령은 메서드를 삭제합니다.
3scale method delete [opts] <remote> <service> <metric>
방법을 삭제하는 동안 다음 옵션을 사용합니다.
Options for method
-c --config-file=<value> 3scale toolbox configuration file:
defaults to $HOME/.3scalerc.yaml
-h --help Print help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Print the version of this command
--verbose Verbose mode