Class NetworkEndpoint
A Network endpoint represents a IP address and port combination that is part of a specific network endpoint group (NEG). NEGs are zonals collection of these endpoints for GCP resources within a single subnet. NOTE: Network endpoints cannot be created outside of a network endpoint group.
To get more information about NetworkEndpoint, see:
- API documentation
- How-to Guides
- Official Documentation
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class NetworkEndpoint : CustomResource
Constructors
View SourceNetworkEndpoint(String, NetworkEndpointArgs, CustomResourceOptions)
Create a NetworkEndpoint resource with the given unique name, arguments, and options.
Declaration
public NetworkEndpoint(string name, NetworkEndpointArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NetworkEndpointArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceInstance
The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group.
Declaration
public Output<string> Instance { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpAddress
IPv4 address of network endpoint. The IP address must belong to a VM in GCE (either the primary IP or as part of an aliased IP range).
Declaration
public Output<string> IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkEndpointGroup
The network endpoint group this endpoint is part of.
Declaration
public Output<string> NetworkEndpointGroup { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Port
Port number of network endpoint.
Declaration
public Output<int> Port { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Zone
Zone where the containing network endpoint group is located.
Declaration
public Output<string> Zone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NetworkEndpointState, CustomResourceOptions)
Get an existing NetworkEndpoint resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NetworkEndpoint Get(string name, Input<string> id, NetworkEndpointState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NetworkEndpointState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NetworkEndpoint |