ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getDnsGlbMonitors
Explore with Pulumi AI
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:
- Instance
Id string - The GUID of the private DNS service instance.
- Id string
- Instance
Id string - The GUID of the private DNS service instance.
- Id string
- instance
Id String - The GUID of the private DNS service instance.
- id String
- instance
Id string - The GUID of the private DNS service instance.
- id string
- instance_
id str - The GUID of the private DNS service instance.
- id str
- instance
Id String - The GUID of the private DNS service instance.
- id String
getDnsGlbMonitors Result
The following output properties are available:
- Dns
Glb List<GetMonitors Dns Glb Monitors Dns Glb Monitor> - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- Id string
- Instance
Id string
- Dns
Glb []GetMonitors Dns Glb Monitors Dns Glb Monitor - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- Id string
- Instance
Id string
- dns
Glb List<GetMonitors Dns Glb Monitors Dns Glb Monitor> - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- id String
- instance
Id String
- dns
Glb GetMonitors Dns Glb Monitors Dns Glb Monitor[] - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- id string
- instance
Id string
- dns_
glb_ Sequence[Getmonitors Dns Glb Monitors Dns Glb Monitor] - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- id str
- instance_
id str
- dns
Glb List<Property Map>Monitors - (List) List of all private DNS Load balancer monitors in the IBM Cloud infrastructure.
- id String
- instance
Id String
Supporting Types
GetDnsGlbMonitorsDnsGlbMonitor
- Allow
Insecure bool - (String) Do not validate the certificate when monitor use HTTPS.
- Created
On string - Description string
- (String) The descriptive text of the DNS Load balancer monitor.
- Expected
Body string - (String) A case insensitive substring to look for in the response body.
- Expected
Codes 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
. - Modified
On string - Monitor
Id 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
, andTCP
.
- Allow
Insecure bool - (String) Do not validate the certificate when monitor use HTTPS.
- Created
On string - Description string
- (String) The descriptive text of the DNS Load balancer monitor.
- Expected
Body string - (String) A case insensitive substring to look for in the response body.
- Expected
Codes 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
. - Modified
On string - Monitor
Id 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
, andTCP
.
- allow
Insecure Boolean - (String) Do not validate the certificate when monitor use HTTPS.
- created
On String - description String
- (String) The descriptive text of the DNS Load balancer monitor.
- expected
Body String - (String) A case insensitive substring to look for in the response body.
- expected
Codes 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
. - modified
On String - monitor
Id 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
, andTCP
.
- allow
Insecure boolean - (String) Do not validate the certificate when monitor use HTTPS.
- created
On string - description string
- (String) The descriptive text of the DNS Load balancer monitor.
- expected
Body string - (String) A case insensitive substring to look for in the response body.
- expected
Codes 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
. - modified
On string - monitor
Id 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
, andTCP
.
- 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
, andTCP
.
- allow
Insecure Boolean - (String) Do not validate the certificate when monitor use HTTPS.
- created
On String - description String
- (String) The descriptive text of the DNS Load balancer monitor.
- expected
Body String - (String) A case insensitive substring to look for in the response body.
- expected
Codes 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
. - modified
On String - monitor
Id 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
, andTCP
.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.