1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getLoadBalancerMonitorGroups
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 exampleLoadBalancerMonitorGroups = cloudflare.getLoadBalancerMonitorGroups({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_load_balancer_monitor_groups = cloudflare.get_load_balancer_monitor_groups(account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetLoadBalancerMonitorGroups(ctx, &cloudflare.LookupLoadBalancerMonitorGroupsArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleLoadBalancerMonitorGroups = Cloudflare.GetLoadBalancerMonitorGroups.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetLoadBalancerMonitorGroupsArgs;
    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 exampleLoadBalancerMonitorGroups = CloudflareFunctions.getLoadBalancerMonitorGroups(GetLoadBalancerMonitorGroupsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleLoadBalancerMonitorGroups:
        fn::invoke:
          function: cloudflare:getLoadBalancerMonitorGroups
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getloadbalancermonitorgroups" "exampleLoadBalancerMonitorGroups" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getLoadBalancerMonitorGroups

    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 getLoadBalancerMonitorGroups(args: GetLoadBalancerMonitorGroupsArgs, opts?: InvokeOptions): Promise<GetLoadBalancerMonitorGroupsResult>
    function getLoadBalancerMonitorGroupsOutput(args: GetLoadBalancerMonitorGroupsOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerMonitorGroupsResult>
    def get_load_balancer_monitor_groups(account_id: Optional[str] = None,
                                         max_items: Optional[int] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetLoadBalancerMonitorGroupsResult
    def get_load_balancer_monitor_groups_output(account_id: pulumi.Input[Optional[str]] = None,
                                         max_items: pulumi.Input[Optional[int]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerMonitorGroupsResult]
    func LookupLoadBalancerMonitorGroups(ctx *Context, args *LookupLoadBalancerMonitorGroupsArgs, opts ...InvokeOption) (*LookupLoadBalancerMonitorGroupsResult, error)
    func LookupLoadBalancerMonitorGroupsOutput(ctx *Context, args *LookupLoadBalancerMonitorGroupsOutputArgs, opts ...InvokeOption) LookupLoadBalancerMonitorGroupsResultOutput

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

    public static class GetLoadBalancerMonitorGroups 
    {
        public static Task<GetLoadBalancerMonitorGroupsResult> InvokeAsync(GetLoadBalancerMonitorGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetLoadBalancerMonitorGroupsResult> Invoke(GetLoadBalancerMonitorGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadBalancerMonitorGroupsResult> getLoadBalancerMonitorGroups(GetLoadBalancerMonitorGroupsArgs args, InvokeOptions options)
    public static Output<GetLoadBalancerMonitorGroupsResult> getLoadBalancerMonitorGroups(GetLoadBalancerMonitorGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getLoadBalancerMonitorGroups:getLoadBalancerMonitorGroups
      arguments:
        # arguments dictionary
    data "cloudflare_get_load_balancer_monitor_groups" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Identifier.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier.
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier.
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    maxItems Number
    Max items to fetch, default: 1000

    getLoadBalancerMonitorGroups Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetLoadBalancerMonitorGroupsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetLoadBalancerMonitorGroupsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetLoadBalancerMonitorGroupsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetLoadBalancerMonitorGroupsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetLoadBalancerMonitorGroupsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetLoadBalancerMonitorGroupsResult

    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 the Monitor Group to use for checking the health of origins within this pool.
    Members List<GetLoadBalancerMonitorGroupsResultMember>
    List of monitors in this group
    ModifiedOn string
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    Members []GetLoadBalancerMonitorGroupsResultMember
    List of monitors in this group
    ModifiedOn string
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    members list(object)
    List of monitors in this group
    modified_on string
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    members List<GetLoadBalancerMonitorGroupsResultMember>
    List of monitors in this group
    modifiedOn String
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    members GetLoadBalancerMonitorGroupsResultMember[]
    List of monitors in this group
    modifiedOn string
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    members Sequence[GetLoadBalancerMonitorGroupsResultMember]
    List of monitors in this group
    modified_on str
    The timestamp of when the monitor group was last updated
    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 the Monitor Group to use for checking the health of origins within this pool.
    members List<Property Map>
    List of monitors in this group
    modifiedOn String
    The timestamp of when the monitor group was last updated

    GetLoadBalancerMonitorGroupsResultMember

    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