Method: networkProfiles.get

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.

Path parameters

Parameters
project

string

Project ID for this request.

networkProfile

string

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,
  "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

string

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

id

string (uint64 format)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

creationTimestamp

string

[Output Only] Creation timestamp in RFC3339 text format.

name

string

[Output Only] Name of the resource.

description

string

[Output Only] An optional description of this resource.

zone

string

[Output Only] Zone to which the network is restricted.

features

object

[Output Only] Features supported by the network.

features.allowSameNetworkUnicast

enum

Specifies whether unicast within the same network is allowed.

features.unicast

enum

Specifies which type of unicast is supported.

features.allowAutoModeSubnet

enum

Specifies whether auto mode subnet creation is allowed.

features.allowVpcPeering

enum

Specifies whether VPC peering is allowed.

features.allowMultiNicInSameNetwork

enum

Specifies whether multi-nic in the same network is allowed.

features.allowLoadBalancing

enum

Specifies whether cloud load balancing is allowed.

features.allowStaticRoutes

enum

Specifies whether static route creation is allowed.

features.allowPsc

enum

Specifies whether PSC creation is allowed.

features.allowCloudRouter

enum

Specifies whether cloud router creation is allowed.

features.allowCloudNat

enum

Specifies whether cloud NAT creation is allowed.

features.allowVpn

enum

Specifies whether VPN creation is allowed.

features.allowInterconnect

enum

Specifies whether Cloud Interconnect creation is allowed.

features.allowPacketMirroring

enum

Specifies whether Packet Mirroring 1.0 is supported.

features.subnetPurposes[]

enum

Specifies which subnetwork purposes are supported.

features.subnetStackTypes[]

enum

Specifies which subnetwork stack types are supported.

features.allowPrivateGoogleAccess

enum

Specifies whether private Google access is allowed.

features.interfaceTypes[]

enum

If set, limits the interface types that the network supports. If empty, all interface types are supported.

features.allowClassDFirewalls

enum

Specifies whether firewalls for Class D address ranges are supported.

features.allowSubInterfaces

enum

Specifies whether sub interfaces are allowed.

features.allowExternalIpAccess

enum

Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC.

features.addressPurposes[]

enum

Specifies what address purposes are supported. If empty, all address purposes are supported.

features.allowAliasIpRanges

enum

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.