- 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/v1/projects/{project}/global/networkProfiles/{networkProfile}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
network |
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, "zone": string, "location": { "scope": enum, "name": string }, "features": { "allowSameNetworkUnicast": enum, "unicast": enum, "allowAutoModeSubnet": enum, "allowVpcPeering": enum, "allowMultiNicInSameNetwork": enum, "allowLoadBalancing": enum, "allowStaticRoutes": enum, "allowPsc": enum, "allowCloudRouter": enum, "allowCloudNat": enum, "allowVpn": enum, "allowInterconnect": enum, "allowPacketMirroring": enum, "subnetPurposes": [ enum ], "subnetStackTypes": [ enum ], "allowPrivateGoogleAccess": enum, "interfaceTypes": [ enum ], "allowClassDFirewalls": enum, "allowSubInterfaces": enum, "allowExternalIpAccess": enum, "addressPurposes": [ enum ], "allowAliasIpRanges": 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. |
creation |
[Output Only] Creation timestamp in RFC3339 text format. |
name |
[Output Only] Name of the resource. |
description |
[Output Only] An optional description of this resource. |
self |
[Output Only] Server-defined URL for the resource. |
self |
[Output Only] Server-defined URL for this resource with the resource id. |
zone |
[Output Only] Zone to which the network is restricted. |
location |
[Output Only] Location to which the network is restricted. |
location. |
|
location. |
|
features |
[Output Only] Features supported by the network. |
features. |
Specifies whether unicast within the same network is allowed. |
features. |
Specifies which type of unicast is supported. |
features. |
Specifies whether auto mode subnet creation is allowed. |
features. |
Specifies whether VPC peering is allowed. |
features. |
Specifies whether multi-nic in the same network is allowed. |
features. |
Specifies whether cloud load balancing is allowed. |
features. |
Specifies whether static route creation is allowed. |
features. |
Specifies whether PSC creation is allowed. |
features. |
Specifies whether cloud router creation is allowed. |
features. |
Specifies whether cloud NAT creation is allowed. |
features. |
Specifies whether VPN creation is allowed. |
features. |
Specifies whether Cloud Interconnect creation is allowed. |
features. |
Specifies whether Packet Mirroring 1.0 is supported. |
features. |
Specifies which subnetwork purposes are supported. |
features. |
Specifies which subnetwork stack types are supported. |
features. |
Specifies whether private Google access is allowed. |
features. |
If set, limits the interface types that the network supports. If empty, all interface types are supported. |
features. |
Specifies whether firewalls for Class D address ranges are supported. |
features. |
Specifies whether sub interfaces are allowed. |
features. |
Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. |
features. |
Specifies what address purposes are supported. If empty, all address purposes are supported. |
features. |
Specifies whether alias IP ranges (and secondary address ranges) are allowed. |
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.