gcp.compute.getRegionNetworkEndpointGroup
Explore with Pulumi AI
Use this data source to access a Region Network Endpoint Group’s attributes.
The RNEG may be found by providing either a self_link
, or a name
and a region
.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var rneg1 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new()
{
Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
Region = "us-central1",
});
var rneg2 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new()
{
SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupRegionNetworkEndpointGroup(ctx, &compute.LookupRegionNetworkEndpointGroupArgs{
Name: pulumi.StringRef("k8s1-abcdef01-myns-mysvc-8080-4b6bac43"),
Region: pulumi.StringRef("us-central1"),
}, nil)
if err != nil {
return err
}
_, err = compute.LookupRegionNetworkEndpointGroup(ctx, &compute.LookupRegionNetworkEndpointGroupArgs{
SelfLink: pulumi.StringRef("https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRegionNetworkEndpointGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var rneg1 = ComputeFunctions.getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs.builder()
.name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
.region("us-central1")
.build());
final var rneg2 = ComputeFunctions.getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs.builder()
.selfLink("https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
rneg1 = gcp.compute.get_region_network_endpoint_group(name="k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
region="us-central1")
rneg2 = gcp.compute.get_region_network_endpoint_group(self_link="https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const rneg1 = gcp.compute.getRegionNetworkEndpointGroup({
name: "k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
region: "us-central1",
});
const rneg2 = gcp.compute.getRegionNetworkEndpointGroup({
selfLink: "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
});
variables:
rneg1:
fn::invoke:
Function: gcp:compute:getRegionNetworkEndpointGroup
Arguments:
name: k8s1-abcdef01-myns-mysvc-8080-4b6bac43
region: us-central1
rneg2:
fn::invoke:
Function: gcp:compute:getRegionNetworkEndpointGroup
Arguments:
selfLink: https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43
Using getRegionNetworkEndpointGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegionNetworkEndpointGroup(args: GetRegionNetworkEndpointGroupArgs, opts?: InvokeOptions): Promise<GetRegionNetworkEndpointGroupResult>
function getRegionNetworkEndpointGroupOutput(args: GetRegionNetworkEndpointGroupOutputArgs, opts?: InvokeOptions): Output<GetRegionNetworkEndpointGroupResult>
def get_region_network_endpoint_group(name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
self_link: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionNetworkEndpointGroupResult
def get_region_network_endpoint_group_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
self_link: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionNetworkEndpointGroupResult]
func LookupRegionNetworkEndpointGroup(ctx *Context, args *LookupRegionNetworkEndpointGroupArgs, opts ...InvokeOption) (*LookupRegionNetworkEndpointGroupResult, error)
func LookupRegionNetworkEndpointGroupOutput(ctx *Context, args *LookupRegionNetworkEndpointGroupOutputArgs, opts ...InvokeOption) LookupRegionNetworkEndpointGroupResultOutput
> Note: This function is named LookupRegionNetworkEndpointGroup
in the Go SDK.
public static class GetRegionNetworkEndpointGroup
{
public static Task<GetRegionNetworkEndpointGroupResult> InvokeAsync(GetRegionNetworkEndpointGroupArgs args, InvokeOptions? opts = null)
public static Output<GetRegionNetworkEndpointGroupResult> Invoke(GetRegionNetworkEndpointGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionNetworkEndpointGroupResult> getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
The Network Endpoint Group name. Provide either this or a
self_link
.- Project string
The ID of the project to list versions in. If it is not provided, the provider project is used.
- Region string
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- Self
Link string The Network Endpoint Group self_link.
- Name string
The Network Endpoint Group name. Provide either this or a
self_link
.- Project string
The ID of the project to list versions in. If it is not provided, the provider project is used.
- Region string
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- Self
Link string The Network Endpoint Group self_link.
- name String
The Network Endpoint Group name. Provide either this or a
self_link
.- project String
The ID of the project to list versions in. If it is not provided, the provider project is used.
- region String
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- self
Link String The Network Endpoint Group self_link.
- name string
The Network Endpoint Group name. Provide either this or a
self_link
.- project string
The ID of the project to list versions in. If it is not provided, the provider project is used.
- region string
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- self
Link string The Network Endpoint Group self_link.
- name str
The Network Endpoint Group name. Provide either this or a
self_link
.- project str
The ID of the project to list versions in. If it is not provided, the provider project is used.
- region str
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- self_
link str The Network Endpoint Group self_link.
- name String
The Network Endpoint Group name. Provide either this or a
self_link
.- project String
The ID of the project to list versions in. If it is not provided, the provider project is used.
- region String
A reference to the region where the Serverless REGs Reside. Provide either this or a
self_link
.- self
Link String The Network Endpoint Group self_link.
getRegionNetworkEndpointGroup Result
The following output properties are available:
- App
Engines List<GetRegion Network Endpoint Group App Engine> - Cloud
Functions List<GetRegion Network Endpoint Group Cloud Function> - Cloud
Runs List<GetRegion Network Endpoint Group Cloud Run> - Description string
The RNEG description.
- Id string
The provider-assigned unique ID for this managed resource.
- Network string
The network to which all network endpoints in the RNEG belong.
- Network
Endpoint stringType Type of network endpoints in this network endpoint group.
- Psc
Target stringService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- Serverless
Deployments List<GetRegion Network Endpoint Group Serverless Deployment> - Subnetwork string
subnetwork to which all network endpoints in the RNEG belong.
- Name string
- Project string
- Region string
- Self
Link string
- App
Engines []GetRegion Network Endpoint Group App Engine - Cloud
Functions []GetRegion Network Endpoint Group Cloud Function - Cloud
Runs []GetRegion Network Endpoint Group Cloud Run - Description string
The RNEG description.
- Id string
The provider-assigned unique ID for this managed resource.
- Network string
The network to which all network endpoints in the RNEG belong.
- Network
Endpoint stringType Type of network endpoints in this network endpoint group.
- Psc
Target stringService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- Serverless
Deployments []GetRegion Network Endpoint Group Serverless Deployment - Subnetwork string
subnetwork to which all network endpoints in the RNEG belong.
- Name string
- Project string
- Region string
- Self
Link string
- app
Engines List<GetRegion Network Endpoint Group App Engine> - cloud
Functions List<GetRegion Network Endpoint Group Cloud Function> - cloud
Runs List<GetRegion Network Endpoint Group Cloud Run> - description String
The RNEG description.
- id String
The provider-assigned unique ID for this managed resource.
- network String
The network to which all network endpoints in the RNEG belong.
- network
Endpoint StringType Type of network endpoints in this network endpoint group.
- psc
Target StringService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- serverless
Deployments List<GetRegion Network Endpoint Group Serverless Deployment> - subnetwork String
subnetwork to which all network endpoints in the RNEG belong.
- name String
- project String
- region String
- self
Link String
- app
Engines GetRegion Network Endpoint Group App Engine[] - cloud
Functions GetRegion Network Endpoint Group Cloud Function[] - cloud
Runs GetRegion Network Endpoint Group Cloud Run[] - description string
The RNEG description.
- id string
The provider-assigned unique ID for this managed resource.
- network string
The network to which all network endpoints in the RNEG belong.
- network
Endpoint stringType Type of network endpoints in this network endpoint group.
- psc
Target stringService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- serverless
Deployments GetRegion Network Endpoint Group Serverless Deployment[] - subnetwork string
subnetwork to which all network endpoints in the RNEG belong.
- name string
- project string
- region string
- self
Link string
- app_
engines Sequence[GetRegion Network Endpoint Group App Engine] - cloud_
functions Sequence[GetRegion Network Endpoint Group Cloud Function] - cloud_
runs Sequence[GetRegion Network Endpoint Group Cloud Run] - description str
The RNEG description.
- id str
The provider-assigned unique ID for this managed resource.
- network str
The network to which all network endpoints in the RNEG belong.
- network_
endpoint_ strtype Type of network endpoints in this network endpoint group.
- psc_
target_ strservice The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- serverless_
deployments Sequence[GetRegion Network Endpoint Group Serverless Deployment] - subnetwork str
subnetwork to which all network endpoints in the RNEG belong.
- name str
- project str
- region str
- self_
link str
- app
Engines List<Property Map> - cloud
Functions List<Property Map> - cloud
Runs List<Property Map> - description String
The RNEG description.
- id String
The provider-assigned unique ID for this managed resource.
- network String
The network to which all network endpoints in the RNEG belong.
- network
Endpoint StringType Type of network endpoints in this network endpoint group.
- psc
Target StringService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
- serverless
Deployments List<Property Map> - subnetwork String
subnetwork to which all network endpoints in the RNEG belong.
- name String
- project String
- region String
- self
Link String
Supporting Types
GetRegionNetworkEndpointGroupAppEngine
GetRegionNetworkEndpointGroupCloudFunction
GetRegionNetworkEndpointGroupCloudRun
GetRegionNetworkEndpointGroupServerlessDeployment
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.