5.15. プロキシー設定のリスト表示
3scale toolbox を使用して、デベロッパーポータルのすべての定義済みプロキシー設定のリスト表示、表示、およびプロモートを行います。
以下のコマンドにより、プロキシー設定がリスト表示されます。
3scale proxy-config list <remote> <service> <environment>
プロキシー設定のリスト表示時に、以下のオプションを使用します。
Options -o --output=<value> Output format on stdout: one of json|yaml Options for proxy-config -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.15.1. プロキシー設定の表示
以下のコマンドにより、プロキシー設定が表示されます。
3scale proxy-config show <remote> <service> <environment>
プロキシー設定の表示時に、以下のオプションを使用します。
Options --config-version=<value> Specify the proxy configuration version. If not specified, defaults to latest -o --output=<value> Output format on stdout: one of json|yaml Options for proxy-config -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.15.2. プロキシー設定のプロモート
以下のコマンドにより、最新のステージング環境用プロキシー設定が実稼働環境にプロモートされます。
3scale proxy-config promote <remote> <service>
最新のステージング環境用プロキシー設定を実稼働環境にプロモートする際に、以下のオプションを使用します。
Options for proxy-config -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.15.3. プロキシー設定のエクスポート
Self-managed APIcast ゲートウェイが 3scale インスタンスに接続されていない場合などに、proxy-config export
コマンドを使用します。このシナリオでは、3scale 設定を手動で注入するか、APICast デプロイメントおよび設定オプション を使用して注入します。いずれの場合も、3scale の設定を指定する必要があります。
以下のコマンドは、APIcast ゲートウェイに注入することのできる設定をエクスポートします。
3scale proxy-config export <remote>
3scale 設定ファイル として使用されるプロバイダーアカウントのプロキシー設定をエクスポートする際に、以下のオプションを指定することができます。
Options for proxy-config --environment=<value> Gateway environment. Must be 'sandbox' or 'production' (default: sandbox) -o --output=<value> Output format. One of: json|yaml
5.15.4. プロキシー設定のデプロイ
以下の deploy
コマンドは、Service Mesh を使用している場合に、APIcast 設定を 3scale のステージング環境または実稼働環境にプロモートします。
3scale proxy deploy <remote> <service>
deploy
コマンドを使用して APIcast 設定をステージング環境にプロモートする時に、以下のオプションを指定できます。
-o --output=<value> Output format. One of: json|yaml
5.15.5. プロキシー設定の更新
以下の update
コマンドにより、APIcast の設定が更新されます。
3scale proxy update <remote> <service>
update コマンドを使用して APIcast 設定を 更新
する場合に、以下のオプションを指定することができます。
-o --output=<value> Output format. One of: json|yaml -p --param=<value> APIcast configuration parameters. Format: [--param key=value]. Multiple options allowed.
5.15.6. プロキシー設定の表示
以下の show
コマンドにより、アンデプロイされた APIcast 設定が取得されます。
3scale proxy show <remote> <service>
show
コマンドを使用して、アンデプロイされた APIcast 設定を取得する場合は、以下のオプションを指定できます。
-o --output=<value> Output format. One of: json|yaml
5.15.7. プロキシー設定のデプロイ (非推奨)
3scale 2.12 では、proxy-config deploy
コマンドのサポートは非推奨になりました。
以下のコマンドを使用します。
-
proxy deploy
-
proxy update
-
proxy show
詳細は、プロキシー設定のデプロイ を参照してください。
以下の deploy
コマンドは、Service Mesh を使用している場合に、APIcast 設定を 3scale のステージング環境または実稼働環境にプロモートします。
3scale proxy-config deploy <remote> <service>
deploy
コマンドを使用して APIcast 設定をステージング環境にプロモートする時に、以下のオプションを指定できます。
-o --output=<value> Output format. One of: json|yaml
関連情報