Pada langkah ini, Anda dapat memilih untuk mengekspos instance Apigee baru ke permintaan eksternal atau menjaganya tetap bersifat pribadi (dan hanya mengizinkan permintaan dari dalam firewall).
Cara Anda mengakses proxy API bergantung pada apakah Anda mengizinkan permintaan eksternal atau membatasi akses hanya untuk permintaan internal.
Jenis Akses
Deskripsi proses konfigurasi dan deployment
Tidak ada akses internet
Izinkan hanya akses internal ke proxy API Anda.
Anda dapat mendownload proxy Hello World dari GitHub, lalu men-deploy-nya ke instance Apigee Anda. Kemudian, Anda harus membuat VM baru di dalam jaringan dan terhubung ke VM tersebut. Dari VM baru, Anda dapat mengirim permintaan ke proxy API.
Mengaktifkan akses internet
Izinkan akses eksternal ke proxy API Anda.
Apigee men-deploy proxy Hello World ke instance Apigee Anda. Kemudian, Anda dapat
mengirim permintaan ke proxy API dari mesin administrasi atau mesin
yang mendukung jaringan, baik di dalam maupun di luar firewall.
Setiap pendekatan ini disajikan pada tab dalam petunjuk di bawah.
Lakukan langkah
Pilih Akses Eksternal atau Akses Internal:
Akses Eksternal
Bagian ini menjelaskan cara mengonfigurasi perutean dari Konsol Cloud saat Anda ingin mengizinkan akses
eksternal ke proxy API Anda.
Izin yang diperlukan untuk langkah ini
Anda dapat memberikan peran yang telah ditetapkan kepada penyedia Apigee yang mencakup izin yang diperlukan untuk menyelesaikan tugas ini,
atau memberikan izin yang lebih terperinci untuk memberikan hak istimewa terendah yang diperlukan. Lihat
Peran standar
dan Izin perutean akses.
Untuk mengonfigurasi perutean untuk akses eksternal di Konsol Cloud:
Klik createEdit untuk membuka panel
Konfigurasi akses.
Pilih Aktifkan akses internet.
Pilih salah satu opsi berikut di bagian Domain Type:
Sertifikat SSL, subnetwork, dan domain yang dibuat secara otomatis: Pilih opsi ini untuk menggunakan layanan DNS karakter pengganti nip.io, dan sertifikat terkelola Google untuk mengamankan domain Anda.
Apigee secara otomatis membuat load balancer eksternal global L7 untuk meneruskan traffic ke runtime Anda.
Sesuaikan: Pilih opsi ini jika Anda ingin menyesuaikan nama domain, sertifikat SSL, atau
subnetwork. Apigee secara otomatis membuat load balancer eksternal global L7 untuk meneruskan traffic ke runtime Anda.
Anda dapat memilih atau membatalkan pilihan salah satu opsi berikut untuk memasukkan detail kustom:
Domain: Opsional. Masukkan nama domain kustom.
Network: Opsional. Pilih nama jaringan yang tersedia dari menu dropdown.
Subnetwork: Opsional. Pilih nama subnetwork yang tersedia dari menu dropdown. Subnetwork
yang dipilih harus berada di region yang sama dengan instance runtime.
Sertifikat SSL: Opsional. Pilih sertifikat yang dikelola sendiri yang ada atau berikan
sertifikat yang dikelola sendiri yang baru.
Untuk memilih sertifikat yang ada:
Jelajahi sistem file dan pilih sertifikat yang ingin Anda gunakan.
Klik Save SSL.
Untuk memberikan sertifikat baru:
Klik Tambahkan baru.
Di kolom masing-masing, jelajahi sistem file Anda dan lampirkan file yang berisi sertifikat dan kunci pribadi.
Keduanya harus diformat PEM.
Klik Save SSL.
Klik Setel akses.
Apigee menyiapkan instance Anda untuk akses eksternal. Hal ini termasuk membuat aturan firewall, mengupload sertifikat, dan membuat load balancer.
Proses ini dapat memerlukan waktu beberapa menit.
Akses Internal
Bagian ini menjelaskan cara mengonfigurasi perutean saat Anda menggunakan
Konsol Cloud dan tidak ingin mengizinkan akses eksternal ke proxy API Anda.
Sebagai gantinya, Anda ingin membatasi akses hanya ke permintaan internal yang berasal dari
dalam VPC.
Untuk mengonfigurasi pemilihan rute untuk akses internal di Cloud Console:
Klik createEdit untuk membuka panel
Konfigurasi akses.
Pilih Tidak ada akses internet.
Klik Setel akses.
Klik Berikutnya.
Klik Kirim untuk memulai proses penyediaan.
Proses penyediaan dapat memerlukan waktu hingga 40 menit hingga selesai. Jika Anda ingin keluar dari halaman saat penyediaan sedang berlangsung, notifikasi akan muncul di notifikasiNotifikasi di konsol Cloud saat operasi selesai.
Setelah penyediaan selesai, halaman Apigee Overview akan
muncul dan Anda dapat mulai menjelajahi Apigee.
[[["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-21 UTC."],[[["\u003cp\u003eThis documentation is specifically for Apigee and does not apply to Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eUsers can choose to configure their new Apigee instance for either external or internal access to API proxies.\u003c/p\u003e\n"],["\u003cp\u003eSelecting "Enable internet access" allows external requests to the API proxy and is the recommended approach by Apigee, which deploys a "Hello World" proxy for this method.\u003c/p\u003e\n"],["\u003cp\u003eChoosing "No internet access" restricts access to internal requests only, requiring a VM inside the network to interact with the API proxy.\u003c/p\u003e\n"],["\u003cp\u003eConfiguring external access in the Cloud console involves selecting options for domain type, which can either be an automatically generated domain or a customized domain with custom subnetwork and SSL certificates.\u003c/p\u003e\n"]]],[],null,["*This page\napplies to **Apigee** , but not to **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\nWhat you're doing in this step\n\nIn this step, you can choose to expose your new Apigee instance to external requests or keep\nit private (and only allow requests from within the firewall).\n| **Tip:** There are fewer steps required to deploy and test a proxy if you choose **external**. If you are following these steps for testing purposes, choose that path.\n\nHow you access the API proxy depends on whether you allow external\nrequests or restrict access to internal requests only.\n\n| Access Type | Description of the configuration and deployment process |\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| No internet access | Allow only internal access to your API proxy. You can download the `Hello World` proxy from GitHub and then deploy it to your Apigee instance. You must then create a new VM inside the network and connect to it. From the new VM, you can send a request to the API proxy. |\n| Enable internet access | Allow external access to your API proxy. | **Note:** Apigee recommends using this approach. Apigee deploys a `Hello World` proxy to your Apigee instance. You can then send a request to the API proxy from your administration machine or any network-enabled machine, whether it is within or outside the firewall. |\n\nEach of these approaches is presented on a tab in the instructions below.\n\nPerform the step\n\n1. Select **External Access** or **Internal Access**: \n\nExternal Access\n\nThis section describes how to configure routing from the Cloud Console when you want to allow\n*external* access to your API proxy.\n\nPermissions required for this task\n\nYou can give the Apigee provisioner a predefined role that includes the permissions needed to complete this task,\nor give more fine-grained permissions to provide the least privilege necessary. See\n[Predefined roles](/apigee/docs/api-platform/get-started/permissions#predefined-roles)\nand [Access routing permissions](/apigee/docs/api-platform/get-started/permissions#access-routing-permissions).\n\n**To configure routing for external access in the Cloud console**:\n\n1. Click create**Edit** to open the **Configure access** panel.\n2. Select **Enable internet access** .\n\n Choose one of the following options in the **Domain Type** section:\n - **Automatically generated domain, subnetwork and SSL certificates**: Choose this option to use the nip.io wildcard DNS service, and a Google managed certificate to secure your domain. Apigee automatically creates an L7 global external load balancer to forward traffic to your runtime.\n - **Customize** : Choose this option if you want to customize your domain name, SSL certificate, or subnetwork. Apigee automatically creates an L7 global external load balancer to forward traffic to your runtime. You can select or deselect any of the following options to enter custom details:\n - **Domain**: Optional. Enter the custom domain name.\n - **Network**: Optional. Select an available network name from the dropdown menu.\n - **Subnetwork**: Optional. Select an available subnetwork name from the dropdown menu. The subnetwork selected should be in the same region as the runtime instance.\n - **SSL Certificate** : Optional. Select an existing self-managed certificate or provide a new self-managed certificate.\n\n To select an existing certificate:\n 1. Browse the file system and select the certificate you wish to use.\n 2. Click **Save SSL**.\n\n To provide a new certificate:\n 1. Click **Add new**.\n 2. In the respective fields, browse your file system and attach the files containing the certificate and private key. Both should be PEM-formatted.\n 3. Click **Save SSL**.\n3. Click **Set access** .\n\n Apigee prepares your instance for external access. This includes creating firewall\n rules, uploading certificates, and creating a load balancer.\n\n This process can take several minutes.\n\nInternal Access\n\nThis section describes how to configure routing when you're using the\nCloud Console and you *do not* want to allow external access to your API proxy.\nInstead, you want to limit access to *internal* requests only that originate from\nwithin the VPC.\n\n**To configure routing for internal access in the Cloud Console:**\n\n1. Click create**Edit** to open the **Configure access** panel.\n2. Select **No internet access**.\n\n3. Click **Set access**.\n2. Click **Next**.\n3. Click **Submit** to begin the provisioning process.\n\n The provisioning process may take up to 40 minutes to complete. If you\n want to leave the page while provisioning is in progress, a notification\n will appear in notifications\n **Notifications** in the Cloud console when the operation completes.\n\n Once provisioning is complete, the **Apigee Overview** page will\n appear and you can begin exploring Apigee!"]]