5.10. 애플리케이션 계획 생성
3scale toolbox를 사용하여 개발자 포털에서 애플리케이션 계획을 생성, 업데이트, 나열, 삭제, 표시 또는 내보내기/가져오기합니다.
5.10.1. 새 애플리케이션 계획 생성
다음 단계를 사용하여 새 애플리케이션 계획을 생성합니다.
- 애플리케이션 계획 이름을 제공해야 합니다.
-
system-name
을 재정의하려면 선택적 매개 변수를 사용합니다. - 동일한 이름의 애플리케이션 계획이 이미 존재하는 경우 오류 메시지가 표시됩니다.
-
기본적으로
--
플래그를 사용하여 애플리케이션 계획으로 설정합니다.default
--publish
플래그를 사용하여게시된
애플리케이션 계획을 생성합니다.-
기본적으로
숨겨
집니다.
-
기본적으로
--
플래그를 사용하여 비활성화된 애플리케이션 계획을 생성합니다.disabled
-
기본적으로
활성화되어
있습니다.
-
기본적으로
서비스
위치 인수는 서비스 참조이며 서비스 ID 또는 서비스system_name
이 될 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
다음 명령은 새 애플리케이션 계획을 생성합니다.
3scale application-plan create [opts] <remote> <service> <plan-name>
애플리케이션 계획을 생성하는 동안 다음 옵션을 사용합니다.
Options --approval-required=<value> The application requires approval: true or false --cost-per-month=<value> Cost per month --default Make the default application plan --disabled Disable all methods and metrics in the application plan -o --output=<value> Output format on stdout: one of json|yaml -p --published Publish the application plan --setup-fee=<value> Set-up fee -t --system-name=<value> Set application plan system name --trial-period-days=<value> The trial period in days Options for application-plan -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
5.10.2. 애플리케이션 계획 생성 또는 업데이트
다음 단계를 사용하여 새 애플리케이션 계획이 없는 경우 또는 기존 애플리케이션 계획을 업데이트할 수 있습니다.
-
--
플래그를 사용하여 기본 애플리케이션 계획을 업데이트합니다.default
-
--publish
플래그를 사용하여게시된
애플리케이션 계획을 업데이트합니다. -
--hide
플래그를 사용하여숨겨진
애플리케이션 계획을 업데이트합니다. -
--
플래그를 사용하여 비활성화된 애플리케이션 계획을 업데이트합니다.disabled
-
--
플래그를 사용하여 활성화된 애플리케이션 계획을 업데이트합니다.enabled
서비스
위치 인수는 서비스 참조이며 서비스 ID 또는 서비스system_name
이 될 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
계획
위치 인수는 계획 참조이며 계획id
또는 plansystem_name
일 수 있습니다.- toolbox는 둘 중 하나를 사용합니다.
다음 명령은 애플리케이션 계획을 업데이트합니다.
3scale application-plan create [opts] <remote> <service> <plan>
애플리케이션 계획을 업데이트하는 동안 다음 옵션을 사용합니다.
Options --approval-required=<value> The application requires approval: true or false --cost-per-month=<value> Cost per month --default Make the default application plan --disabled Disable all methods and metrics in the application plan --enabled Enable the application plan --hide Hide the application plan -n --name=<value> Set the plan name -o --output=<value> Output format on stdout: one of json|yaml -p --publish Publish the application plan --setup-fee=<value> Set-up fee --trial-period-days=<value> The trial period in days Options for application-plan -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
5.10.3. 애플리케이션 계획 나열
다음 명령은 애플리케이션 계획을 나열합니다.
3scale application-plan list [opts] <remote> <service>
애플리케이션 계획을 나열하는 동안 다음 옵션을 사용합니다.
Options -o --output=<value> Output format on stdout: one of json|yaml Options for application-plan -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
5.10.4. 애플리케이션 계획 표시
다음 명령은 애플리케이션 계획을 보여줍니다.
3scale application-plan show [opts] <remote> <service> <plan>
애플리케이션 계획을 표시하는 동안 다음 옵션을 사용합니다.
Options -o --output=<value> Output format on stdout: one of json|yaml Options for application-plan -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
5.10.5. 애플리케이션 계획 삭제
다음 명령은 애플리케이션 계획을 삭제합니다.
3scale application-plan delete [opts] <remote> <service> <plan>
애플리케이션 계획을 삭제하는 동안 다음 옵션을 사용합니다.
Options for application-plan -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
5.10.6. 애플리케이션 계획 내보내기/가져오기
단일 애플리케이션 계획을 yaml 콘텐츠로 또는 yaml
콘텐츠로 내보내거나 가져올 수 있습니다.
다음을 확인합니다.
- 애플리케이션 계획에 정의된 제한이 포함되어 있습니다.
- 애플리케이션 계획에 정의된 가격 규칙이 포함됩니다.
- 제한 및 가격 규칙에 의해 참조되는 메트릭/메서드가 포함됩니다.
- 애플리케이션 계획에 정의된 기능이 포함되어 있습니다.
-
서비스는
id
또는system_name
에서 참조할 수 있습니다. -
애플리케이션 계획은
id
또는system_name
에서 참조할 수 있습니다.
5.10.6.1. 애플리케이션 계획을 파일로 내보내기
다음 명령은 애플리케이션 계획을 내보냅니다.
3scale application-plan export [opts] <remote> <service_system_name> <plan_system_name>
예제
$ podman run -u root -v $PWD:/tmp registry.redhat.io/3scale-amp2/toolbox-rhel8:3scale2.13 3scale application-plan export --file=/tmp/plan.yaml remote_name service_name plan_name
이 예에서는 Podman 볼륨을 사용하여 현재 $PWD
폴더로 출력을 위해 내보낸 파일을 컨테이너에 마운트합니다.
내보내기
명령에 따라 다릅니다.
- 원격 서비스 및 애플리케이션 계획에서만 읽기.
명령 출력은
stdout
또는 파일일 수 있습니다.-
-f
옵션으로 지정하지 않으면 기본적으로yaml
콘텐츠가stdout
에 작성됩니다.
-
애플리케이션 계획을 내보내는 동안 다음 옵션을 사용합니다.
Options -f --file=<value> Write to file instead of stdout Options for application-plan -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
5.10.6.2. 파일에서 애플리케이션 계획 가져오기
다음 명령은 애플리케이션 계획을 가져옵니다.
3scale application-plan import [opts] <remote> <service_system_name>
예제
$ podman run -v $PWD/plan.yaml:/tmp/plan.yaml registry.redhat.io/3scale-amp2/toolbox-rhel8:3scale2.13 3scale application-plan import --file=/tmp/plan.yaml remote_name service_name
이 예에서는 Podman 볼륨을 사용하여 현재 $PWD
폴더의 컨테이너에 가져온 파일을 마운트합니다.
5.10.6.3. URL에서 애플리케이션 계획 가져오기
3scale application-plan import -f http[s]://domain/resource/path.yaml remote_name service_name
import 명령과 관련이 있습니다.
명령 입력 콘텐츠는
stdin
, 파일 또는 URL 형식일 수 있습니다.-
-f
옵션으로 지정하지 않으면 기본적으로yaml
콘텐츠를stdin
에서 읽습니다.
-
- 원격 서비스에서 애플리케이션 계획을 찾을 수 없는 경우 생성됩니다.
원격 대상 애플리케이션
계획
id
또는system_name
을 재정의하는 선택적 param-p
.-
-p
옵션으로 지정하지 않으면 기본적으로yaml
콘텐츠의 plan attributesystem_name
에서 애플리케이션 계획을 참조합니다.
-
- 원격 서비스에서 찾을 수 없는 yaml 콘텐츠의 지표 또는 방법이 생성됩니다.
애플리케이션 계획을 가져오는 동안 다음 옵션을 사용합니다.
Options -f --file=<value> Read from file or URL instead of stdin -p --plan=<value> Override application plan reference Options for application-plan -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