1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. RegionNetworkEndpoint
Google Cloud Classic v7.24.0 published on Friday, May 24, 2024 by Pulumi

gcp.compute.RegionNetworkEndpoint

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.24.0 published on Friday, May 24, 2024 by Pulumi

    A Region network endpoint represents a IP address/FQDN and port combination that is part of a specific network endpoint group (NEG).

    NOTE: Network endpoints cannot be created outside of a network endpoint group.

    To get more information about RegionNetworkEndpoint, see:

    Example Usage

    Region Network Endpoint Internet Ip Port

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.Network("default", {
        name: "network",
        autoCreateSubnetworks: false,
    });
    const group = new gcp.compute.RegionNetworkEndpointGroup("group", {
        name: "ip-port-neg",
        network: _default.id,
        region: "us-central1",
        networkEndpointType: "INTERNET_IP_PORT",
    });
    const region_internet_ip_port_endpoint = new gcp.compute.RegionNetworkEndpoint("region-internet-ip-port-endpoint", {
        regionNetworkEndpointGroup: group.name,
        region: "us-central1",
        ipAddress: "8.8.8.8",
        port: 443,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.Network("default",
        name="network",
        auto_create_subnetworks=False)
    group = gcp.compute.RegionNetworkEndpointGroup("group",
        name="ip-port-neg",
        network=default.id,
        region="us-central1",
        network_endpoint_type="INTERNET_IP_PORT")
    region_internet_ip_port_endpoint = gcp.compute.RegionNetworkEndpoint("region-internet-ip-port-endpoint",
        region_network_endpoint_group=group.name,
        region="us-central1",
        ip_address="8.8.8.8",
        port=443)
    
    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.NewNetwork(ctx, "default", &compute.NetworkArgs{
    			Name:                  pulumi.String("network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		group, err := compute.NewRegionNetworkEndpointGroup(ctx, "group", &compute.RegionNetworkEndpointGroupArgs{
    			Name:                pulumi.String("ip-port-neg"),
    			Network:             _default.ID(),
    			Region:              pulumi.String("us-central1"),
    			NetworkEndpointType: pulumi.String("INTERNET_IP_PORT"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionNetworkEndpoint(ctx, "region-internet-ip-port-endpoint", &compute.RegionNetworkEndpointArgs{
    			RegionNetworkEndpointGroup: group.Name,
    			Region:                     pulumi.String("us-central1"),
    			IpAddress:                  pulumi.String("8.8.8.8"),
    			Port:                       pulumi.Int(443),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.Network("default", new()
        {
            Name = "network",
            AutoCreateSubnetworks = false,
        });
    
        var @group = new Gcp.Compute.RegionNetworkEndpointGroup("group", new()
        {
            Name = "ip-port-neg",
            Network = @default.Id,
            Region = "us-central1",
            NetworkEndpointType = "INTERNET_IP_PORT",
        });
    
        var region_internet_ip_port_endpoint = new Gcp.Compute.RegionNetworkEndpoint("region-internet-ip-port-endpoint", new()
        {
            RegionNetworkEndpointGroup = @group.Name,
            Region = "us-central1",
            IpAddress = "8.8.8.8",
            Port = 443,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpoint;
    import com.pulumi.gcp.compute.RegionNetworkEndpointArgs;
    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) {
            var default_ = new Network("default", NetworkArgs.builder()
                .name("network")
                .autoCreateSubnetworks(false)
                .build());
    
            var group = new RegionNetworkEndpointGroup("group", RegionNetworkEndpointGroupArgs.builder()
                .name("ip-port-neg")
                .network(default_.id())
                .region("us-central1")
                .networkEndpointType("INTERNET_IP_PORT")
                .build());
    
            var region_internet_ip_port_endpoint = new RegionNetworkEndpoint("region-internet-ip-port-endpoint", RegionNetworkEndpointArgs.builder()
                .regionNetworkEndpointGroup(group.name())
                .region("us-central1")
                .ipAddress("8.8.8.8")
                .port(443)
                .build());
    
        }
    }
    
    resources:
      region-internet-ip-port-endpoint:
        type: gcp:compute:RegionNetworkEndpoint
        properties:
          regionNetworkEndpointGroup: ${group.name}
          region: us-central1
          ipAddress: 8.8.8.8
          port: 443
      group:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          name: ip-port-neg
          network: ${default.id}
          region: us-central1
          networkEndpointType: INTERNET_IP_PORT
      default:
        type: gcp:compute:Network
        properties:
          name: network
          autoCreateSubnetworks: false
    

    Region Network Endpoint Internet Fqdn Port

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.Network("default", {
        name: "network",
        autoCreateSubnetworks: false,
    });
    const group = new gcp.compute.RegionNetworkEndpointGroup("group", {
        name: "fqdn-port-neg",
        network: _default.id,
        region: "us-central1",
        networkEndpointType: "INTERNET_FQDN_PORT",
    });
    const region_internet_fqdn_port_endpoint = new gcp.compute.RegionNetworkEndpoint("region-internet-fqdn-port-endpoint", {
        regionNetworkEndpointGroup: group.name,
        region: "us-central1",
        fqdn: "backend.example.com",
        port: 443,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.Network("default",
        name="network",
        auto_create_subnetworks=False)
    group = gcp.compute.RegionNetworkEndpointGroup("group",
        name="fqdn-port-neg",
        network=default.id,
        region="us-central1",
        network_endpoint_type="INTERNET_FQDN_PORT")
    region_internet_fqdn_port_endpoint = gcp.compute.RegionNetworkEndpoint("region-internet-fqdn-port-endpoint",
        region_network_endpoint_group=group.name,
        region="us-central1",
        fqdn="backend.example.com",
        port=443)
    
    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.NewNetwork(ctx, "default", &compute.NetworkArgs{
    			Name:                  pulumi.String("network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		group, err := compute.NewRegionNetworkEndpointGroup(ctx, "group", &compute.RegionNetworkEndpointGroupArgs{
    			Name:                pulumi.String("fqdn-port-neg"),
    			Network:             _default.ID(),
    			Region:              pulumi.String("us-central1"),
    			NetworkEndpointType: pulumi.String("INTERNET_FQDN_PORT"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewRegionNetworkEndpoint(ctx, "region-internet-fqdn-port-endpoint", &compute.RegionNetworkEndpointArgs{
    			RegionNetworkEndpointGroup: group.Name,
    			Region:                     pulumi.String("us-central1"),
    			Fqdn:                       pulumi.String("backend.example.com"),
    			Port:                       pulumi.Int(443),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.Network("default", new()
        {
            Name = "network",
            AutoCreateSubnetworks = false,
        });
    
        var @group = new Gcp.Compute.RegionNetworkEndpointGroup("group", new()
        {
            Name = "fqdn-port-neg",
            Network = @default.Id,
            Region = "us-central1",
            NetworkEndpointType = "INTERNET_FQDN_PORT",
        });
    
        var region_internet_fqdn_port_endpoint = new Gcp.Compute.RegionNetworkEndpoint("region-internet-fqdn-port-endpoint", new()
        {
            RegionNetworkEndpointGroup = @group.Name,
            Region = "us-central1",
            Fqdn = "backend.example.com",
            Port = 443,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroup;
    import com.pulumi.gcp.compute.RegionNetworkEndpointGroupArgs;
    import com.pulumi.gcp.compute.RegionNetworkEndpoint;
    import com.pulumi.gcp.compute.RegionNetworkEndpointArgs;
    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) {
            var default_ = new Network("default", NetworkArgs.builder()
                .name("network")
                .autoCreateSubnetworks(false)
                .build());
    
            var group = new RegionNetworkEndpointGroup("group", RegionNetworkEndpointGroupArgs.builder()
                .name("fqdn-port-neg")
                .network(default_.id())
                .region("us-central1")
                .networkEndpointType("INTERNET_FQDN_PORT")
                .build());
    
            var region_internet_fqdn_port_endpoint = new RegionNetworkEndpoint("region-internet-fqdn-port-endpoint", RegionNetworkEndpointArgs.builder()
                .regionNetworkEndpointGroup(group.name())
                .region("us-central1")
                .fqdn("backend.example.com")
                .port(443)
                .build());
    
        }
    }
    
    resources:
      region-internet-fqdn-port-endpoint:
        type: gcp:compute:RegionNetworkEndpoint
        properties:
          regionNetworkEndpointGroup: ${group.name}
          region: us-central1
          fqdn: backend.example.com
          port: 443
      group:
        type: gcp:compute:RegionNetworkEndpointGroup
        properties:
          name: fqdn-port-neg
          network: ${default.id}
          region: us-central1
          networkEndpointType: INTERNET_FQDN_PORT
      default:
        type: gcp:compute:Network
        properties:
          name: network
          autoCreateSubnetworks: false
    

    Create RegionNetworkEndpoint Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RegionNetworkEndpoint(name: string, args: RegionNetworkEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def RegionNetworkEndpoint(resource_name: str,
                              args: RegionNetworkEndpointArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def RegionNetworkEndpoint(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              port: Optional[int] = None,
                              region_network_endpoint_group: Optional[str] = None,
                              fqdn: Optional[str] = None,
                              ip_address: Optional[str] = None,
                              project: Optional[str] = None,
                              region: Optional[str] = None)
    func NewRegionNetworkEndpoint(ctx *Context, name string, args RegionNetworkEndpointArgs, opts ...ResourceOption) (*RegionNetworkEndpoint, error)
    public RegionNetworkEndpoint(string name, RegionNetworkEndpointArgs args, CustomResourceOptions? opts = null)
    public RegionNetworkEndpoint(String name, RegionNetworkEndpointArgs args)
    public RegionNetworkEndpoint(String name, RegionNetworkEndpointArgs args, CustomResourceOptions options)
    
    type: gcp:compute:RegionNetworkEndpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RegionNetworkEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RegionNetworkEndpointArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RegionNetworkEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegionNetworkEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegionNetworkEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var regionNetworkEndpointResource = new Gcp.Compute.RegionNetworkEndpoint("regionNetworkEndpointResource", new()
    {
        Port = 0,
        RegionNetworkEndpointGroup = "string",
        Fqdn = "string",
        IpAddress = "string",
        Project = "string",
        Region = "string",
    });
    
    example, err := compute.NewRegionNetworkEndpoint(ctx, "regionNetworkEndpointResource", &compute.RegionNetworkEndpointArgs{
    	Port:                       pulumi.Int(0),
    	RegionNetworkEndpointGroup: pulumi.String("string"),
    	Fqdn:                       pulumi.String("string"),
    	IpAddress:                  pulumi.String("string"),
    	Project:                    pulumi.String("string"),
    	Region:                     pulumi.String("string"),
    })
    
    var regionNetworkEndpointResource = new RegionNetworkEndpoint("regionNetworkEndpointResource", RegionNetworkEndpointArgs.builder()        
        .port(0)
        .regionNetworkEndpointGroup("string")
        .fqdn("string")
        .ipAddress("string")
        .project("string")
        .region("string")
        .build());
    
    region_network_endpoint_resource = gcp.compute.RegionNetworkEndpoint("regionNetworkEndpointResource",
        port=0,
        region_network_endpoint_group="string",
        fqdn="string",
        ip_address="string",
        project="string",
        region="string")
    
    const regionNetworkEndpointResource = new gcp.compute.RegionNetworkEndpoint("regionNetworkEndpointResource", {
        port: 0,
        regionNetworkEndpointGroup: "string",
        fqdn: "string",
        ipAddress: "string",
        project: "string",
        region: "string",
    });
    
    type: gcp:compute:RegionNetworkEndpoint
    properties:
        fqdn: string
        ipAddress: string
        port: 0
        project: string
        region: string
        regionNetworkEndpointGroup: string
    

    RegionNetworkEndpoint Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The RegionNetworkEndpoint resource accepts the following input properties:

    Port int
    Port number of network endpoint.
    RegionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    Fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    IpAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    Region where the containing network endpoint group is located.
    Port int
    Port number of network endpoint.
    RegionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    Fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    IpAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    Region where the containing network endpoint group is located.
    port Integer
    Port number of network endpoint.
    regionNetworkEndpointGroup String
    The network endpoint group this endpoint is part of.


    fqdn String
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress String
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    Region where the containing network endpoint group is located.
    port number
    Port number of network endpoint.
    regionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    Region where the containing network endpoint group is located.
    port int
    Port number of network endpoint.
    region_network_endpoint_group str
    The network endpoint group this endpoint is part of.


    fqdn str
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ip_address str
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region str
    Region where the containing network endpoint group is located.
    port Number
    Port number of network endpoint.
    regionNetworkEndpointGroup String
    The network endpoint group this endpoint is part of.


    fqdn String
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress String
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    Region where the containing network endpoint group is located.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RegionNetworkEndpoint resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RegionNetworkEndpoint Resource

    Get an existing RegionNetworkEndpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RegionNetworkEndpointState, opts?: CustomResourceOptions): RegionNetworkEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fqdn: Optional[str] = None,
            ip_address: Optional[str] = None,
            port: Optional[int] = None,
            project: Optional[str] = None,
            region: Optional[str] = None,
            region_network_endpoint_group: Optional[str] = None) -> RegionNetworkEndpoint
    func GetRegionNetworkEndpoint(ctx *Context, name string, id IDInput, state *RegionNetworkEndpointState, opts ...ResourceOption) (*RegionNetworkEndpoint, error)
    public static RegionNetworkEndpoint Get(string name, Input<string> id, RegionNetworkEndpointState? state, CustomResourceOptions? opts = null)
    public static RegionNetworkEndpoint get(String name, Output<String> id, RegionNetworkEndpointState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    IpAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    Port int
    Port number of network endpoint.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    Region where the containing network endpoint group is located.
    RegionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    Fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    IpAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    Port int
    Port number of network endpoint.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Region string
    Region where the containing network endpoint group is located.
    RegionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    fqdn String
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress String
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    port Integer
    Port number of network endpoint.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    Region where the containing network endpoint group is located.
    regionNetworkEndpointGroup String
    The network endpoint group this endpoint is part of.


    fqdn string
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress string
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    port number
    Port number of network endpoint.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region string
    Region where the containing network endpoint group is located.
    regionNetworkEndpointGroup string
    The network endpoint group this endpoint is part of.


    fqdn str
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ip_address str
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    port int
    Port number of network endpoint.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region str
    Region where the containing network endpoint group is located.
    region_network_endpoint_group str
    The network endpoint group this endpoint is part of.


    fqdn String
    Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.
    ipAddress String
    IPv4 address external endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_IP_PORT.
    port Number
    Port number of network endpoint.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    region String
    Region where the containing network endpoint group is located.
    regionNetworkEndpointGroup String
    The network endpoint group this endpoint is part of.


    Import

    RegionNetworkEndpoint can be imported using any of these accepted formats:

    • projects/{{project}}/regions/{{region}}/networkEndpointGroups/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}

    • {{project}}/{{region}}/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}

    • {{region}}/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}

    • {{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}

    When using the pulumi import command, RegionNetworkEndpoint can be imported using one of the formats above. For example:

    $ pulumi import gcp:compute/regionNetworkEndpoint:RegionNetworkEndpoint default projects/{{project}}/regions/{{region}}/networkEndpointGroups/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}
    
    $ pulumi import gcp:compute/regionNetworkEndpoint:RegionNetworkEndpoint default {{project}}/{{region}}/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}
    
    $ pulumi import gcp:compute/regionNetworkEndpoint:RegionNetworkEndpoint default {{region}}/{{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}
    
    $ pulumi import gcp:compute/regionNetworkEndpoint:RegionNetworkEndpoint default {{region_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.24.0 published on Friday, May 24, 2024 by Pulumi