5.9.6. 애플리케이션 계획 내보내기/가져오기
단일 애플리케이션 계획을 yaml 콘텐츠로 내보내거나 가져올 수 있습니다.
다음을 확인합니다.
- 애플리케이션 계획에 정의된 제한이 포함됩니다.
- 애플리케이션 계획에 정의된 가격 결정 규칙이 포함됩니다.
- 제한 및 가격 규칙에 따라 참조되는 지표/방법이 포함됩니다.
- 애플리케이션 계획에 정의된 기능이 포함됩니다.
-
서비스는
id또는system_name으로 참조할 수 있습니다. -
애플리케이션 계획은
id또는system_name으로 참조할 수 있습니다.
5.9.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 폴더에 출력을 위해 컨테이너에 내보낸 파일을 마운트합니다.
참고
export 명령과 관련이 있습니다.
- 원격 서비스 및 애플리케이션 계획에 대한 작업만 읽습니다.
명령 출력은
stdout또는 file일 수 있습니다.-
f
옵션에지정하지 않은 경우 기본적으로yaml콘텐츠는stdout에 작성됩니다.
-
f
애플리케이션 계획을 내보내는 동안 다음 옵션을 사용합니다.
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