Class NetworkEndpointGroup
Represents a collection of network endpoints. A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up external HTTP(S) Load Balancing with internet NEGs, Setting up zonal NEGs, or Setting up external HTTP(S) Load Balancing with serverless NEGs.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class NetworkEndpointGroup : IDirectResponseSchema
Properties
Annotations
Metadata defined as annotations on the network endpoint group.
Declaration
[JsonProperty("annotations")]
public virtual IDictionary<string, string> Annotations { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<System.String, System.String> |
AppEngine
Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
Declaration
[JsonProperty("appEngine")]
public virtual NetworkEndpointGroupAppEngine AppEngine { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkEndpointGroupAppEngine |
CloudFunction
Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
Declaration
[JsonProperty("cloudFunction")]
public virtual NetworkEndpointGroupCloudFunction CloudFunction { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkEndpointGroupCloudFunction |
CloudRun
Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
Declaration
[JsonProperty("cloudRun")]
public virtual NetworkEndpointGroupCloudRun CloudRun { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkEndpointGroupCloudRun |
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
DefaultPort
The default port used if the port number is not specified in the network endpoint.
Declaration
[JsonProperty("defaultPort")]
public virtual int? DefaultPort { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.UInt64> |
Kind
[Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
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 [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be
a dash.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Network
The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
Declaration
[JsonProperty("network")]
public virtual string Network { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
NetworkEndpointType
Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
Declaration
[JsonProperty("networkEndpointType")]
public virtual string NetworkEndpointType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Region
[Output Only] The URL of the region where the network endpoint group is located.
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SelfLink
[Output Only] Server-defined URL for the resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Size
[Output only] Number of network endpoints in the network endpoint group.
Declaration
[JsonProperty("size")]
public virtual int? Size { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Subnetwork
Optional URL of the subnetwork to which all network endpoints in the NEG belong.
Declaration
[JsonProperty("subnetwork")]
public virtual string Subnetwork { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Zone
[Output Only] The URL of the zone where the network endpoint group is located.
Declaration
[JsonProperty("zone")]
public virtual string Zone { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |