Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
L'API Resource Manager utilise des ressources personnalisées Kubernetes et s'appuie sur le modèle de ressources Kubernetes (KRM) pour le provisionnement et l'administration des ressources d'organisation et de projet. Il permet de gérer le cycle de vie des projets d'appliance Google Distributed Cloud (GDC) sous air gap, comme l'installation, la mise à niveau et la désinstallation.
Pour utiliser l'API Resource Manager, nous vous recommandons d'utiliser la console GDC et gdcloud CLI. Si votre application doit utiliser vos propres bibliothèques pour appeler cette API, utilisez l'exemple suivant et la définition complète de l'API pour créer vos requêtes.
Point de terminaison du service et document de découverte
Le point de terminaison de l'API Resource Manager est https://MANAGEMENT_API_SERVER_ENDPOINT/apis/resourcemanager.gdc.goog/v1, où MANAGEMENT_API_SERVER_ENDPOINT correspond au point de terminaison du serveur de l'API Management.
L'API Resource Manager View suit une convention similaire pour son point de terminaison d'API : https://MANAGEMENT_API_SERVER_ENDPOINT/apis/resourcemanagerview.gdc.goog/v1.
À l'aide de la commande kubectl proxy, vous pouvez accéder aux URL des points de terminaison de l'API dans votre navigateur ou avec un outil tel que curl pour obtenir le document de découverte de l'API Resource Manager. La commande kubectl proxy ouvre un proxy vers le serveur d'API Kubernetes sur votre machine locale. Une fois cette commande exécutée, vous pouvez accéder au document à l'URL suivante : http://127.0.0.1:8001/apis/resourcemanager.gdc.goog/v1.
Exemple de ressource Project
Voici un exemple d'objet Project configuré en tant que ressource de projet GDC. En tant qu'utilisateur de l'API Resource Manager, la création d'un projet via la console GDC génère l'objet Project par défaut. Vous ne devez le modifier que pour refléter l'état du projet souhaité.
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/09/04 (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/09/04 (UTC)."],[[["\u003cp\u003eThe Resource Manager API utilizes Kubernetes custom resources and the Kubernetes Resource Model (KRM) for managing organization and project resources.\u003c/p\u003e\n"],["\u003cp\u003eIt primarily manages the lifecycle of Google Distributed Cloud (GDC) air-gapped appliance projects, including installation, upgrades, and uninstallation.\u003c/p\u003e\n"],["\u003cp\u003eThe recommended methods for interacting with the API are the GDC console and the gdcloud CLI, although custom library integration is supported.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint for the Resource Manager API is \u003ccode\u003ehttps://GDCH_API_SERVER_ENDPOINT/apis/resourcemanager.gdc.goog/v1\u003c/code\u003e, and the Resource Manager View API follows a similar structure.\u003c/p\u003e\n"],["\u003cp\u003eAccessing the API endpoint URLs and the discovery document can be done using the \u003ccode\u003ekubectl proxy\u003c/code\u003e command, which provides a proxy to the Kubernetes API server.\u003c/p\u003e\n"]]],[],null,["# Resource Manager API overview\n\nThe Resource Manager API uses Kubernetes custom resources and relies on the\nKubernetes Resource Model (KRM) for provisioning and administration of\norganization and project resources. It is used to manage the lifecycle of\nGoogle Distributed Cloud (GDC) air-gapped appliance projects, such as installing, upgrading, and\nuninstalling.\n\nTo use the Resource Manager API, we recommend that you use the\nGDC console and gdcloud CLI. If your application needs to\nuse your own libraries to call this API, use the following example and the\n[full API definition](/distributed-cloud/hosted/docs/latest/appliance/apis/service/resourcemanager/v1/resourcemanager-v1) to build your\nrequests.\n\nService endpoint and discovery document\n---------------------------------------\n\nThe API endpoint for the Resource Manager API is\n`https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/resourcemanager.gdc.goog/v1`\nwhere \u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e is the endpoint of the\nManagement API server.\n\nThe Resource Manager View API follows a similar convention for its API endpoint:\n`https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/resourcemanagerview.gdc.goog/v1`.\n\nUsing the `kubectl proxy` command, you can access the API endpoint URLs in your\nbrowser or with a tool such as `curl` to get the discovery document for the\nResource Manager API. The `kubectl proxy` command opens up a proxy to the\nKubernetes API server on your local machine. Once that command is running, you\ncan access the document at the following URL:\n`http://127.0.0.1:8001/apis/resourcemanager.gdc.goog/v1`.\n\nExample Project resource\n------------------------\n\nThe following is an example of a `Project` object configured as a\nGDC project resource. As a user of the Resource Manager\nAPI, creating a project through the GDC console generates the\n`Project` object by default. You must only modify it to reflect the project\nstate you want. \n\n apiVersion: resourcemanager.gdc.goog/v1\n kind: Project\n name: test-project\n namespace: test-namespace"]]