Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi
gcp.monitoring.getUptimeCheckIPs
Explore with Pulumi AI
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/v8/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, map[string]interface{}{}, 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.
- Uptime
Check List<GetIps Uptime Check IPs Uptime Check Ip> - 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.
- Uptime
Check []GetIps Uptime Check IPs Uptime Check Ip - 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.
- uptime
Check List<GetIps Uptime Check IPs Uptime Check Ip> - 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.
- uptime
Check GetIps Uptime Check IPs Uptime Check Ip[] - 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_ Sequence[Getips Uptime Check IPs Uptime Check Ip] - 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.
- uptime
Check List<Property Map>Ips - A list of uptime check IPs used by Stackdriver Monitoring. Each
uptime_check_ip
contains:
Supporting Types
GetUptimeCheckIPsUptimeCheckIp
- Ip
Address 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 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 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 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.
- ip
Address 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.