- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Returns the specified network profile.
HTTP request
GET https://compute.googleapis.com/compute/beta/projects/{project}/global/networkProfiles/{networkProfile}
The URL uses gRPC Transcoding syntax. To know more about valid error responses that can be thrown by this HTTP request, please refer to the service error catalog
Path parameters
| Parameters | |
|---|---|
| project | 
 Project ID for this request. | 
| networkProfile | 
 Name of the network profile to return. | 
Request body
The request body must be empty.
Response body
NetworkProfile represents a Google managed network profile resource.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "selfLink": string, "selfLinkWithId": string, "location": { "scope": enum, "name": string }, "profileType": { "rdmaSubtype": enum, "vpcSubtype": enum, "ullSubtype": enum, "networkType": enum }, "features": { "allowSameNetworkUnicast": enum, "unicast": enum, "multicast": enum, "allowMulticast": enum, "allowAutoModeSubnet": enum, "allowVpcPeering": enum, "allowMultiNicInSameNetwork": enum, "allowLoadBalancing": enum, "allowStaticRoutes": enum, "allowPsc": enum, "allowCloudRouter": enum, "allowCloudNat": enum, "allowVpn": enum, "allowInterconnect": enum, "allowPacketMirroring": enum, "subnetworkPurposes": [ enum ], "subnetworkStackTypes": [ enum ], "subnetPurposes": [ enum ], "subnetStackTypes": [ enum ], "allowPrivateGoogleAccess": enum, "interfaceTypes": [ enum ], "allowClassDFirewalls": enum, "allowSubInterfaces": enum, "allowExternalIpAccess": enum, "addressPurposes": [ enum ], "allowAliasIpRanges": enum, "allowDefaultNicAttachment": enum, "allowNcc": enum, "allowIpForwarding": enum, "allowNetworkMigration": enum, "allowFirewallPolicy": enum, "firewallPolicyTypes": [ enum ] } } | 
| Fields | |
|---|---|
| kind | 
 [Output Only] Type of the resource. Always  | 
| id | 
 [Output Only] The unique identifier for the resource. This identifier is defined by the server. | 
| creationTimestamp | 
 [Output Only] Creation timestamp in RFC3339 text format. | 
| name | 
 [Output Only] Name of the resource. | 
| description | 
 [Output Only] An optional description of this resource. | 
| selfLink | 
 [Output Only] Server-defined URL for the resource. | 
| selfLinkWithId | 
 [Output Only] Server-defined URL for this resource with the resource id. | 
| location | 
 [Output Only] Location to which the network is restricted. | 
| location.scope | 
 | 
| location.name | 
 | 
| profileType | 
 [Output Only] Type of the network profile. | 
| profileType.rdmaSubtype | 
 | 
| profileType.vpcSubtype | 
 | 
| profileType.ullSubtype | 
 | 
| profileType.networkType | 
 | 
| features | 
 [Output Only] Features supported by the network. | 
| features.allowSameNetworkUnicast | 
 Specifies whether unicast within the same network is allowed. | 
| features.unicast | 
 Specifies which type of unicast is supported. | 
| features.multicast | 
 Specifies which type of multicast is supported. | 
| features.allowMulticast | 
 Specifies whether multicast is allowed. | 
| features.allowAutoModeSubnet | 
 Specifies whether auto mode subnet creation is allowed. | 
| features.allowVpcPeering | 
 Specifies whether VPC peering is allowed. | 
| features.allowMultiNicInSameNetwork | 
 Specifies whether multi-nic in the same network is allowed. | 
| features.allowLoadBalancing | 
 Specifies whether cloud load balancing is allowed. | 
| features.allowStaticRoutes | 
 Specifies whether static route creation is allowed. | 
| features.allowPsc | 
 Specifies whether PSC creation is allowed. | 
| features.allowCloudRouter | 
 Specifies whether cloud router creation is allowed. | 
| features.allowCloudNat | 
 Specifies whether cloud NAT creation is allowed. | 
| features.allowVpn | 
 Specifies whether VPN creation is allowed. | 
| features.allowInterconnect | 
 Specifies whether Cloud Interconnect creation is allowed. | 
| features.allowPacketMirroring | 
 Specifies whether Packet Mirroring 1.0 is supported. | 
| features.subnetworkPurposes[] | 
 Specifies which subnetwork purposes are supported. | 
| features.subnetworkStackTypes[] | 
 Specifies which subnetwork stack types are supported. | 
| features.subnetPurposes[] | 
 Specifies which subnetwork purposes are supported. | 
| features.subnetStackTypes[] | 
 Specifies which subnetwork stack types are supported. | 
| features.allowPrivateGoogleAccess | 
 Specifies whether private Google access is allowed. | 
| features.interfaceTypes[] | 
 If set, limits the interface types that the network supports. If empty, all interface types are supported. | 
| features.allowClassDFirewalls | 
 Specifies whether firewalls for Class D address ranges are supported. | 
| features.allowSubInterfaces | 
 Specifies whether sub interfaces are allowed. | 
| features.allowExternalIpAccess | 
 Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. | 
| features.addressPurposes[] | 
 Specifies what address purposes are supported. If empty, all address purposes are supported. | 
| features.allowAliasIpRanges | 
 Specifies whether alias IP ranges (and secondary address ranges) are allowed. | 
| features.allowDefaultNicAttachment | 
 Specifies whether default NIC attachment is allowed. | 
| features.allowNcc | 
 Specifies whether NCC is allowed. | 
| features.allowIpForwarding | 
 Specifies whether IP forwarding is allowed. | 
| features.allowNetworkMigration | 
 Specifies whether VM network migration is allowed. | 
| features.allowFirewallPolicy | 
 Specifies whether firewall policy can be attached to the network. | 
| features.firewallPolicyTypes[] | 
 | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/compute.readonly
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
In addition to any permissions specified on the fields above, authorization requires one or more of the following IAM permissions:
- compute.networkProfiles.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.