5.3. 서비스 가져오기

아래에 지정된 순서로 다음 필드를 지정하여 CSV 파일에서 서비스를 가져옵니다. CSV 파일에 이러한 헤더를 포함합니다.

service_name,endpoint_name,endpoint_http_method,endpoint_path,auth_mode,endpoint_system_name,type

다음 정보가 필요합니다.

  • 3scale admin 계정 {3SCALE_ADMIN}
  • 3scale 인스턴스가 실행 중인 도메인: {DOMAIN_NAME}

    • 호스팅된 API를 사용하는 경우 이는 3scale.net입니다.
  • 계정의 액세스 키 {ACCESS_KEY}.
  • 서비스의 CSV 파일(예: example /import_example.csv)

다음을 실행하여 서비스를 가져옵니다.

예제

$ podman run -v $PWD/examples/import_example.csv:/tmp/import_example.csv registry.redhat.io/3scale-amp2/toolbox-rhel8:3scale2.11 3scale import csv --destination=https://{ACCESS_KEY}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME} --file=/tmp/import_example.csv

이 예에서는 Podman 볼륨을 사용하여 컨테이너에 리소스 파일을 마운트합니다. 현재 $PWD 폴더에서 파일을 사용할 수 있다고 가정합니다.