Class GetNetworkEndpointGroup
Inheritance
System.Object
GetNetworkEndpointGroup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetNetworkEndpointGroup
Methods
View SourceInvokeAsync(GetNetworkEndpointGroupArgs, InvokeOptions)
Use this data source to access a Network Endpoint Group's attributes.
The NEG may be found by providing either a self_link, or a name and a zone.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var neg1 = Output.Create(Gcp.Compute.GetNetworkEndpointGroup.InvokeAsync(new Gcp.Compute.GetNetworkEndpointGroupArgs
{
Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
Zone = "us-central1-a",
}));
var neg2 = Output.Create(Gcp.Compute.GetNetworkEndpointGroup.InvokeAsync(new Gcp.Compute.GetNetworkEndpointGroupArgs
{
SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetNetworkEndpointGroupResult> InvokeAsync(GetNetworkEndpointGroupArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNetworkEndpointGroupArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNetworkEndpointGroupResult> |