Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Accepted Permissions
Account Settings ReadAccount Settings WriteSCIM Provisioning
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleUserGroups = cloudflare.getUserGroups({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
id: "023e105f4ecef8ad9ca31a8372d0c353",
fuzzyName: "Foo",
name: "NameOfTheUserGroup",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_user_groups = cloudflare.get_user_groups(account_id="023e105f4ecef8ad9ca31a8372d0c353",
id="023e105f4ecef8ad9ca31a8372d0c353",
fuzzy_name="Foo",
name="NameOfTheUserGroup")
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.GetUserGroups(ctx, &cloudflare.LookupUserGroupsArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
Id: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
FuzzyName: pulumi.StringRef("Foo"),
Name: pulumi.StringRef("NameOfTheUserGroup"),
}, 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 exampleUserGroups = Cloudflare.Index.GetUserGroups.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Id = "023e105f4ecef8ad9ca31a8372d0c353",
FuzzyName = "Foo",
Name = "NameOfTheUserGroup",
});
});
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.GetUserGroupsArgs;
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 exampleUserGroups = CloudflareFunctions.getUserGroups(GetUserGroupsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.id("023e105f4ecef8ad9ca31a8372d0c353")
.fuzzyName("Foo")
.name("NameOfTheUserGroup")
.build());
}
}
variables:
exampleUserGroups:
fn::invoke:
function: cloudflare:getUserGroups
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
id: 023e105f4ecef8ad9ca31a8372d0c353
fuzzyName: Foo
name: NameOfTheUserGroup
Using getUserGroups
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 getUserGroups(args: GetUserGroupsArgs, opts?: InvokeOptions): Promise<GetUserGroupsResult>
function getUserGroupsOutput(args: GetUserGroupsOutputArgs, opts?: InvokeOptions): Output<GetUserGroupsResult>def get_user_groups(account_id: Optional[str] = None,
direction: Optional[str] = None,
fuzzy_name: Optional[str] = None,
id: Optional[str] = None,
max_items: Optional[int] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserGroupsResult
def get_user_groups_output(account_id: Optional[pulumi.Input[str]] = None,
direction: Optional[pulumi.Input[str]] = None,
fuzzy_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupsResult]func LookupUserGroups(ctx *Context, args *LookupUserGroupsArgs, opts ...InvokeOption) (*LookupUserGroupsResult, error)
func LookupUserGroupsOutput(ctx *Context, args *LookupUserGroupsOutputArgs, opts ...InvokeOption) LookupUserGroupsResultOutput> Note: This function is named LookupUserGroups in the Go SDK.
public static class GetUserGroups
{
public static Task<GetUserGroupsResult> InvokeAsync(GetUserGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetUserGroupsResult> Invoke(GetUserGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserGroupsResult> getUserGroups(GetUserGroupsArgs args, InvokeOptions options)
public static Output<GetUserGroupsResult> getUserGroups(GetUserGroupsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getUserGroups:getUserGroups
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Account identifier tag.
- Direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- Fuzzy
Name string - A string used for searching for user groups containing that substring.
- Id string
- ID of the user group to be fetched.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the user group to be fetched.
- Account
Id string - Account identifier tag.
- Direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- Fuzzy
Name string - A string used for searching for user groups containing that substring.
- Id string
- ID of the user group to be fetched.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the user group to be fetched.
- account
Id String - Account identifier tag.
- direction String
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- fuzzy
Name String - A string used for searching for user groups containing that substring.
- id String
- ID of the user group to be fetched.
- max
Items Integer - Max items to fetch, default: 1000
- name String
- Name of the user group to be fetched.
- account
Id string - Account identifier tag.
- direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- fuzzy
Name string - A string used for searching for user groups containing that substring.
- id string
- ID of the user group to be fetched.
- max
Items number - Max items to fetch, default: 1000
- name string
- Name of the user group to be fetched.
- account_
id str - Account identifier tag.
- direction str
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- fuzzy_
name str - A string used for searching for user groups containing that substring.
- id str
- ID of the user group to be fetched.
- max_
items int - Max items to fetch, default: 1000
- name str
- Name of the user group to be fetched.
- account
Id String - Account identifier tag.
- direction String
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- fuzzy
Name String - A string used for searching for user groups containing that substring.
- id String
- ID of the user group to be fetched.
- max
Items Number - Max items to fetch, default: 1000
- name String
- Name of the user group to be fetched.
getUserGroups Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- Results
List<Get
User Groups Result> - The items returned by the data source
- Fuzzy
Name string - A string used for searching for user groups containing that substring.
- Id string
- ID of the user group to be fetched.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the user group to be fetched.
- Account
Id string - Account identifier tag.
- Direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- Results
[]Get
User Groups Result - The items returned by the data source
- Fuzzy
Name string - A string used for searching for user groups containing that substring.
- Id string
- ID of the user group to be fetched.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the user group to be fetched.
- account
Id String - Account identifier tag.
- direction String
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- results
List<Get
User Groups Result> - The items returned by the data source
- fuzzy
Name String - A string used for searching for user groups containing that substring.
- id String
- ID of the user group to be fetched.
- max
Items Integer - Max items to fetch, default: 1000
- name String
- Name of the user group to be fetched.
- account
Id string - Account identifier tag.
- direction string
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- results
Get
User Groups Result[] - The items returned by the data source
- fuzzy
Name string - A string used for searching for user groups containing that substring.
- id string
- ID of the user group to be fetched.
- max
Items number - Max items to fetch, default: 1000
- name string
- Name of the user group to be fetched.
- account_
id str - Account identifier tag.
- direction str
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- results
Sequence[Get
User Groups Result] - The items returned by the data source
- fuzzy_
name str - A string used for searching for user groups containing that substring.
- id str
- ID of the user group to be fetched.
- max_
items int - Max items to fetch, default: 1000
- name str
- Name of the user group to be fetched.
- account
Id String - Account identifier tag.
- direction String
- The sort order of returned user groups by name (ascending or descending). Available values: "asc", "desc".
- results List<Property Map>
- The items returned by the data source
- fuzzy
Name String - A string used for searching for user groups containing that substring.
- id String
- ID of the user group to be fetched.
- max
Items Number - Max items to fetch, default: 1000
- name String
- Name of the user group to be fetched.
Supporting Types
GetUserGroupsResult
- Created
On string - Timestamp for the creation of the user group
- Id string
- User Group identifier tag.
- Modified
On string - Last time the user group was modified.
- Name string
- Name of the user group.
- Policies
List<Get
User Groups Result Policy> - Policies attached to the User group
- Created
On string - Timestamp for the creation of the user group
- Id string
- User Group identifier tag.
- Modified
On string - Last time the user group was modified.
- Name string
- Name of the user group.
- Policies
[]Get
User Groups Result Policy - Policies attached to the User group
- created
On String - Timestamp for the creation of the user group
- id String
- User Group identifier tag.
- modified
On String - Last time the user group was modified.
- name String
- Name of the user group.
- policies
List<Get
User Groups Result Policy> - Policies attached to the User group
- created
On string - Timestamp for the creation of the user group
- id string
- User Group identifier tag.
- modified
On string - Last time the user group was modified.
- name string
- Name of the user group.
- policies
Get
User Groups Result Policy[] - Policies attached to the User group
- created_
on str - Timestamp for the creation of the user group
- id str
- User Group identifier tag.
- modified_
on str - Last time the user group was modified.
- name str
- Name of the user group.
- policies
Sequence[Get
User Groups Result Policy] - Policies attached to the User group
- created
On String - Timestamp for the creation of the user group
- id String
- User Group identifier tag.
- modified
On String - Last time the user group was modified.
- name String
- Name of the user group.
- policies List<Property Map>
- Policies attached to the User group
GetUserGroupsResultPolicy
- Access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Id string
- Policy identifier.
- Permission
Groups List<GetUser Groups Result Policy Permission Group> - A set of permission groups that are specified to the policy.
- Resource
Groups List<GetUser Groups Result Policy Resource Group> - A list of resource groups that the policy applies to.
- Access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Id string
- Policy identifier.
- Permission
Groups []GetUser Groups Result Policy Permission Group - A set of permission groups that are specified to the policy.
- Resource
Groups []GetUser Groups Result Policy Resource Group - A list of resource groups that the policy applies to.
- access String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id String
- Policy identifier.
- permission
Groups List<GetUser Groups Result Policy Permission Group> - A set of permission groups that are specified to the policy.
- resource
Groups List<GetUser Groups Result Policy Resource Group> - A list of resource groups that the policy applies to.
- access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id string
- Policy identifier.
- permission
Groups GetUser Groups Result Policy Permission Group[] - A set of permission groups that are specified to the policy.
- resource
Groups GetUser Groups Result Policy Resource Group[] - A list of resource groups that the policy applies to.
- access str
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id str
- Policy identifier.
- permission_
groups Sequence[GetUser Groups Result Policy Permission Group] - A set of permission groups that are specified to the policy.
- resource_
groups Sequence[GetUser Groups Result Policy Resource Group] - A list of resource groups that the policy applies to.
- access String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id String
- Policy identifier.
- permission
Groups List<Property Map> - A set of permission groups that are specified to the policy.
- resource
Groups List<Property Map> - A list of resource groups that the policy applies to.
GetUserGroupsResultPolicyPermissionGroup
- Id string
- Identifier of the permission group.
- Meta
Get
User Groups Result Policy Permission Group Meta - Attributes associated to the permission group.
- Name string
- Name of the permission group.
- Id string
- Identifier of the permission group.
- Meta
Get
User Groups Result Policy Permission Group Meta - Attributes associated to the permission group.
- Name string
- Name of the permission group.
- id String
- Identifier of the permission group.
- meta
Get
User Groups Result Policy Permission Group Meta - Attributes associated to the permission group.
- name String
- Name of the permission group.
- id string
- Identifier of the permission group.
- meta
Get
User Groups Result Policy Permission Group Meta - Attributes associated to the permission group.
- name string
- Name of the permission group.
- id str
- Identifier of the permission group.
- meta
Get
User Groups Result Policy Permission Group Meta - Attributes associated to the permission group.
- name str
- Name of the permission group.
- id String
- Identifier of the permission group.
- meta Property Map
- Attributes associated to the permission group.
- name String
- Name of the permission group.
GetUserGroupsResultPolicyPermissionGroupMeta
GetUserGroupsResultPolicyResourceGroup
- Id string
- Identifier of the resource group.
- Meta
Get
User Groups Result Policy Resource Group Meta - Attributes associated to the resource group.
- Name string
- Name of the resource group.
- Scopes
List<Get
User Groups Result Policy Resource Group Scope> - The scope associated to the resource group
- Id string
- Identifier of the resource group.
- Meta
Get
User Groups Result Policy Resource Group Meta - Attributes associated to the resource group.
- Name string
- Name of the resource group.
- Scopes
[]Get
User Groups Result Policy Resource Group Scope - The scope associated to the resource group
- id String
- Identifier of the resource group.
- meta
Get
User Groups Result Policy Resource Group Meta - Attributes associated to the resource group.
- name String
- Name of the resource group.
- scopes
List<Get
User Groups Result Policy Resource Group Scope> - The scope associated to the resource group
- id string
- Identifier of the resource group.
- meta
Get
User Groups Result Policy Resource Group Meta - Attributes associated to the resource group.
- name string
- Name of the resource group.
- scopes
Get
User Groups Result Policy Resource Group Scope[] - The scope associated to the resource group
- id str
- Identifier of the resource group.
- meta
Get
User Groups Result Policy Resource Group Meta - Attributes associated to the resource group.
- name str
- Name of the resource group.
- scopes
Sequence[Get
User Groups Result Policy Resource Group Scope] - The scope associated to the resource group
- id String
- Identifier of the resource group.
- meta Property Map
- Attributes associated to the resource group.
- name String
- Name of the resource group.
- scopes List<Property Map>
- The scope associated to the resource group
GetUserGroupsResultPolicyResourceGroupMeta
GetUserGroupsResultPolicyResourceGroupScope
- Key string
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- Objects
List<Get
User Groups Result Policy Resource Group Scope Object> - A list of scope objects for additional context.
- Key string
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- Objects
[]Get
User Groups Result Policy Resource Group Scope Object - A list of scope objects for additional context.
- key String
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- objects
List<Get
User Groups Result Policy Resource Group Scope Object> - A list of scope objects for additional context.
- key string
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- objects
Get
User Groups Result Policy Resource Group Scope Object[] - A list of scope objects for additional context.
- key str
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- objects
Sequence[Get
User Groups Result Policy Resource Group Scope Object] - A list of scope objects for additional context.
- key String
- This is a combination of pre-defined resource name and identifier (like Account ID etc.)
- objects List<Property Map>
- A list of scope objects for additional context.
GetUserGroupsResultPolicyResourceGroupScopeObject
- Key string
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
- Key string
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
- key String
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
- key string
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
- key str
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
- key String
- This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
