서비스 이름 및 구성 ID 가져오기

서비스 구성을 배포하려면 gcloud endpoints services deploy 명령어를 실행합니다. 서비스 구성을 처음으로 배포하면 gcloud 명령어는 Service Management API를 호출하여 서비스 구성 YAML 파일의 name 필드에 지정된 이름을 사용하여 관리형 서비스를 만듭니다. Service Management는 날짜 스탬프와 버전 번호로 구성된 예를 들면 2017-02-13r0입니다.

같은 날에 서비스 구성을 다시 배포하면 Service Management는 구성 ID의 버전 번호를 증분시킵니다. 다른 날에 서비스 구성을 다시 배포하면 Service Management는 구성 ID에 새 날짜 스탬프를 할당하고 버전 번호를 0으로 재설정합니다.

Endpoints는 Service Management를 사용하여 서비스 구성을 저장합니다. Service Management는 최근 서비스 구성 100개만 저장합니다.

이 페이지에서는 서비스 이름과 구성 ID를 확인하는 방법을 설명합니다.

Google Cloud console

  1. In the Google Cloud console, go to the Endpoints > Services page for your project.

    Go to the Endpoints Services page

  2. If you have more than one API, select an API from the list.
  3. Click the Deployment history tab.
  4. The service name is displayed between the API name and the tabs, near the top-left side of the page. In the Service configuration deployments list, the configuration ID is displayed along with the date and the email address of the principal who deployed the configuration. The Service configuration deployments list displays the latest 100 configuration deployments. The most recent configuration is displayed at the top of the list.

gcloud

  1. Enter the following to display the project IDs for your Google Cloud projects:
    gcloud projects list
  2. Using the applicable project ID from the previous step, set the default project to the one that your API is in:
    gcloud config set project YOUR_PROJECT_ID
  3. Get a list of services in your project:
    gcloud endpoints services list
  4. Using the applicable service name from the previous step, get a list of configuration IDs for the service:
    gcloud endpoints configs list --service=YOUR_SERVICE_NAME

For more information on the preceding commands, see the gcloud reference.

다음 단계