Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
A API Resource Manager usa recursos personalizados do Kubernetes e depende do modelo de recursos do Kubernetes (KRM) para provisionamento e administração de recursos da organização e do projeto. Ele é usado para gerenciar o ciclo de vida de
organizações e projetos isolados do Google Distributed Cloud (GDC), como instalação,
upgrade e desinstalação.
Para usar a API Resource Manager, recomendamos que você use o console do
GDC, a CLI gdcloud ou chame a API diretamente usando a
CLI kubectl. Se o aplicativo precisar usar suas próprias bibliotecas para chamar
essa API, use os exemplos 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, é possível acessar os URLs endpoint de API no navegador ou com uma ferramenta como curl para receber o documento de descoberta da API Resource Manager. O comando kubectl proxy abre um proxy para o
servidor da API Kubernetes na sua máquina local. Depois que esse comando estiver em execução, você
poderá acessar os documentos nos seguintes URLs:
Confira a seguir um exemplo de um objeto Project configurado como um
recurso de projeto do GDC. Como usuário da API Resource Manager, a criação de um projeto pelo console do GDC gera o objeto Project por padrão. Você só precisa modificá-lo para refletir o estado do projeto que quer.
[[["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 Resource Manager API utilizes Kubernetes custom resources and the Kubernetes Resource Model (KRM) to manage the lifecycle of Google Distributed Cloud (GDC) air-gapped organizations and projects.\u003c/p\u003e\n"],["\u003cp\u003eUsers can interact with the Resource Manager API through the GDC console, gdcloud CLI, or directly via the \u003ccode\u003ekubectl\u003c/code\u003e CLI, and can also use provided API definitions to build requests through custom libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe Resource Manager API is available in two packages, with separate API endpoints for zonal deployments (\u003ccode\u003ehttps://<var translate="no">MANAGEMENT_API_SERVER_ENDPOINT</var>/apis/resourcemanager.gdc.goog/v1\u003c/code\u003e) and global deployments (\u003ccode\u003ehttps://<var translate="no">MANAGEMENT_API_SERVER_ENDPOINT</var>/apis/resourcemanager.global.gdc.goog/v1\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eYou can access the API discovery documents locally via \u003ccode\u003ekubectl proxy\u003c/code\u003e using provided URLs like \u003ccode\u003ehttp://127.0.0.1:8001/apis/resourcemanager.gdc.goog/v1\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe creation of a project through the GDC console generates a default \u003ccode\u003eProject\u003c/code\u003e object that users can modify to match the desired project state.\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 organizations and projects, such as installing,\nupgrading, and uninstalling.\n\nTo use the Resource Manager API, we recommend that you use the\nGDC console, gdcloud CLI, or call the API directly using\nthe `kubectl` CLI. If your application needs to use your own libraries to call\nthis API, use the following examples and the full API definitions to build your\nrequests:\n\n- [resourcemanager.gdc.goog](/distributed-cloud/hosted/docs/latest/gdch/apis/service/resourcemanager/v1/resourcemanager-v1)\n- [resourcemanager.global.gdc.goog](/distributed-cloud/hosted/docs/latest/gdch/apis/service/resourcemanager/v1/global-resourcemanager-v1)\n- [resourcemanagerview.gdc.goog](/distributed-cloud/hosted/docs/latest/gdch/apis/service/resourcemanagerview/v1/resourcemanagerview-v1)\n\nService endpoint and discovery document\n---------------------------------------\n\nThe Resource Manager APIs are provided in two packages depending on zonal deployment or\nglobal deployment.\n\nThe API endpoints for the zonal and global Resource Manager APIs are the following,\nrespectively:\n\n- `https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/resourcemanager.gdc.goog/v1`\n- `https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/resourcemanager.global.gdc.goog/v1`\n\nThe API endpoint for the Resource Manager View API is the following: \n\n https://\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e/apis/resourcemanagerview.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, 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. After that command is running, you\ncan access the documents at the following URLs:\n\n- `http://127.0.0.1:8001/apis/resourcemanager.gdc.goog/v1`\n- `http://127.0.0.1:8001/apis/resourcemanager.global.gdc.goog/v1`\n- `http://127.0.0.1:8001/apis/resourcemanagerview.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.global.gdc.goog/v1\n kind: Project\n metadata:\n namespace: platform\n name: test-project"]]