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>
例
3scale application-plan export -f plan.yaml remote_name service_name plan_name
注記
export
コマンドに固有の事項
- リモートサービスおよびアプリケーションプランでは、読み取り専用操作になります。
コマンド出力は、
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