1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. monitoring
  5. getUptimeCheckIPs
Google Cloud Classic v7.19.0 published on Thursday, Apr 18, 2024 by Pulumi

gcp.monitoring.getUptimeCheckIPs

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.19.0 published on Thursday, Apr 18, 2024 by Pulumi

    Returns the list of IP addresses that checkers run from. For more information see the official documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const ips = gcp.monitoring.getUptimeCheckIPs({});
    export const ipList = ips.then(ips => ips.uptimeCheckIps);
    
    import pulumi
    import pulumi_gcp as gcp
    
    ips = gcp.monitoring.get_uptime_check_i_ps()
    pulumi.export("ipList", ips.uptime_check_ips)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/monitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ips, err := monitoring.GetUptimeCheckIPs(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("ipList", ips.UptimeCheckIps)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var ips = Gcp.Monitoring.GetUptimeCheckIPs.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["ipList"] = ips.Apply(getUptimeCheckIPsResult => getUptimeCheckIPsResult.UptimeCheckIps),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.monitoring.MonitoringFunctions;
    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 ips = MonitoringFunctions.getUptimeCheckIPs();
    
            ctx.export("ipList", ips.applyValue(getUptimeCheckIPsResult -> getUptimeCheckIPsResult.uptimeCheckIps()));
        }
    }
    
    variables:
      ips:
        fn::invoke:
          Function: gcp:monitoring:getUptimeCheckIPs
          Arguments: {}
    outputs:
      ipList: ${ips.uptimeCheckIps}
    

    Using getUptimeCheckIPs

    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 getUptimeCheckIPs(opts?: InvokeOptions): Promise<GetUptimeCheckIPsResult>
    function getUptimeCheckIPsOutput(opts?: InvokeOptions): Output<GetUptimeCheckIPsResult>
    def get_uptime_check_i_ps(opts: Optional[InvokeOptions] = None) -> GetUptimeCheckIPsResult
    def get_uptime_check_i_ps_output(opts: Optional[InvokeOptions] = None) -> Output[GetUptimeCheckIPsResult]
    func GetUptimeCheckIPs(ctx *Context, opts ...InvokeOption) (*GetUptimeCheckIPsResult, error)
    func GetUptimeCheckIPsOutput(ctx *Context, opts ...InvokeOption) GetUptimeCheckIPsResultOutput

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

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

    getUptimeCheckIPs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    UptimeCheckIps List<GetUptimeCheckIPsUptimeCheckIp>
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:
    Id string
    The provider-assigned unique ID for this managed resource.
    UptimeCheckIps []GetUptimeCheckIPsUptimeCheckIp
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:
    id String
    The provider-assigned unique ID for this managed resource.
    uptimeCheckIps List<GetUptimeCheckIPsUptimeCheckIp>
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:
    id string
    The provider-assigned unique ID for this managed resource.
    uptimeCheckIps GetUptimeCheckIPsUptimeCheckIp[]
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:
    id str
    The provider-assigned unique ID for this managed resource.
    uptime_check_ips Sequence[GetUptimeCheckIPsUptimeCheckIp]
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:
    id String
    The provider-assigned unique ID for this managed resource.
    uptimeCheckIps List<Property Map>
    A list of uptime check IPs used by Stackdriver Monitoring. Each uptime_check_ip contains:

    Supporting Types

    GetUptimeCheckIPsUptimeCheckIp

    IpAddress string
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    Location string
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    Region string
    A broad region category in which the IP address is located.
    IpAddress string
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    Location string
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    Region string
    A broad region category in which the IP address is located.
    ipAddress String
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    location String
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    region String
    A broad region category in which the IP address is located.
    ipAddress string
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    location string
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    region string
    A broad region category in which the IP address is located.
    ip_address str
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    location str
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    region str
    A broad region category in which the IP address is located.
    ipAddress String
    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
    location String
    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
    region String
    A broad region category in which the IP address is located.

    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.19.0 published on Thursday, Apr 18, 2024 by Pulumi