Esse papel predefinido contém
as permissões necessárias para visualizar perfis de rede. Para conferir as permissões exatas
necessárias, expanda a seção Permissões necessárias:
Permissões necessárias
As seguintes permissões são necessárias para visualizar perfis de rede:
Nesta seção, descrevemos como listar perfis de rede usando a CLI do Google Cloud
e a API. Há uma instância exclusiva de um determinado perfil de rede para cada
local em que ele está disponível.
Se você estiver usando o console do Google Cloud , poderá conferir a lista de perfis de rede por local como parte da configuração do perfil de rede ao criar uma rede VPC. Para mais informações, consulte
Criar uma rede VPC para NICs RDMA.
GET https://compute.googleapis.com/compute/projects/PROJECT_ID/global/networkProfiles
Substitua PROJECT_ID pela ID do seu projeto.
Ver os detalhes de um perfil de rede
Nesta seção, descrevemos como conferir os detalhes de um perfil de rede usando a
CLI do Google Cloud ou a API.
Se você estiver usando o console do Google Cloud , poderá conferir os detalhes de um perfil de rede como parte da configuração dele ao criar uma rede VPC ou ao visualizar uma rede atual que tenha um perfil de rede configurado.
[[["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,["# View network profiles\n=====================\n\nThis page describes how to view network profiles in Google Cloud.\n\nRequired roles\n--------------\n\n\nTo get the permissions that\nyou need to view network profiles,\n\nask your administrator to grant you the\n\n\n[Compute Network Viewer](/iam/docs/roles-permissions/compute#compute.networkViewer) (`roles/compute.networkViewer`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nThis predefined role contains\n\nthe permissions required to view network profiles. To see the exact permissions that are\nrequired, expand the **Required permissions** section:\n\n\n#### Required permissions\n\nThe following permissions are required to view network profiles:\n\n- ` compute.networkProfiles.get `\n- ` compute.networkProfiles.list`\n\n\nYou might also be able to get\nthese permissions\nwith [custom roles](/iam/docs/creating-custom-roles) or\nother [predefined roles](/iam/docs/roles-overview#predefined).\n\nList network profiles\n---------------------\n\nThis section describes how to list network profiles by using the Google Cloud CLI\nand the API. There is a unique instance of a given network profile for each\nlocation in which it is available.\n\nIf you are using the Google Cloud console, you can view the list of network\nprofiles by location as part of the network profile configuration when you\ncreate a VPC network. For more information, see\n[Create a VPC network for RDMA NICs](/vpc/docs/create-vpc-network-rdma). \n\n### gcloud\n\nTo list all network profiles in Google Cloud, use the [`gcloud compute network-profiles list` command](/sdk/gcloud/reference/compute/network-profiles/list). \n\n```\ngcloud compute network-profiles list\n```\n\nTo list the network profiles that are available in a specific zone, use the `location.name` filter. \n\n```\ngcloud compute network-profiles list --filter='location.name=ZONE'\n```\n\nReplace \u003cvar translate=\"no\"\u003eZONE\u003c/var\u003e with the zone for which you want to view\nnetwork profiles, such as `europe-west1-b`.\n\n### API\n\nTo list all network profiles in Google Cloud, use the [`networkProfiles.list` method](/compute/docs/reference/rest/v1/networkProfiles/list). \n\n```\nGET https://compute.googleapis.com/compute/projects/PROJECT_ID/global/networkProfiles\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with your project ID.\n\nView the details of a network profile\n-------------------------------------\n\nThis section describes how to view the details of a network profile by using the\nGoogle Cloud CLI or the API.\n\nIf you are using the Google Cloud console, you can view the details of a network\nprofile as part of the network profile configuration when you [create a VPC network](/vpc/docs/create-vpc-network-rdma),\nor when [viewing an existing network](/vpc/docs/create-modify-vpc-networks#viewing-networks)\nthat has a network profile configured. \n\n### gcloud\n\nTo view the details of a network profile, use the [`gcloud compute network-profiles describe` command](/sdk/gcloud/reference/compute/network-profiles/describe). \n\n```\ngcloud compute network-profiles describe NETWORK_PROFILE\n```\n\nReplace \u003cvar translate=\"no\"\u003eNETWORK_PROFILE\u003c/var\u003e with the name of the network profile.\n\n### API\n\nTo view the details of a network profile, use the [`networkProfiles.get` method](/compute/docs/reference/rest/v1/networkProfiles/get). \n\n```\nGET https://compute.googleapis.com/compute/projects/PROJECT_ID/global/networkProfiles/NETWORK_PROFILE\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eNETWORK_PROFILE\u003c/var\u003e: the name of the network profile.\n\nWhat's next\n-----------\n\n- [Get an overview of network profiles](/vpc/docs/network-profiles)\n- [Learn about the RDMA network profile](/vpc/docs/rdma-network-profiles)\n- [Create a VPC network for RDMA NICs](/vpc/docs/create-vpc-network-rdma)"]]