Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini
berlaku untuk Apigee dan Apigee hybrid.
Halaman ini menunjukkan cara menambahkan versi ke resource API.
Sebelum memulai
Sebelum melakukan langkah-langkah dalam panduan memulai ini, Anda harus melakukan langkah-langkah di Mendaftarkan API.
Menambahkan versi
Anda dapat menganggap versi sebagai status API pada suatu waktu. Pada dasarnya,
versi membantu Anda mengelompokkan dan mengatur API berdasarkan kumpulan operasi,
deployment, dan atribut lainnya yang mendasarinya.Untuk mempelajari lebih lanjut, lihat Ringkasan versi.
Untuk menambahkan versi ke resource API:
Di halaman APIs di API Hub, temukan dan pilih resource API yang Anda buat di panduan memulai sebelumnya untuk melihat halaman detailnya.
Di halaman Detail API, pada bagian Versi, klik Tambahkan Versi untuk menampilkan
formulir Tambahkan versi baru.
Di dalam formulir:
Masukkan nama. Anda dapat menggunakan nama apa pun yang Anda inginkan. Nama akan muncul di antarmuka pengguna. Nama adalah
kolom wajib diisi.
Anda juga dapat menambahkan deskripsi dan membuat pilihan lain seperti Siklus Proses, Kepatuhan, dan Accreditasi jika mau. Perhatikan bahwa nilai untuk setelan atribut sistem ini dapat disesuaikan
di Setelan. Kolom Dokumentasi memungkinkan Anda memberikan link ke dokumentasi eksternal untuk versi tersebut.
Lewati atribut lainnya, lalu klik Create.
Anda telah membuat dan menautkan versi ke resource API.
Melihat detail versi
Setelah membuat versi, Anda dapat melihat detailnya.
Di konsol Google Cloud, buka halaman APIs di API hub.
[[["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-28 UTC."],[[["\u003cp\u003eThis guide applies to both Apigee and Apigee hybrid platforms, focusing on managing API resources.\u003c/p\u003e\n"],["\u003cp\u003eYou can add versions to an API resource, which helps organize APIs by grouping them based on operations and other factors.\u003c/p\u003e\n"],["\u003cp\u003eAdding a version involves navigating to the API details page, clicking "Add Version," entering a name, and optionally adding a description and setting other attributes.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating a version, you can view its details by finding the API resource in the API hub and selecting the specific version.\u003c/p\u003e\n"],["\u003cp\u003eYou can access settings and customizations for attributes, version deployment, and API specifications for the resource in the API hub.\u003c/p\u003e\n"]]],[],null,["# Create an API version\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\nThis page shows you how to add a version to an API resource.\n\nBefore you begin\n----------------\n\nBefore you do the steps in this quickstart, you need to do the steps in [Register an API](./quickstart-api).\n\nAdd a version\n-------------\n\nYou can think of a version as the state of an API at a point in time. Fundamentally,\nversions help you group and organize your APIs based on underlying sets of operations,\ndeployments, and other attributes.To learn more, see [Versions overview](./versions-intro).\n\nTo add a version to your API resource:\n\n1. In the **APIs** page in API hub, locate and select the API resource you created in the previous quickstart to view its details page.\n2. In the **API details** page, under the **Versions** section, click **Add Version** to display the *Add a new version* form.\n\n In the form:\n 1. Enter a name. You can use any name you wish. The name will appear in the user interface. Name is a required field.\n 2. Optionally, add a description and make other selections such as Lifecycle, Compliance, and Accreditation if you wish. Note that values for these system attribute settings can be customized in [Settings](./manage-attributes). The **Documentation** field lets you supply a link to external documentation for the version.\n 3. Skip the remaining attributes, and click **Create**.\n\n| **Note:** You can also add deployments and API specifications to a version. For details, see [Introduction to deployments](./deployments-intro) and [Introduction to API specifications](./specs-intro).\n\nYou have created and linked a version to an API resource.\n\nView version details\n--------------------\n\nAfter you create a version, you can view its details.\n\n1. In the Google Cloud console, go to the **APIs** page in **API hub**.\n\n [Go to API hub](https://console.cloud.google.com/apigee/api-hub/apis)\n2. Versions are linked to API resources, so find the API resource you'd like to inspect. If you don't see it, type the name of the API in the **Filter**.\n3. Click the API name to view its details.\n4. In the **Versions** section, locate and select the version you wish to inspect.\n5. The version details page appears. To edit the version's attributes, click **Edit version**.\n\nNext step\n---------\n\n[Create and edit attributes](./quickstart-settings)"]]