Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list()
request.
HTTP request
GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
zone |
The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
resourceId |
The name of the network endpoint group. It should comply with RFC1035. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation | |
---|---|
{ "id": string, "creationTimestamp": string, "selfLink": string, "name": string, "description": string, "networkEndpointType": enum, "size": number, "zone": string, "network": string, "subnetwork": string, "defaultPort": number, "kind": string } |
Fields | |
---|---|
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. |
selfLink |
[Output Only] Server-defined URL for the resource. |
name |
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
networkEndpointType |
Type of network endpoints in this network endpoint group. Currently the only supported value is |
size |
[Output only] Number of network endpoints in the network endpoint group. |
zone |
[Output Only] The URL of the zone where the network endpoint group is located. |
network |
The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified. |
subnetwork |
Optional URL of the subnetwork to which all network endpoints in the NEG belong. |
defaultPort |
The default port used if the port number is not specified in the network endpoint. |
kind |
[Output Only] Type of the resource. Always |
Authorization Scopes
Requires one of the following OAuth scopes:
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 Google IAM permissions:
compute.networkEndpointGroups.get