Jika sudah memiliki nama domain (seperti example.com), dan ingin menggunakan nama domain ini sebagai nama layanan Cloud Endpoints, Anda harus membuktikan bahwa Anda diberi otorisasi untuk menggunakan domain tersebut. Jika tidak memiliki nama domain sendiri, Anda dapat menggunakan domain yang dikelola oleh Google. Dalam hal ini, Anda tidak perlu memverifikasi kepemilikan.
Halaman ini menjelaskan cara memverifikasi kepemilikan nama domain yang ingin Anda
gunakan untuk API yang berjalan di Google Cloud.
Persyaratan nama layanan
Biasanya, Anda mengonfigurasi nama layanan Endpoint agar sama dengan nama domain Anda. Endpoint memiliki persyaratan
berikut untuk nama layanan:
Panjang maksimum nama domain adalah 253 karakter.
Nama domain harus diawali dengan huruf kecil.
Setiap bagian dalam nama domain, yang dipisahkan dengan titik, memiliki persyaratan
berikut:
Harus dimulai dengan huruf kecil.
Tidak boleh diakhiri dengan tanda hubung.
Karakter yang tersisa dapat berupa huruf kecil, angka, atau tanda hubung.
Panjang maksimumnya adalah 63 karakter.
Memverifikasi kepemilikan
Hanya akun pengguna yang telah memverifikasi kepemilikan nama domain yang dapat
men-deploy konfigurasi Endpoint pada awalnya. Setelah deployment pertama
tersebut, Anda dapat memberikan peran Service Config Editor yang lebih ketat kepada
pengguna, grup, atau akun layanan. Lihat
Memberikan dan mencabut akses ke API
untuk mengetahui informasi selengkapnya.
Untuk memverifikasi bahwa Anda adalah pemilik nama domain:
Pada Dropdown Record Type di banner Verify domain ownership via DNS record, gunakan opsi Recommended methods jika memungkinkan.
Login ke penyedia Nama domain Anda dan selesaikan proses verifikasi
sesuai petunjuk. Penyedia nama domain Anda mungkin memenuhi syarat untuk
AutoDNS.
Ikuti petunjuk yang diberikan di Search Console hingga Anda menyelesaikan verifikasi domain.
Mendelegasikan ke developer
Setelah diverifikasi sebagai pemilik domain di Search Console, Anda dapat secara opsional
mendelegasikan akses ke subdomain kepada developer dalam organisasi. Hal ini memungkinkan
developer tersebut membuat Endpoints API tanpa harus
memverifikasi kepemilikan domain sendiri.
[[["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\u003eIf you plan to use your own domain name with Cloud Endpoints, you must verify your ownership of that domain.\u003c/p\u003e\n"],["\u003cp\u003eDomain ownership verification is done via Google Search Console, where you'll need to add your domain without protocol identifiers (e.g., \u003ccode\u003eexample.com\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eOnly the user account that initially verified domain ownership can deploy the Endpoints configuration.\u003c/p\u003e\n"],["\u003cp\u003eOnce domain ownership is verified, you can delegate subdomain access to other developers, enabling them to create Endpoints APIs without separate verification.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring your domain for SSL might be necessary, especially if you plan to use certain types of user authentication with your API.\u003c/p\u003e\n"]]],[],null,["# Verifying a domain name\n\n[OpenAPI](/endpoints/docs/openapi/verify-domain-name \"View this page for the Cloud Endpoints OpenAPI docs\") \\| gRPC\n\n\u003cbr /\u003e\n\nIf you already own a domain name (such as `example.com`), and you want to\nuse this domain name as the name of your Cloud Endpoints service, you must\nprove that you are authorized to use the domain. If you don't have your own\ndomain name, you can use a\n[domain managed by Google](/endpoints/docs/grpc/configure-endpoints#using_a_domain_managed_by_google),\nin which case you don't have to verify ownership.\n\nThis page describes how to verify your ownership of a domain name that you want\nto use for your API running on Google Cloud.\n\nService name requirements\n-------------------------\n\nTypically, you configure your Endpoints service name to be the\nsame as your domain name. Endpoints has the following\nrequirements for the service name:\n\nVerifying ownership\n-------------------\n\nOnly the user account that has verified ownership of the domain name can\ndeploy the Endpoints configuration initially. After that first\ndeployment, you can grant the more restrictive **Service Config Editor** role to\na user, group, or service account. See\n[Granting and revoking access to the API](/endpoints/docs/grpc/control-api-access)\nfor more information.\n\nTo verify that you own the domain name:\n\n1. Go to\n [Search Console](https://search.google.com/search-console/welcome).\n\n2. Click **Domain**.\n\n3. Enter your domain name.\n\n | **Important:** Don't include protocol identifiers such as `http://` or `https://`. Enter only the domain name, such as `example.com` or a subdomain, such as `api.example.com`.\n4. Click **Continue**.\n\n5. On the **Record Type** Dropdown in the **Verify domain ownership via\n DNS record** banner, use the **Recommended methods** option if possible.\n\n6. Sign in to your Domain name provider and complete the verification process\n per the instructions. Your Domain name provide may be eligible for\n [AutoDNS](https://developers.google.com/search/blog/2019/09/auto-dns-verification).\n\n7. Follow the directions provided on **Search Console** until you complete your domain's verification.\n\n| **Important:** The domain name verification is automatically re-confirmed about every 30 days. If you remove the verification string from your DNS settings, you lose the ability to change the configuration within the Google Cloud console. However, if this happens, the serving setup for the domain doesn't change and the app continues to serve over that domain.\n\nDelegating to developers\n------------------------\n\nAfter you are verified as a domain owner in Search Console, you can optionally\ndelegate access to subdomains to developers within the organization. This allows\nthose developers to create Endpoints APIs without having to\nverify domain ownership themselves.\n\nFor more information on delegating, see\n[Managing users, owners, and permissions](https://support.google.com/webmasters/answer/2453966?ref_topic=4564315).\n\nConfiguring your domain for SSL\n-------------------------------\n\nYou might want to configure your domain for SSL. Note that some types of\n[authentication](/endpoints/docs/openapi/authenticating-users) require SSL.\n\nWhat's next\n-----------\n\n- [Serving an API from your domain name](/endpoints/docs/grpc/serving-apis-from-domains)"]]