Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page s'applique à Apigee et à Apigee hybrid.
Cette page vous explique comment ajouter une version à une ressource d'API.
Avant de commencer
Avant de suivre la procédure de ce guide de démarrage rapide, vous devez suivre la procédure décrite dans la section Enregistrer une API.
Ajouter une version
Vous pouvez considérer une version comme l'état d'une API à un moment donné. Fondamentalement, les versions vous aident à regrouper et à organiser vos API en fonction des ensembles d'opérations, de déploiements et d'autres attributs sous-jacents. Pour en savoir plus, consultez la page Présentation des versions.
Pour ajouter une version à votre ressource d'API, procédez comme suit :
Sur la page API du hub d'API, localisez et sélectionnez la ressource d'API que vous avez créée dans le guide de démarrage rapide précédent pour afficher sa page d'informations.
Dans la page Détails de l'API sous la section Versions, cliquez sur Ajouter une version pour afficher le formulaire Ajouter une version.
Dans le formulaire :
Saisissez un nom. Vous pouvez utiliser n'importe quel nom. Le nom s'affiche dans l'interface utilisateur. Le champ "Nom" est obligatoire.
Si vous le souhaitez, ajoutez une description et sélectionnez d'autres options, telles que "Cycle de vie", "Conformité" et "Accréditation". Notez que les valeurs de ces paramètres d'attribut système peuvent être personnalisées dans Paramètres. Le champ Documentation vous permet de fournir un lien vers la documentation externe de la version.
Ignorez les attributs restants, puis cliquez sur Créer.
Vous avez créé une version et l'avez associée à une ressource d'API.
Afficher les détails de la version
Une fois la version créée, vous pouvez consulter ses détails.
Dans la console Google Cloud, accédez à la page API du hub d'API.
Les versions sont liées aux ressources de l'API. Par conséquent, recherchez la ressource d'API que vous souhaitez inspecter. Si vous ne la voyez pas, saisissez le nom de l'API dans le champ Filtre.
Cliquez sur le nom de l'API pour afficher ses détails.
Dans la section Versions, localisez et sélectionnez la version que vous souhaitez inspecter.
La page des détails de la version s'affiche. Pour modifier les attributs de la version, cliquez sur Modifier la version.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/28 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)"]]