To deploy your service configuration, you run the
[`gcloud endpoints services deploy`](https://docs.cloud.google.com/sdk/gcloud/reference/endpoints/services/deploy)
command. The first time you deploy your service configuration, the `gcloud`
command calls a Service Management API to create a managed service by using the
name that you specified in the `name` field of your service configuration YAML
file. Service Management automatically assigns a configuration ID, which
consists of a date stamp followed by a revision number. For example:
`2017-02-13r0`

If you deploy your service configuration again on the same day,
Service Management increments the revision number in the configuration
ID. If you deploy your service configuration again on another day,
Service Management assigns a new date stamp to the configuration ID and
resets the revision number to 0.

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

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

### Google Cloud console

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

   [Go to the Endpoints Services page](https://console.cloud.google.com/endpoints)
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](https://docs.cloud.google.com/sdk/gcloud/reference.md.txt).

## What's next

- Learn about [deploying a service configuration](https://docs.cloud.google.com/endpoints/docs/grpc/deploy-endpoints-config.md.txt).
- Learn about the [Service Management API](https://docs.cloud.google.com/service-infrastructure/docs/manage-config.md.txt).