Lorsque vous enregistrez une API auprès du hub d'API, vous créez et stockez une entité qui représente l'API.
Nous appelons cette entité une ressource d'API. Les ressources d'API stockées dans le hub d'API sont incluses dans l'index de recherche, et fournissent des informations opérationnelles et descriptives détaillées sur l'API. Pour en savoir plus, consultez la Présentation des ressources d'API.
Dans la console Google Cloud, accédez à la page API de l'API Hub Apigee.
Cliquez sur Enregistrer l'API. Le formulaire Enregistrer une API s'affiche.
Dans la section Informations générales du formulaire, saisissez un nom à afficher. Le nom à afficher est simplement le nom de votre choix qui apparaîtra dans l'interface utilisateur une fois l'API enregistrée. Cet attribut est obligatoire.
Cliquez sur Continuer.
Le formulaire Informations sur le propriétaire s'affiche.
Les champs d'informations sur le propriétaire sont facultatifs. Pour l'instant, laissez-les vides et cliquez sur Continuer.
Le formulaire Informations supplémentaires s'affiche.
Dans le champ Description, saisissez une brève description de l'API. La description est facultative.
Ignorez les champs restants et cliquez sur Continuer.
Le formulaire Attributs définis par l'utilisateur s'ouvre.
Indiquez des valeurs pour tous les attributs souhaités.
Si aucun attribut n'est disponible, cela signifie qu'aucun n'a encore été créé.
Consultez la section Créer des attributs définis par l'utilisateur.
Cliquez sur S'inscrire.
Vous avez créé une ressource d'API dans l'API Hub. Vous pouvez toujours revenir à une ressource d'API pour la modifier ultérieurement.
Afficher les détails de l'API
Après avoir enregistré une API, vous pouvez en afficher les détails.
Dans la console Google Cloud, accédez à la page API de l'API Hub Apigee.
Recherchez l'API que vous venez d'enregistrer dans la liste des API enregistrées. 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 le guide de démarrage rapide suivant, vous allez créer une version pour l'API.
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 page explains how to register an API within Apigee API hub, which is applicable to both Apigee and Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eBefore registering an API, ensure that API hub has been provisioned in a Google Cloud project you have access to.\u003c/p\u003e\n"],["\u003cp\u003eRegistering an API in API hub involves creating an "API resource" entity, which stores descriptive and operational information, making it searchable.\u003c/p\u003e\n"],["\u003cp\u003eThe process includes providing a display name and optionally adding owner information, a description, and user-defined attributes to the API resource.\u003c/p\u003e\n"],["\u003cp\u003eAfter registering, you can view the API's details in the API hub by locating it in the registered APIs list and clicking on its name.\u003c/p\u003e\n"]]],[],null,["# Register an API\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\nThis page shows you how to register an API in API hub.\n\nBefore you begin\n----------------\n\n1. API hub must be provisioned in a Google Cloud project to which you have access. See [Provision API hub](/apigee/docs/apihub/provision).\n2. In the Google Cloud console, on the project selector page, select the project in which API\n hub is provisioned.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\nRegister an API\n---------------\n\nWhen you register an API with API hub, you create and store an entity that represents the API.\nWe call this entity an *API resource* . API resources stored in API hub are searchable and provide\ndetailed operational and descriptive information about the API. To learn more, see [API resources overview](./apis-intro).\n\n1. In the Google Cloud console, go to the **APIs** page in **Apigee API hub**.\n\n [Go to API hub](https://console.cloud.google.com/apigee/api-hub/apis)\n2. Click **Register API** . The *Register an API* form appears.\n3. In the **General details** section of the form, enter a display name. The display name is simply a name of your choice that will appear in the user interface after you register the API. This attribute is required.\n4. Click **Continue**.\n5. The **Owner information** form opens.\n6. The owner information fields are optional. For now, leave them blank and click **Continue**.\n7. The *Additional details* form opens.\n8. In the **Description** field, enter a brief description of the API. Description is an optional field.\n9. Skip the remaining fields and click **Continue**.\n10. The **User defined attributes** form opens.\n11. Provide values for any of the attributes you wish. If there are no attributes, that means none have been created yet. See [Create user-defined attributes](./quickstart-settings#create-user-defined-attributes).\n12. Click **Register**.\n\nYou have created an API resource in API hub. You can always return to an API resource to edit it later.\n\nView API details\n----------------\n\nAfter you register an API, you can view its details.\n\n1. In the Google Cloud console, go to the **APIs** page in **Apigee API hub**.\n\n [Go to API hub](https://console.cloud.google.com/apigee/api-hub/apis)\n2. Find the API you just registered in the list of registered APIs. If you don't see it, type the name of the API in the **Filter**.\n3. Click the API name to view its details.\n\nIn the next quickstart you will create a version for the API.\n\nNext step\n---------\n\n[Create an API version](./quickstart-version)"]]