1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDnsGlbMonitors
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getDnsGlbMonitors

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve the details of an existing IBM Cloud infrastructure private DNS Global Load Balancers monitors as a read-only data source. For more information, see viewing Global Load Balancer events.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const dsPdnsGlbMonitors = ibm.getDnsGlbMonitors({
        instanceId: "resource_instance_guid",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ds_pdns_glb_monitors = ibm.get_dns_glb_monitors(instance_id="resource_instance_guid")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetDnsGlbMonitors(ctx, &ibm.GetDnsGlbMonitorsArgs{
    			InstanceId: "resource_instance_guid",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var dsPdnsGlbMonitors = Ibm.GetDnsGlbMonitors.Invoke(new()
        {
            InstanceId = "resource_instance_guid",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetDnsGlbMonitorsArgs;
    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 dsPdnsGlbMonitors = IbmFunctions.getDnsGlbMonitors(GetDnsGlbMonitorsArgs.builder()
                .instanceId("resource_instance_guid")
                .build());
    
        }
    }
    
    variables:
      dsPdnsGlbMonitors:
        fn::invoke:
          function: ibm:getDnsGlbMonitors
          arguments:
            instanceId: resource_instance_guid
    

    Using getDnsGlbMonitors

    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 getDnsGlbMonitors(args: GetDnsGlbMonitorsArgs, opts?: InvokeOptions): Promise<GetDnsGlbMonitorsResult>
    function getDnsGlbMonitorsOutput(args: GetDnsGlbMonitorsOutputArgs, opts?: InvokeOptions): Output<GetDnsGlbMonitorsResult>
    def get_dns_glb_monitors(id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDnsGlbMonitorsResult
    def get_dns_glb_monitors_output(id: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDnsGlbMonitorsResult]
    func GetDnsGlbMonitors(ctx *Context, args *GetDnsGlbMonitorsArgs, opts ...InvokeOption) (*GetDnsGlbMonitorsResult, error)
    func GetDnsGlbMonitorsOutput(ctx *Context, args *GetDnsGlbMonitorsOutputArgs, opts ...InvokeOption) GetDnsGlbMonitorsResultOutput

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

    public static class GetDnsGlbMonitors 
    {
        public static Task<GetDnsGlbMonitorsResult> InvokeAsync(GetDnsGlbMonitorsArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsGlbMonitorsResult> Invoke(GetDnsGlbMonitorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsGlbMonitorsResult> getDnsGlbMonitors(GetDnsGlbMonitorsArgs args, InvokeOptions options)
    public static Output<GetDnsGlbMonitorsResult> getDnsGlbMonitors(GetDnsGlbMonitorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDnsGlbMonitors:getDnsGlbMonitors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The GUID of the private DNS service instance.
    Id string
    InstanceId string
    The GUID of the private DNS service instance.
    Id string
    instanceId String
    The GUID of the private DNS service instance.
    id String
    instanceId string
    The GUID of the private DNS service instance.
    id string
    instance_id str
    The GUID of the private DNS service instance.
    id str
    instanceId String
    The GUID of the private DNS service instance.
    id String

    getDnsGlbMonitors Result

    The following output properties are available:

    DnsGlbMonitors List<GetDnsGlbMonitorsDnsGlbMonitor>
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    Id string
    InstanceId string
    DnsGlbMonitors []GetDnsGlbMonitorsDnsGlbMonitor
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    Id string
    InstanceId string
    dnsGlbMonitors List<GetDnsGlbMonitorsDnsGlbMonitor>
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    id String
    instanceId String
    dnsGlbMonitors GetDnsGlbMonitorsDnsGlbMonitor[]
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    id string
    instanceId string
    dns_glb_monitors Sequence[GetDnsGlbMonitorsDnsGlbMonitor]
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    id str
    instance_id str
    dnsGlbMonitors List<Property Map>
    (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
    id String
    instanceId String

    Supporting Types

    GetDnsGlbMonitorsDnsGlbMonitor

    AllowInsecure bool
    (String) Do not validate the certificate when monitor use HTTPS.
    CreatedOn string
    Description string
    (String) The descriptive text of the DNS Load balancer monitor.
    ExpectedBody string
    (String) A case insensitive substring to look for in the response body.
    ExpectedCodes string
    (String) The expected HTTP response code or code range of the health check.
    Interval double
    (String) The interval between each health check.
    Method string
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    ModifiedOn string
    MonitorId string
    (String) The monitor ID.
    Name string
    (String) The name of the DNS Load balancer monitor.
    Path string
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    Port double
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    Retries double
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    Timeout double
    (String) The timeout (in seconds) before marking the health check as failed.
    Type string
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.
    AllowInsecure bool
    (String) Do not validate the certificate when monitor use HTTPS.
    CreatedOn string
    Description string
    (String) The descriptive text of the DNS Load balancer monitor.
    ExpectedBody string
    (String) A case insensitive substring to look for in the response body.
    ExpectedCodes string
    (String) The expected HTTP response code or code range of the health check.
    Interval float64
    (String) The interval between each health check.
    Method string
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    ModifiedOn string
    MonitorId string
    (String) The monitor ID.
    Name string
    (String) The name of the DNS Load balancer monitor.
    Path string
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    Port float64
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    Retries float64
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    Timeout float64
    (String) The timeout (in seconds) before marking the health check as failed.
    Type string
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.
    allowInsecure Boolean
    (String) Do not validate the certificate when monitor use HTTPS.
    createdOn String
    description String
    (String) The descriptive text of the DNS Load balancer monitor.
    expectedBody String
    (String) A case insensitive substring to look for in the response body.
    expectedCodes String
    (String) The expected HTTP response code or code range of the health check.
    interval Double
    (String) The interval between each health check.
    method String
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    modifiedOn String
    monitorId String
    (String) The monitor ID.
    name String
    (String) The name of the DNS Load balancer monitor.
    path String
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    port Double
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    retries Double
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    timeout Double
    (String) The timeout (in seconds) before marking the health check as failed.
    type String
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.
    allowInsecure boolean
    (String) Do not validate the certificate when monitor use HTTPS.
    createdOn string
    description string
    (String) The descriptive text of the DNS Load balancer monitor.
    expectedBody string
    (String) A case insensitive substring to look for in the response body.
    expectedCodes string
    (String) The expected HTTP response code or code range of the health check.
    interval number
    (String) The interval between each health check.
    method string
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    modifiedOn string
    monitorId string
    (String) The monitor ID.
    name string
    (String) The name of the DNS Load balancer monitor.
    path string
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    port number
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    retries number
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    timeout number
    (String) The timeout (in seconds) before marking the health check as failed.
    type string
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.
    allow_insecure bool
    (String) Do not validate the certificate when monitor use HTTPS.
    created_on str
    description str
    (String) The descriptive text of the DNS Load balancer monitor.
    expected_body str
    (String) A case insensitive substring to look for in the response body.
    expected_codes str
    (String) The expected HTTP response code or code range of the health check.
    interval float
    (String) The interval between each health check.
    method str
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    modified_on str
    monitor_id str
    (String) The monitor ID.
    name str
    (String) The name of the DNS Load balancer monitor.
    path str
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    port float
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    retries float
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    timeout float
    (String) The timeout (in seconds) before marking the health check as failed.
    type str
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.
    allowInsecure Boolean
    (String) Do not validate the certificate when monitor use HTTPS.
    createdOn String
    description String
    (String) The descriptive text of the DNS Load balancer monitor.
    expectedBody String
    (String) A case insensitive substring to look for in the response body.
    expectedCodes String
    (String) The expected HTTP response code or code range of the health check.
    interval Number
    (String) The interval between each health check.
    method String
    (String) The method to use for the health check applicable to HTTP, HTTPS based checks, the default value is GET.
    modifiedOn String
    monitorId String
    (String) The monitor ID.
    name String
    (String) The name of the DNS Load balancer monitor.
    path String
    (String) The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
    port Number
    (String) Port number to connect to for the health check. Required for TCP checks, HTTP, and HTTPS checks.
    retries Number
    (String) The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
    timeout Number
    (String) The timeout (in seconds) before marking the health check as failed.
    type String
    (String) The protocol to use for the health check. Currently supported protocols are HTTP, HTTPS, and TCP.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud