2.7. リモートアクセスクレデンシャルの管理
リモートの 3scale インスタンスと容易に連携するため、設定ファイルでリモートの Web アドレス (URL) と共にこれらのインスタンスへのアクセスに使用する認証を定義します。3scale toolbox コマンドでは、これを短縮名で参照します。
設定ファイルのデフォルトの場所は $HOME/.3scalerc.yaml ですが、THREESCALE_CLI_CONFIG 環境変数、または --config-file <config_file> オプションを使用して、別の場所を指定することができます。
access_token または provider_key のいずれかを使用して、リモートを指定することができます。
-
http[s]://<access_token>@<3scale-instance-domain> -
http[s]://<provider_key>@<3scale-instance-domain>
2.7.1. リモートアクセスクレデンシャルの一覧表示
3scale remote list [--config-file <config_file>]
既存のリモートのリスト (名前、URL、および認証キー) を表示します。
例
$ docker run registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale remote list instance_a https://example_a.net 123456789 instance_b https://example_b.net 987654321
2.7.2. リモートアクセスクレデンシャルの追加
3scale remote add [--config-file <config_file>] <name> <url>
短縮名 <name> のリモートを <url> に追加します。
例
$ docker run registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale remote add instance_a https://123456789@example_a.net
2.7.3. リモートアクセスクレデンシャルの削除
3scale remote remove [--config-file <config_file>] <name>
短縮名 <name> のリモートを削除します。
例
$ docker run registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale remote remove instance_a
2.7.4. リモートアクセスクレデンシャルの名前変更
3scale remote rename [--config-file <config_file>] <old_name> <new_name>
リモートの短縮名を <old_name> から <new_name> に変更します。
例
$ docker run registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale remote rename instance_a instance_b