Untuk men-deploy konfigurasi layanan, jalankan perintah
gcloud endpoints services deploy. Saat pertama kali Anda men-deploy konfigurasi layanan, perintah gcloud
akan memanggil Service Management API untuk membuat layanan terkelola menggunakan
nama yang Anda tentukan di kolom name pada file YAML konfigurasi layanan. Pengelolaan Layanan secara otomatis menetapkan ID konfigurasi, yang
terdiri dari stempel tanggal, diikuti dengan nomor revisi. Misalnya:
2017-02-13r0
Jika Anda men-deploy konfigurasi layanan lagi pada hari yang sama,
Pengelolaan Layanan akan menambahkan nomor revisi di ID
konfigurasi. Jika Anda men-deploy konfigurasi layanan lagi pada hari lain,
Pengelolaan Layanan akan menetapkan stempel tanggal baru ke ID konfigurasi dan
mereset nomor revisi ke 0.
Endpoint menggunakan Pengelolaan Layanan untuk menyimpan konfigurasi layanan. Manajemen Layanan hanya menyimpan 100 konfigurasi layanan
terbaru.
Halaman ini menjelaskan cara melihat nama layanan dan ID konfigurasi Anda.
Google Cloud console
Di Google Cloud console, buka halaman Endpoints > Services untuk
project Anda.
Jika Anda memiliki lebih dari satu API, pilih API dari daftar.
Klik tab Histori deployment.
Nama layanan ditampilkan di antara nama API dan tab, dekat sisi kiri atas halaman. Dalam daftar Deployment konfigurasi layanan, ID konfigurasi ditampilkan bersama dengan tanggal dan alamat email akun utama yang men-deploy konfigurasi. Daftar
Deployment konfigurasi layanan menampilkan 100 deployment konfigurasi
terbaru. Konfigurasi terbaru ditampilkan di
bagian atas daftar.
gcloud
Masukkan perintah berikut untuk menampilkan project ID untuk project Google Cloud Anda:
gcloud projects list
Dengan menggunakan project ID yang berlaku dari langkah sebelumnya, tetapkan project default ke project tempat API Anda berada:
gcloud config set project YOUR_PROJECT_ID
Dapatkan daftar layanan di project Anda:
gcloud endpoints services list
Dengan menggunakan nama layanan yang berlaku dari langkah sebelumnya, dapatkan daftar
ID konfigurasi untuk layanan:
gcloud endpoints configs list --service=YOUR_SERVICE_NAME
Untuk informasi selengkapnya tentang perintah sebelumnya, lihat referensi gcloud.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 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)."]]