1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getAccountPermissionGroups
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Account Firewall Access Rules Read
    • Account Firewall Access Rules Write
    • Account Settings Read
    • Account Settings Write
    • Billing Read
    • Billing Write
    • DDoS Botnet Feed Read
    • DDoS Botnet Feed Write
    • DDoS Protection Read
    • DDoS Protection Write
    • DNS Firewall Read
    • DNS Firewall Write
    • DNS View Read
    • DNS View Write
    • Load Balancers Account Read
    • Load Balancers Account Write
    • Load Balancing: Monitors and Pools Read
    • Load Balancing: Monitors and Pools Write
    • SCIM Provisioning
    • Trust and Safety Read
    • Trust and Safety Write
    • Workers KV Storage Read
    • Workers KV Storage Write
    • Workers R2 Storage Read
    • Workers R2 Storage Write
    • Workers Scripts Read
    • Workers Scripts Write
    • Workers Tail Read
    • Zero Trust: PII Read

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleAccountPermissionGroups = cloudflare.getAccountPermissionGroups({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        id: "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
        label: "labelOfThePermissionGroup",
        name: "NameOfThePermissionGroup",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_permission_groups = cloudflare.get_account_permission_groups(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        id="6d7f2f5f5b1d4a0e9081fdc98d432fd1",
        label="labelOfThePermissionGroup",
        name="NameOfThePermissionGroup")
    
    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.GetAccountPermissionGroups(ctx, &cloudflare.LookupAccountPermissionGroupsArgs{
    			AccountId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    			Id:        pulumi.StringRef("6d7f2f5f5b1d4a0e9081fdc98d432fd1"),
    			Label:     pulumi.StringRef("labelOfThePermissionGroup"),
    			Name:      pulumi.StringRef("NameOfThePermissionGroup"),
    		}, 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 exampleAccountPermissionGroups = Cloudflare.Index.GetAccountPermissionGroups.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Id = "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
            Label = "labelOfThePermissionGroup",
            Name = "NameOfThePermissionGroup",
        });
    
    });
    
    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.GetAccountPermissionGroupsArgs;
    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 exampleAccountPermissionGroups = CloudflareFunctions.getAccountPermissionGroups(GetAccountPermissionGroupsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .id("6d7f2f5f5b1d4a0e9081fdc98d432fd1")
                .label("labelOfThePermissionGroup")
                .name("NameOfThePermissionGroup")
                .build());
    
        }
    }
    
    variables:
      exampleAccountPermissionGroups:
        fn::invoke:
          function: cloudflare:getAccountPermissionGroups
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            id: 6d7f2f5f5b1d4a0e9081fdc98d432fd1
            label: labelOfThePermissionGroup
            name: NameOfThePermissionGroup
    

    Using getAccountPermissionGroups

    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 getAccountPermissionGroups(args: GetAccountPermissionGroupsArgs, opts?: InvokeOptions): Promise<GetAccountPermissionGroupsResult>
    function getAccountPermissionGroupsOutput(args: GetAccountPermissionGroupsOutputArgs, opts?: InvokeOptions): Output<GetAccountPermissionGroupsResult>
    def get_account_permission_groups(account_id: Optional[str] = None,
                                      id: Optional[str] = None,
                                      label: Optional[str] = None,
                                      max_items: Optional[int] = None,
                                      name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetAccountPermissionGroupsResult
    def get_account_permission_groups_output(account_id: pulumi.Input[Optional[str]] = None,
                                      id: pulumi.Input[Optional[str]] = None,
                                      label: pulumi.Input[Optional[str]] = None,
                                      max_items: pulumi.Input[Optional[int]] = None,
                                      name: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetAccountPermissionGroupsResult]
    func LookupAccountPermissionGroups(ctx *Context, args *LookupAccountPermissionGroupsArgs, opts ...InvokeOption) (*LookupAccountPermissionGroupsResult, error)
    func LookupAccountPermissionGroupsOutput(ctx *Context, args *LookupAccountPermissionGroupsOutputArgs, opts ...InvokeOption) LookupAccountPermissionGroupsResultOutput

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

    public static class GetAccountPermissionGroups 
    {
        public static Task<GetAccountPermissionGroupsResult> InvokeAsync(GetAccountPermissionGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountPermissionGroupsResult> Invoke(GetAccountPermissionGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountPermissionGroupsResult> getAccountPermissionGroups(GetAccountPermissionGroupsArgs args, InvokeOptions options)
    public static Output<GetAccountPermissionGroupsResult> getAccountPermissionGroups(GetAccountPermissionGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountPermissionGroups:getAccountPermissionGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    Id string
    ID of the permission group to be fetched.
    Label string
    Label of the permission group to be fetched.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Name of the permission group to be fetched.
    AccountId string
    Account identifier tag.
    Id string
    ID of the permission group to be fetched.
    Label string
    Label of the permission group to be fetched.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Name of the permission group to be fetched.
    accountId String
    Account identifier tag.
    id String
    ID of the permission group to be fetched.
    label String
    Label of the permission group to be fetched.
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    Name of the permission group to be fetched.
    accountId string
    Account identifier tag.
    id string
    ID of the permission group to be fetched.
    label string
    Label of the permission group to be fetched.
    maxItems number
    Max items to fetch, default: 1000
    name string
    Name of the permission group to be fetched.
    account_id str
    Account identifier tag.
    id str
    ID of the permission group to be fetched.
    label str
    Label of the permission group to be fetched.
    max_items int
    Max items to fetch, default: 1000
    name str
    Name of the permission group to be fetched.
    accountId String
    Account identifier tag.
    id String
    ID of the permission group to be fetched.
    label String
    Label of the permission group to be fetched.
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Name of the permission group to be fetched.

    getAccountPermissionGroups Result

    The following output properties are available:

    Results List<GetAccountPermissionGroupsResult>
    The items returned by the data source
    AccountId string
    Account identifier tag.
    Id string
    ID of the permission group to be fetched.
    Label string
    Label of the permission group to be fetched.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Name of the permission group to be fetched.
    Results []GetAccountPermissionGroupsResult
    The items returned by the data source
    AccountId string
    Account identifier tag.
    Id string
    ID of the permission group to be fetched.
    Label string
    Label of the permission group to be fetched.
    MaxItems int
    Max items to fetch, default: 1000
    Name string
    Name of the permission group to be fetched.
    results List<GetAccountPermissionGroupsResult>
    The items returned by the data source
    accountId String
    Account identifier tag.
    id String
    ID of the permission group to be fetched.
    label String
    Label of the permission group to be fetched.
    maxItems Integer
    Max items to fetch, default: 1000
    name String
    Name of the permission group to be fetched.
    results GetAccountPermissionGroupsResult[]
    The items returned by the data source
    accountId string
    Account identifier tag.
    id string
    ID of the permission group to be fetched.
    label string
    Label of the permission group to be fetched.
    maxItems number
    Max items to fetch, default: 1000
    name string
    Name of the permission group to be fetched.
    results Sequence[GetAccountPermissionGroupsResult]
    The items returned by the data source
    account_id str
    Account identifier tag.
    id str
    ID of the permission group to be fetched.
    label str
    Label of the permission group to be fetched.
    max_items int
    Max items to fetch, default: 1000
    name str
    Name of the permission group to be fetched.
    results List<Property Map>
    The items returned by the data source
    accountId String
    Account identifier tag.
    id String
    ID of the permission group to be fetched.
    label String
    Label of the permission group to be fetched.
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Name of the permission group to be fetched.

    Supporting Types

    GetAccountPermissionGroupsResult

    Id string
    Identifier of the permission group.
    Meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    Name string
    Name of the permission group.
    Id string
    Identifier of the permission group.
    Meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    Name string
    Name of the permission group.
    id String
    Identifier of the permission group.
    meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    name String
    Name of the permission group.
    id string
    Identifier of the permission group.
    meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    name string
    Name of the permission group.
    id str
    Identifier of the permission group.
    meta GetAccountPermissionGroupsResultMeta
    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.

    GetAccountPermissionGroupsResultMeta

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    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.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.