Per eseguire il deployment della configurazione del servizio, esegui il comando
gcloud endpoints services deploy. La prima volta che esegui il deployment della configurazione del servizio, il comando gcloud invoca un'API Service Management per creare un servizio gestito utilizzando il nome specificato nel campo name del file YAML della configurazione del servizio. Service Management assegna automaticamente un ID configurazione, costituito da un timestamp seguito da un numero di revisione. Ad esempio:
2017-02-13r0
Se esegui nuovamente il deployment della configurazione del servizio nello stesso giorno,
Service Management incrementa il numero di revisione nell'ID configurazione. Se esegui nuovamente il deployment della configurazione del servizio in un altro giorno, Service Management assegna un nuovo timestamp all'ID configurazione e reimposta il numero di revisione su 0.
Endpoints utilizza Service Management per archiviare le configurazioni dei servizi. Service Management archivia solo le ultime 100 configurazioni
del servizio.
Questa pagina descrive come visualizzare il nome del servizio e gli ID configurazione.
Google Cloud console
In the Google Cloud console, go to the Endpoints > Services page for
your project.
If you have more than one API, select an API from the list.
Click the Deployment history tab.
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
Enter the following to display the project IDs for your
Google Cloud projects:
gcloud projects list
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
Get a list of services in your project:
gcloud endpoints services list
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.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-08 UTC."],[[["\u003cp\u003eService configuration deployment is done using the \u003ccode\u003egcloud endpoints services deploy\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eService Management assigns a configuration ID to each deployed service, consisting of a date stamp and revision number.\u003c/p\u003e\n"],["\u003cp\u003eRevisions of service configurations deployed on the same day increment the revision number, while new days reset the revision number.\u003c/p\u003e\n"],["\u003cp\u003eEndpoints uses Service Management to store service configurations, which are limited to the latest 100.\u003c/p\u003e\n"],["\u003cp\u003eThis page details how to find the service name and the configuration IDs.\u003c/p\u003e\n"]]],[],null,["# Getting the service name and configuration ID\n\n[OpenAPI](/endpoints/docs/openapi/get-service-name-config-id \"View this page for the Cloud Endpoints OpenAPI docs\") \\| gRPC\n\n\u003cbr /\u003e\n\nTo deploy your service configuration, you run the\n[`gcloud endpoints services deploy`](/sdk/gcloud/reference/endpoints/services/deploy)\ncommand. The first time you deploy your service configuration, the `gcloud`\ncommand calls a Service Management API to create a managed service by using the\nname that you specified in the `name` field of your service configuration YAML\nfile. Service Management automatically assigns a configuration ID, which\nconsists of a date stamp followed by a revision number. For example:\n`2017-02-13r0`\n\nIf you deploy your service configuration again on the same day,\nService Management increments the revision number in the configuration\nID. If you deploy your service configuration again on another day,\nService Management assigns a new date stamp to the configuration ID and\nresets the revision number to 0.\n\nEndpoints uses Service Management to store service\nconfigurations. Service Management stores only the latest 100 service\nconfigurations.\n\nThis page describes how to view the name of your service and configuration IDs.\n\nWhat's next\n-----------\n\n- Learn about [deploying a service configuration](/endpoints/docs/grpc/deploy-endpoints-config).\n- Learn about the [Service Management API](/service-infrastructure/docs/manage-config)."]]