Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Antes de executar testes de conectividade ou configurar os registros de fluxo de VPC, ative a API Network Management.
É necessário ativar a API para usar a API
em si, a Google Cloud CLI ou o console Google Cloud .
Verifique o status da API ou ative a API usando um comando gcloud ou
o console Google Cloud . Você também pode autorizar os usuários a acessar a API.
Ativar a API
Use um dos seguintes métodos para ativar a API.
Console
Quando você carrega testes de conectividade ou registros de fluxo de VPC
no console Google Cloud pela primeira vez em um projeto específico. Para ativar
a API, clique em Ativar a API Network Management.
gcloud
Se você ainda não instalou a Google Cloud CLI na sua estação de trabalho,
consulte a documentação da CLI gcloud para fazer isso.
Para verificar se a API de gerenciamento de rede está ativada, execute o seguinte comando na sua estação de trabalho:
gcloud services list
Se networkmanagement.googleapis.com aparecer na saída do comando, a API estará ativada.
Se a API não estiver ativada, execute o seguinte comando para ativá-la.
Para ver mais informações, consulte gcloud services.
O acesso à API Network Management é controlado por papéis e permissões de
gerenciamento de identidade e acesso. Permissões para métodos relacionados são agrupadas em funções, que você pode conceder aos usuários.
É possível testar comandos da API Network Management usando o
API Explorer. No documento de referência da API Network Management,
use a coluna Try this API para explorar os campos da API e
executar um teste.
[[["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-03 UTC."],[],[],null,["# Enable the Network Management API\n\nBefore you can run Connectivity Tests or configure VPC Flow Logs, you\nmust enable the Network Management API.\n\nEnabling the API is required in order to use the API\nitself, the Google Cloud CLI, or the Google Cloud console.\n\nYou can check API status or enable the API by using a `gcloud` command or by\nusing the Google Cloud console. You can also authorize users\nto access the API.\n\nEnable the API\n--------------\n\nUse one of the following methods to enable the API. \n\n### Console\n\nWhen you load Connectivity Tests or VPC Flow Logs\nin the Google Cloud console for the first time for a specific project. To enable\nthe API click **Enable Network Management API**.\n\n### gcloud\n\n1. If you have not already installed the Google Cloud CLI on your workstation,\n see the [gcloud CLI documentation](/sdk/docs) to do so.\n\n2. To check if the Network Management API is enabled, run the following\n command on your workstation:\n\n ```\n gcloud services list\n ```\n\n If `networkmanagement.googleapis.com` appears in the command output,\n the API is enabled.\n3. If the API is not enabled, run the following command to enable it.\n For more information, see [`gcloud services`](/sdk/gcloud/reference/services).\n\n ```\n gcloud services enable networkmanagement.googleapis.com\n ```\n\nAuthorize use of the API\n------------------------\n\nAccess to the Network Management API is controlled by Identity and Access Management\nroles and permissions. Permissions for related methods are clustered into roles,\nwhich you can then grant to users.\n\nFor more information, see the following documents:\n\n- [Roles and permissions](/network-intelligence-center/docs/connectivity-tests/concepts/access-control)\n- [Managing access control for Connectivity Tests](/network-intelligence-center/docs/connectivity-tests/how-to/managing-access-control)\n\nUse the API Explorer\n--------------------\n\nYou can test Network Management API commands by using the API Explorer. In the Network Management API reference document, use the `Try this API` column to explore API fields and [run a test](/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/v1/projects.locations.global.connectivityTests/create)."]]