1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getRegionNetworkEndpointGroup
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

gcp.compute.getRegionNetworkEndpointGroup

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

    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.

    SelfLink 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.

    SelfLink 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.

    selfLink 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.

    selfLink 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.

    selfLink String

    The Network Endpoint Group self_link.

    getRegionNetworkEndpointGroup Result

    The following output properties are available:

    AppEngines List<GetRegionNetworkEndpointGroupAppEngine>
    CloudFunctions List<GetRegionNetworkEndpointGroupCloudFunction>
    CloudRuns List<GetRegionNetworkEndpointGroupCloudRun>
    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.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group.

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    ServerlessDeployments List<GetRegionNetworkEndpointGroupServerlessDeployment>
    Subnetwork string

    subnetwork to which all network endpoints in the RNEG belong.

    Name string
    Project string
    Region string
    SelfLink string
    AppEngines []GetRegionNetworkEndpointGroupAppEngine
    CloudFunctions []GetRegionNetworkEndpointGroupCloudFunction
    CloudRuns []GetRegionNetworkEndpointGroupCloudRun
    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.

    NetworkEndpointType string

    Type of network endpoints in this network endpoint group.

    PscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    ServerlessDeployments []GetRegionNetworkEndpointGroupServerlessDeployment
    Subnetwork string

    subnetwork to which all network endpoints in the RNEG belong.

    Name string
    Project string
    Region string
    SelfLink string
    appEngines List<GetRegionNetworkEndpointGroupAppEngine>
    cloudFunctions List<GetRegionNetworkEndpointGroupCloudFunction>
    cloudRuns List<GetRegionNetworkEndpointGroupCloudRun>
    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.

    networkEndpointType String

    Type of network endpoints in this network endpoint group.

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployments List<GetRegionNetworkEndpointGroupServerlessDeployment>
    subnetwork String

    subnetwork to which all network endpoints in the RNEG belong.

    name String
    project String
    region String
    selfLink String
    appEngines GetRegionNetworkEndpointGroupAppEngine[]
    cloudFunctions GetRegionNetworkEndpointGroupCloudFunction[]
    cloudRuns GetRegionNetworkEndpointGroupCloudRun[]
    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.

    networkEndpointType string

    Type of network endpoints in this network endpoint group.

    pscTargetService string

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployments GetRegionNetworkEndpointGroupServerlessDeployment[]
    subnetwork string

    subnetwork to which all network endpoints in the RNEG belong.

    name string
    project string
    region string
    selfLink string
    app_engines Sequence[GetRegionNetworkEndpointGroupAppEngine]
    cloud_functions Sequence[GetRegionNetworkEndpointGroupCloudFunction]
    cloud_runs Sequence[GetRegionNetworkEndpointGroupCloudRun]
    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_type str

    Type of network endpoints in this network endpoint group.

    psc_target_service str

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverless_deployments Sequence[GetRegionNetworkEndpointGroupServerlessDeployment]
    subnetwork str

    subnetwork to which all network endpoints in the RNEG belong.

    name str
    project str
    region str
    self_link str
    appEngines List<Property Map>
    cloudFunctions List<Property Map>
    cloudRuns 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.

    networkEndpointType String

    Type of network endpoints in this network endpoint group.

    pscTargetService String

    The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.

    serverlessDeployments List<Property Map>
    subnetwork String

    subnetwork to which all network endpoints in the RNEG belong.

    name String
    project String
    region String
    selfLink String

    Supporting Types

    GetRegionNetworkEndpointGroupAppEngine

    Service string
    UrlMask string
    Version string
    Service string
    UrlMask string
    Version string
    service String
    urlMask String
    version String
    service string
    urlMask string
    version string
    service String
    urlMask String
    version String

    GetRegionNetworkEndpointGroupCloudFunction

    Function string
    UrlMask string
    Function string
    UrlMask string
    function String
    urlMask String
    function string
    urlMask string
    function String
    urlMask String

    GetRegionNetworkEndpointGroupCloudRun

    Service string
    Tag string
    UrlMask string
    Service string
    Tag string
    UrlMask string
    service String
    tag String
    urlMask String
    service string
    tag string
    urlMask string
    service str
    tag str
    url_mask str
    service String
    tag String
    urlMask String

    GetRegionNetworkEndpointGroupServerlessDeployment

    Platform string
    Resource string
    UrlMask string
    Version string
    Platform string
    Resource string
    UrlMask string
    Version string
    platform String
    resource String
    urlMask String
    version String
    platform string
    resource string
    urlMask string
    version string
    platform String
    resource String
    urlMask String
    version String

    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.

    gcp logo
    Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi