1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getLBIPRanges
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.compute.getLBIPRanges

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Use this data source to access IP ranges in your firewall rules.

    https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules

    Example Usage

    data "google_compute_lb_ip_ranges" "ranges" {
    }
    
    resource "google_compute_firewall" "lb" {
      name    = "lb-firewall"
      network = google_compute_network.main.name
    
      allow {
        protocol = "tcp"
        ports    = ["80"]
      }
    
      source_ranges = data.google_compute_lb_ip_ranges.ranges.network
      target_tags = [
        "InstanceBehindLoadBalancer",
      ]
    }
    

    Using getLBIPRanges

    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 getLBIPRanges(opts?: InvokeOptions): Promise<GetLBIPRangesResult>
    function getLBIPRangesOutput(opts?: InvokeOptions): Output<GetLBIPRangesResult>
    def get_lbip_ranges(opts: Optional[InvokeOptions] = None) -> GetLBIPRangesResult
    def get_lbip_ranges_output(opts: Optional[InvokeOptions] = None) -> Output[GetLBIPRangesResult]
    func GetLBIPRanges(ctx *Context, opts ...InvokeOption) (*GetLBIPRangesResult, error)
    func GetLBIPRangesOutput(ctx *Context, opts ...InvokeOption) GetLBIPRangesResultOutput

    > Note: This function is named GetLBIPRanges in the Go SDK.

    public static class GetLBIPRanges 
    {
        public static Task<GetLBIPRangesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLBIPRangesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLBIPRangesResult> getLBIPRanges(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:compute/getLBIPRanges:getLBIPRanges
      arguments:
        # arguments dictionary

    getLBIPRanges Result

    The following output properties are available:

    HttpSslTcpInternals List<string>
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    Id string
    The provider-assigned unique ID for this managed resource.
    Networks List<string>
    The IP ranges used for health checks when Network load balancing is used
    HttpSslTcpInternals []string
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    Id string
    The provider-assigned unique ID for this managed resource.
    Networks []string
    The IP ranges used for health checks when Network load balancing is used
    httpSslTcpInternals List<String>
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<String>
    The IP ranges used for health checks when Network load balancing is used
    httpSslTcpInternals string[]
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    id string
    The provider-assigned unique ID for this managed resource.
    networks string[]
    The IP ranges used for health checks when Network load balancing is used
    http_ssl_tcp_internals Sequence[str]
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    id str
    The provider-assigned unique ID for this managed resource.
    networks Sequence[str]
    The IP ranges used for health checks when Network load balancing is used
    httpSslTcpInternals List<String>
    The IP ranges used for health checks when HTTP(S), SSL proxy, TCP proxy, and Internal load balancing is used
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<String>
    The IP ranges used for health checks when Network load balancing is used

    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.29.0 published on Wednesday, Jun 26, 2024 by Pulumi