Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
L'API Billing utilise des ressources personnalisées Kubernetes et s'appuie sur le modèle de ressources Kubernetes (KRM) pour gérer les SKU des services Google Distributed Cloud (GDC) air-gapped.
Pour utiliser l'API Billing, accédez à la console GDC. Si votre application utilise vos propres bibliothèques pour appeler l'API, adoptez l'exemple de point de terminaison de service dans la section suivante et les définitions complètes de l'API pour créer vos requêtes.
La variable MANAGEMENT_API_SERVER_ENDPOINT est le point de terminaison du serveur de l'API Management.
À l'aide de la commande kubectl proxy, accédez à l'URL dans votre navigateur pour obtenir le document de découverte de l'API Billing. La commande kubectl proxy ouvre un proxy sur 127.0.0.1:8001 vers le serveur d'API Kubernetes sur votre machine locale. Une fois cette commande exécutée, vous pouvez accéder au document aux URL suivantes :
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 Billing API utilizes Kubernetes custom resources and the Kubernetes Resource Model (KRM) to manage SKUs for Google Distributed Cloud (GDC) air-gapped services.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the Billing API via the GDC console, or by using the provided API definitions and example service endpoints to build your own requests.\u003c/p\u003e\n"],["\u003cp\u003eThe Billing APIs are available in two packages, zonal and global, with their respective endpoints provided for each deployment type.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the discovery document for the Billing API by using the \u003ccode\u003ekubectl proxy\u003c/code\u003e command and accessing specific URLs on your local machine.\u003c/p\u003e\n"],["\u003cp\u003eAn example of a SKUDescription is provided, showcasing the structure of a resource within the Billing API.\u003c/p\u003e\n"]]],[],null,["# Billing API overview\n\nThe Billing API uses Kubernetes custom resources and relies on the\nKubernetes Resource Model (KRM) to manage SKUs for\nGoogle Distributed Cloud (GDC) air-gapped services.\n\nTo use the Billing API, use the GDC console. If your application uses\nyour own libraries to call the API, adopt the example service endpoint in the\nfollowing section, and the full API definitions to build your requests.\n\n- [billing.gdc.goog/v1](/distributed-cloud/hosted/docs/latest/gdch/apis/service/billing/v1/billing-v1)\n- [billing.global.gdc.goog/v1](/distributed-cloud/hosted/docs/latest/gdch/apis/service/billing/v1/global-billing-v1)\n\nService endpoint and discovery document\n---------------------------------------\n\nThe Billing APIs are provided in two packages depending on zonal deployment or\nglobal deployment.\n\nThe API endpoints for the zonal and global Billing APIs are the following,\nrespectively:\n\n- `https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/billing.gdc.goog/v1`\n- `https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/billing.global.gdc.goog/v1`\n\nThe \u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e variable is the\nendpoint of the Management API server.\n\nUsing the `kubectl proxy` command, access the URL in your browser to\nobtain the discovery document for the Billing API. The `kubectl proxy`\ncommand opens up a proxy on `127.0.0.1:8001` to the Kubernetes API server on\nyour local machine. After that command is running, you can access the document at\nthe following URLs:\n\n- `http://127.0.0.1:8001/apis/billing.gdc.goog/v1`\n- `http://127.0.0.1:8001/apis/billing.global.gdc.goog/v1`\n\nExample resources\n-----------------\n\nThe following is a sample `SKUDescription` resource: \n\n apiVersion: billing.gdc.goog/v1\n kind: SKUDescription\n metadata:\n name: 4a76-432c-797f\n namespace: billing-system\n skuID: 4A76-432C-797F\n invoiceDescription: \"GDC-H Sample SKU\"\n description: \"A description to describe what the SKU is charging.\"\n category: Sample\n pricingInfo:\n - unitPrice:\n currencyCode: USD\n units: 100\n nanos: 0\n usageUnit: vTestResource * month\n effectiveTime: \"2023-01-01T00:00:00-08:00\""]]