Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
A API Billing usa recursos personalizados do Kubernetes e depende do
modelo de recursos do Kubernetes (KRM) para gerenciar SKUs de
serviços isolados do Google Distributed Cloud (GDC).
Para usar a API Billing, use o console do GDC. Se o aplicativo usar
suas próprias bibliotecas para chamar a API, adote o endpoint de serviço de exemplo na
seção a seguir e as definições completas da API para criar suas solicitações.
A variável MANAGEMENT_API_SERVER_ENDPOINT é o
endpoint do servidor da API Management.
Usando o comando kubectl proxy, acesse o URL no navegador para
receber o documento de descoberta da API Billing. O comando kubectl proxy
abre um proxy em 127.0.0.1:8001 para o servidor da API Kubernetes na
máquina local. Depois que esse comando estiver em execução, acesse o documento nos seguintes URLs:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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\""]]