Getting the Service Name and Configuration ID

The first time you deploy your OpenAPI document, a new Cloud Endpoints service is created with the name that you specified in the host field of your OpenAPI document. The service is automatically assigned a configuration ID, which consists of a date stamp followed by a revision number. For example: 2017-02-13r0

If you deploy your OpenAPI document again on the same day, the revision number in the configuration ID is incremented. If you deploy your OpenAPI document again on another day, the configuration ID has a new date stamp and the revision number is reset back to 0.

Cloud Endpoints uses Service Infrastructure to store service configurations. Service Infrastructure stores only the latest 100 service configurations.

This page describes how to view the name of your service and configuration IDs.

Console

  1. In the GCP Console, go to the Endpoints dashboard for your project.

    Endpoints Dashboard

  2. If you have more than one API, click the 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 project member 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.

Command line

  1. Enter the following to display the project IDs for your 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 above commands, see the gcloud reference.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Endpoints with OpenAPI
Need help? Visit our support page.