2.7. 원격 액세스 인증 정보 관리

원격 3scale 인스턴스를 쉽게 사용하려면 구성 파일에 해당 인스턴스에 액세스하는 데 사용할 인증과 함께 원격 웹 주소(URL)를 정의합니다. 3scale toolbox 명령에서 짧은 이름으로 해당 항목을 참조하십시오.

구성 파일의 기본 위치는 $HOME/.3scalerc.yaml 이지만 THREESCALE_CLI_CONFIG 환경 변수 또는 --config-file <config_file > 옵션을 사용하여 다른 위치를 지정할 수 있습니다.

access_token 또는 provider_key 를 사용하여 remote를 지정할 수 있습니다.

  • 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>

< url>에 짧은 이름 < name >이 있는 원격을 추가합니다.

예제

$ 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>

원격 woth 짧은 이름 <name& gt;을 제거합니다.

예제

$ 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>으로 remote의 이름을 < new_name >으로 변경합니다.

예제

$ docker run registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.7 3scale remote rename instance_a instance_b