2.8. 애플리케이션 계획
3scale toolbox를 사용하여 개발자 포털에서 애플리케이션 계획을 생성, 업데이트, 나열, 삭제, 표시 또는 내보냅니다.
2.8.1. 새 애플리케이션 계획 생성
다음 단계를 사용하여 새 애플리케이션 계획을 생성합니다.
- 애플리케이션 계획 이름을 제공해야 합니다.
-
system-name
을 재정의하려면 선택적 매개변수를 사용합니다. - 동일한 이름의 애플리케이션 계획이 이미 존재하는 경우 오류 메시지가 표시됩니다.
-
--
플래그를 사용하여 애플리케이션 계획을 기본값으로 설정합니다.default
--publish
플래그를 사용하여게시된
애플리케이션 계획을 생성합니다.-
기본적으로
숨겨
집니다.
-
기본적으로
--
플래그를 사용하여 비활성화된 애플리케이션 계획을 생성합니다.disabled
-
기본적으로
활성화되어
있습니다.
-
기본적으로
서비스
위치 인수는 서비스 참조이며 서비스 ID 또는 서비스system_name
일 수 있습니다.- 도구 상자는 둘 중 하나를 사용합니다.
다음 명령은 새 애플리케이션 계획을 생성합니다.
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 -d --default This will make the default application plan --disabled This will disable all methods and metrics in the application plan --end-user-required=<value> End user required: true or false -p --published This will publish the application plan --setup-fee=<value> Set-up fee -t --system-name=<value> This will 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 (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.8.2. 애플리케이션 계획 생성 또는 업데이트
다음 단계를 사용하여 새 애플리케이션 계획을 생성하거나 기존 애플리케이션 계획을 업데이트합니다.
-
--
플래그를 사용하여 기본 애플리케이션 계획을 업데이트합니다.default
-
--publish
플래그를 사용하여게시된
애플리케이션 계획을 업데이트합니다. -
--hide
플래그를 사용하여숨겨진
애플리케이션 계획을 업데이트합니다. -
--
플래그를 사용하여 비활성화된 애플리케이션 계획을 업데이트합니다.disabled
-
--
플래그를 사용하여 활성화된 애플리케이션 계획을 업데이트합니다.enabled
서비스
위치 인수는 서비스 참조이며 서비스 ID 또는 서비스system_name
일 수 있습니다.- 도구 상자는 둘 중 하나를 사용합니다.
계획
위치 인수는 계획 참조이며 계획 ID 또는 계획system_name
일 수 있습니다.- 도구 상자는 둘 중 하나를 사용합니다.
다음 명령은 애플리케이션 계획을 업데이트합니다.
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 This will make the default application plan --disabled This will disable all methods and metrics in the application plan --enabled This will enable the application plan --end-user-required=<value> End user required: true or false --hide This will hide the application plan -n --name=<value> This will set the plan name -p --publish This will 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 (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.8.3. 애플리케이션 계획 나열
다음 명령은 애플리케이션 계획을 나열합니다.
3scale application-plan list [opts] <remote> <service>
애플리케이션 계획을 나열하는 동안 다음 옵션을 사용합니다.
Options for application-plan -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.8.4. 애플리케이션 계획 표시
다음 명령은 애플리케이션 계획을 보여줍니다.
3scale application-plan show [opts] <remote> <service> <plan>
애플리케이션 계획을 표시하는 동안 다음 옵션을 사용합니다.
Options for application-plan -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.8.5. 애플리케이션 계획 삭제
다음 명령은 애플리케이션 계획을 삭제합니다.
3scale application-plan delete [opts] <remote> <service> <plan>
애플리케이션 계획을 삭제하는 동안 다음 옵션을 사용합니다.
Options for application-plan -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.8.6. 애플리케이션 계획 내보내기/가져오기
단일 애플리케이션 계획을 yaml
콘텐츠로 내보내거나 가져올 수 있습니다.
* 애플리케이션 계획에 정의된 제한 사항이 포함되어 있습니다. * 애플리케이션 계획에 정의된 가격 규칙이 포함됩니다. * 제한 및 가격 규칙에 의해 참조되는 메트릭/메서드가 포함되어 있습니다. * 애플리케이션 계획에 정의된 기능이 포함되어 있습니다. * 서비스는 id
또는 system_name
에서 참조할 수 있습니다. * 애플리케이션 계획은 id
또는 system_name
에서 참조할 수 있습니다.
2.8.6.1. 애플리케이션 계획을 파일로 내보내기
다음 명령은 애플리케이션 계획을 내보냅니다.
3scale application-plan export [opts] <remote> <service_system_name> <plan_system_name>
예제
$ docker run -u root -v $PWD:/tmp registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale application-plan export --file=/tmp/plan.yaml remote_name service_name plan_name
이 예에서는 Docker 볼륨을 사용하여 출력에 내보낸 파일을 현재 $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 (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 Prints the version of this command --verbose Verbose mode
2.8.6.2. 파일에서 애플리케이션 계획 가져오기
다음 명령은 애플리케이션 계획을 가져옵니다.
3scale application-plan import [opts] <remote> <service_system_name>
예제
$ docker run -v $PWD/plan.yaml:/tmp/plan.yaml registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale application-plan import --file=/tmp/plan.yaml remote_name service_name
이 예에서는 Docker 볼륨을 사용하여 현재 $PWD
폴더의 컨테이너에 가져온 파일을 마운트합니다.
2.8.6.3. URL에서 애플리케이션 계획 가져오기
3scale application-plan import -f http[s]://domain/resource/path.yaml remote_name service_name
가져오기 명령과 관련된 특정 명령:
명령 입력 콘텐츠는
stdin
, file 또는 URL 형식일 수 있습니다.-
-f
옵션으로 지정하지 않으면 기본적으로yaml
콘텐츠를stdin
에서 읽습니다.
-
- 원격 서비스에서 애플리케이션 계획을 찾을 수 없는 경우 생성됩니다.
선택적 param
-p
,--plan
원격 대상 애플리케이션 계획id
또는system_name
.-
-p
옵션으로 지정하지 않으면 기본적으로yaml
콘텐츠의 plan 속성system_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 (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 Prints the version of this command --verbose Verbose mode