MANAGEMENT_API_SERVER_ENDPOINT 변수는 Management API 서버의 엔드포인트입니다.
kubectl proxy 명령어를 사용하여 브라우저에서 URL에 액세스하여 Billing API의 검색 문서를 가져옵니다. kubectl proxy 명령어를 사용하면 로컬 머신의 Kubernetes API 서버에 127.0.0.1:8001 프록시가 열립니다. 명령어가 실행되면 다음 URL에서 문서에 액세스할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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\""]]