1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getLoadBalancerMonitorGroup
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleLoadBalancerMonitorGroup = cloudflare.getLoadBalancerMonitorGroup({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        monitorGroupId: "17b5962d775c646f3f9725cbc7a53df4",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_load_balancer_monitor_group = cloudflare.get_load_balancer_monitor_group(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        monitor_group_id="17b5962d775c646f3f9725cbc7a53df4")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetLoadBalancerMonitorGroup(ctx, &cloudflare.LookupLoadBalancerMonitorGroupArgs{
    			AccountId:      "023e105f4ecef8ad9ca31a8372d0c353",
    			MonitorGroupId: "17b5962d775c646f3f9725cbc7a53df4",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleLoadBalancerMonitorGroup = Cloudflare.GetLoadBalancerMonitorGroup.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            MonitorGroupId = "17b5962d775c646f3f9725cbc7a53df4",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetLoadBalancerMonitorGroupArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleLoadBalancerMonitorGroup = CloudflareFunctions.getLoadBalancerMonitorGroup(GetLoadBalancerMonitorGroupArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .monitorGroupId("17b5962d775c646f3f9725cbc7a53df4")
                .build());
    
        }
    }
    
    variables:
      exampleLoadBalancerMonitorGroup:
        fn::invoke:
          function: cloudflare:getLoadBalancerMonitorGroup
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            monitorGroupId: 17b5962d775c646f3f9725cbc7a53df4
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getloadbalancermonitorgroup" "exampleLoadBalancerMonitorGroup" {
      account_id       = "023e105f4ecef8ad9ca31a8372d0c353"
      monitor_group_id = "17b5962d775c646f3f9725cbc7a53df4"
    }
    

    Using getLoadBalancerMonitorGroup

    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 getLoadBalancerMonitorGroup(args: GetLoadBalancerMonitorGroupArgs, opts?: InvokeOptions): Promise<GetLoadBalancerMonitorGroupResult>
    function getLoadBalancerMonitorGroupOutput(args: GetLoadBalancerMonitorGroupOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerMonitorGroupResult>
    def get_load_balancer_monitor_group(account_id: Optional[str] = None,
                                        monitor_group_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetLoadBalancerMonitorGroupResult
    def get_load_balancer_monitor_group_output(account_id: pulumi.Input[Optional[str]] = None,
                                        monitor_group_id: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerMonitorGroupResult]
    func LookupLoadBalancerMonitorGroup(ctx *Context, args *LookupLoadBalancerMonitorGroupArgs, opts ...InvokeOption) (*LookupLoadBalancerMonitorGroupResult, error)
    func LookupLoadBalancerMonitorGroupOutput(ctx *Context, args *LookupLoadBalancerMonitorGroupOutputArgs, opts ...InvokeOption) LookupLoadBalancerMonitorGroupResultOutput

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

    public static class GetLoadBalancerMonitorGroup 
    {
        public static Task<GetLoadBalancerMonitorGroupResult> InvokeAsync(GetLoadBalancerMonitorGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetLoadBalancerMonitorGroupResult> Invoke(GetLoadBalancerMonitorGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadBalancerMonitorGroupResult> getLoadBalancerMonitorGroup(GetLoadBalancerMonitorGroupArgs args, InvokeOptions options)
    public static Output<GetLoadBalancerMonitorGroupResult> getLoadBalancerMonitorGroup(GetLoadBalancerMonitorGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getLoadBalancerMonitorGroup:getLoadBalancerMonitorGroup
      arguments:
        # arguments dictionary
    data "cloudflare_get_load_balancer_monitor_group" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Identifier.
    MonitorGroupId string
    AccountId string
    Identifier.
    MonitorGroupId string
    account_id string
    Identifier.
    monitor_group_id string
    accountId String
    Identifier.
    monitorGroupId String
    accountId string
    Identifier.
    monitorGroupId string
    account_id str
    Identifier.
    monitor_group_id str
    accountId String
    Identifier.
    monitorGroupId String

    getLoadBalancerMonitorGroup Result

    The following output properties are available:

    AccountId string
    Identifier.
    CreatedOn string
    The timestamp of when the monitor group was created
    Description string
    A short description of the monitor group
    Id string
    The ID of this resource.
    Members List<GetLoadBalancerMonitorGroupMember>
    List of monitors in this group
    ModifiedOn string
    The timestamp of when the monitor group was last updated
    MonitorGroupId string
    AccountId string
    Identifier.
    CreatedOn string
    The timestamp of when the monitor group was created
    Description string
    A short description of the monitor group
    Id string
    The ID of this resource.
    Members []GetLoadBalancerMonitorGroupMember
    List of monitors in this group
    ModifiedOn string
    The timestamp of when the monitor group was last updated
    MonitorGroupId string
    account_id string
    Identifier.
    created_on string
    The timestamp of when the monitor group was created
    description string
    A short description of the monitor group
    id string
    The ID of this resource.
    members list(object)
    List of monitors in this group
    modified_on string
    The timestamp of when the monitor group was last updated
    monitor_group_id string
    accountId String
    Identifier.
    createdOn String
    The timestamp of when the monitor group was created
    description String
    A short description of the monitor group
    id String
    The ID of this resource.
    members List<GetLoadBalancerMonitorGroupMember>
    List of monitors in this group
    modifiedOn String
    The timestamp of when the monitor group was last updated
    monitorGroupId String
    accountId string
    Identifier.
    createdOn string
    The timestamp of when the monitor group was created
    description string
    A short description of the monitor group
    id string
    The ID of this resource.
    members GetLoadBalancerMonitorGroupMember[]
    List of monitors in this group
    modifiedOn string
    The timestamp of when the monitor group was last updated
    monitorGroupId string
    account_id str
    Identifier.
    created_on str
    The timestamp of when the monitor group was created
    description str
    A short description of the monitor group
    id str
    The ID of this resource.
    members Sequence[GetLoadBalancerMonitorGroupMember]
    List of monitors in this group
    modified_on str
    The timestamp of when the monitor group was last updated
    monitor_group_id str
    accountId String
    Identifier.
    createdOn String
    The timestamp of when the monitor group was created
    description String
    A short description of the monitor group
    id String
    The ID of this resource.
    members List<Property Map>
    List of monitors in this group
    modifiedOn String
    The timestamp of when the monitor group was last updated
    monitorGroupId String

    Supporting Types

    GetLoadBalancerMonitorGroupMember

    CreatedAt string
    The timestamp of when the monitor was added to the group
    Enabled bool
    Whether this monitor is enabled in the group
    MonitorId string
    The ID of the Monitor to use for checking the health of origins within this pool.
    MonitoringOnly bool
    Whether this monitor is used for monitoring only (does not affect pool health)
    MustBeHealthy bool
    Whether this monitor must be healthy for the pool to be considered healthy
    UpdatedAt string
    The timestamp of when the monitor group member was last updated
    CreatedAt string
    The timestamp of when the monitor was added to the group
    Enabled bool
    Whether this monitor is enabled in the group
    MonitorId string
    The ID of the Monitor to use for checking the health of origins within this pool.
    MonitoringOnly bool
    Whether this monitor is used for monitoring only (does not affect pool health)
    MustBeHealthy bool
    Whether this monitor must be healthy for the pool to be considered healthy
    UpdatedAt string
    The timestamp of when the monitor group member was last updated
    created_at string
    The timestamp of when the monitor was added to the group
    enabled bool
    Whether this monitor is enabled in the group
    monitor_id string
    The ID of the Monitor to use for checking the health of origins within this pool.
    monitoring_only bool
    Whether this monitor is used for monitoring only (does not affect pool health)
    must_be_healthy bool
    Whether this monitor must be healthy for the pool to be considered healthy
    updated_at string
    The timestamp of when the monitor group member was last updated
    createdAt String
    The timestamp of when the monitor was added to the group
    enabled Boolean
    Whether this monitor is enabled in the group
    monitorId String
    The ID of the Monitor to use for checking the health of origins within this pool.
    monitoringOnly Boolean
    Whether this monitor is used for monitoring only (does not affect pool health)
    mustBeHealthy Boolean
    Whether this monitor must be healthy for the pool to be considered healthy
    updatedAt String
    The timestamp of when the monitor group member was last updated
    createdAt string
    The timestamp of when the monitor was added to the group
    enabled boolean
    Whether this monitor is enabled in the group
    monitorId string
    The ID of the Monitor to use for checking the health of origins within this pool.
    monitoringOnly boolean
    Whether this monitor is used for monitoring only (does not affect pool health)
    mustBeHealthy boolean
    Whether this monitor must be healthy for the pool to be considered healthy
    updatedAt string
    The timestamp of when the monitor group member was last updated
    created_at str
    The timestamp of when the monitor was added to the group
    enabled bool
    Whether this monitor is enabled in the group
    monitor_id str
    The ID of the Monitor to use for checking the health of origins within this pool.
    monitoring_only bool
    Whether this monitor is used for monitoring only (does not affect pool health)
    must_be_healthy bool
    Whether this monitor must be healthy for the pool to be considered healthy
    updated_at str
    The timestamp of when the monitor group member was last updated
    createdAt String
    The timestamp of when the monitor was added to the group
    enabled Boolean
    Whether this monitor is enabled in the group
    monitorId String
    The ID of the Monitor to use for checking the health of origins within this pool.
    monitoringOnly Boolean
    Whether this monitor is used for monitoring only (does not affect pool health)
    mustBeHealthy Boolean
    Whether this monitor must be healthy for the pool to be considered healthy
    updatedAt String
    The timestamp of when the monitor group member was last updated

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial