1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getAccountPermissionGroup
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 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 exampleAccountPermissionGroup = cloudflare.getAccountPermissionGroup({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        permissionGroupId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_permission_group = cloudflare.get_account_permission_group(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        permission_group_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.GetAccountPermissionGroup(ctx, &cloudflare.GetAccountPermissionGroupArgs{
    			AccountId:         "023e105f4ecef8ad9ca31a8372d0c353",
    			PermissionGroupId: "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 exampleAccountPermissionGroup = Cloudflare.GetAccountPermissionGroup.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            PermissionGroupId = "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.GetAccountPermissionGroupArgs;
    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 exampleAccountPermissionGroup = CloudflareFunctions.getAccountPermissionGroup(GetAccountPermissionGroupArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .permissionGroupId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleAccountPermissionGroup:
        fn::invoke:
          function: cloudflare:getAccountPermissionGroup
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            permissionGroupId: 023e105f4ecef8ad9ca31a8372d0c353
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_account_permission_group" "exampleAccountPermissionGroup" {
      account_id          = "023e105f4ecef8ad9ca31a8372d0c353"
      permission_group_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getAccountPermissionGroup

    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 getAccountPermissionGroup(args: GetAccountPermissionGroupArgs, opts?: InvokeOptions): Promise<GetAccountPermissionGroupResult>
    function getAccountPermissionGroupOutput(args: GetAccountPermissionGroupOutputArgs, opts?: InvokeOutputOptions): Output<GetAccountPermissionGroupResult>
    def get_account_permission_group(account_id: Optional[str] = None,
                                     permission_group_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAccountPermissionGroupResult
    def get_account_permission_group_output(account_id: pulumi.Input[Optional[str]] = None,
                                     permission_group_id: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetAccountPermissionGroupResult]
    func GetAccountPermissionGroup(ctx *Context, args *GetAccountPermissionGroupArgs, opts ...InvokeOption) (*GetAccountPermissionGroupResult, error)
    func GetAccountPermissionGroupOutput(ctx *Context, args *GetAccountPermissionGroupOutputArgs, opts ...InvokeOption) GetAccountPermissionGroupResultOutput

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

    public static class GetAccountPermissionGroup 
    {
        public static Task<GetAccountPermissionGroupResult> InvokeAsync(GetAccountPermissionGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountPermissionGroupResult> Invoke(GetAccountPermissionGroupInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountPermissionGroupResult> Invoke(GetAccountPermissionGroupInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAccountPermissionGroupResult> getAccountPermissionGroup(GetAccountPermissionGroupArgs args, InvokeOptions options)
    public static Output<GetAccountPermissionGroupResult> getAccountPermissionGroup(GetAccountPermissionGroupArgs args, InvokeOptions options)
    public static Output<GetAccountPermissionGroupResult> getAccountPermissionGroup(GetAccountPermissionGroupArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountPermissionGroup:getAccountPermissionGroup
      arguments:
        # arguments dictionary
    data "cloudflare_get_account_permission_group" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    PermissionGroupId string
    Permission Group identifier tag.
    AccountId string
    Account identifier tag.
    PermissionGroupId string
    Permission Group identifier tag.
    account_id string
    Account identifier tag.
    permission_group_id string
    Permission Group identifier tag.
    accountId String
    Account identifier tag.
    permissionGroupId String
    Permission Group identifier tag.
    accountId string
    Account identifier tag.
    permissionGroupId string
    Permission Group identifier tag.
    account_id str
    Account identifier tag.
    permission_group_id str
    Permission Group identifier tag.
    accountId String
    Account identifier tag.
    permissionGroupId String
    Permission Group identifier tag.

    getAccountPermissionGroup Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Id string
    Identifier of the permission group.
    Meta GetAccountPermissionGroupMeta
    Attributes associated to the permission group.
    Name string
    Name of the permission group.
    PermissionGroupId string
    Permission Group identifier tag.
    AccountId string
    Account identifier tag.
    Id string
    Identifier of the permission group.
    Meta GetAccountPermissionGroupMeta
    Attributes associated to the permission group.
    Name string
    Name of the permission group.
    PermissionGroupId string
    Permission Group identifier tag.
    account_id string
    Account identifier tag.
    id string
    Identifier of the permission group.
    meta object
    Attributes associated to the permission group.
    name string
    Name of the permission group.
    permission_group_id string
    Permission Group identifier tag.
    accountId String
    Account identifier tag.
    id String
    Identifier of the permission group.
    meta GetAccountPermissionGroupMeta
    Attributes associated to the permission group.
    name String
    Name of the permission group.
    permissionGroupId String
    Permission Group identifier tag.
    accountId string
    Account identifier tag.
    id string
    Identifier of the permission group.
    meta GetAccountPermissionGroupMeta
    Attributes associated to the permission group.
    name string
    Name of the permission group.
    permissionGroupId string
    Permission Group identifier tag.
    account_id str
    Account identifier tag.
    id str
    Identifier of the permission group.
    meta GetAccountPermissionGroupMeta
    Attributes associated to the permission group.
    name str
    Name of the permission group.
    permission_group_id str
    Permission Group identifier tag.
    accountId String
    Account identifier tag.
    id String
    Identifier of the permission group.
    meta Property Map
    Attributes associated to the permission group.
    name String
    Name of the permission group.
    permissionGroupId String
    Permission Group identifier tag.

    Supporting Types

    GetAccountPermissionGroupMeta

    Category string
    A category used to group permission groups.
    Deprecated string
    Indicates whether the permission group is deprecated.
    Description string
    Additional information about the permission group.
    Editable string
    Indicates whether the permission group can be edited.
    EolAt string
    The planned end-of-life date and time, when provided.
    Label string
    A label identifying the permission group.
    Scopes string
    The scope associated with the permission group.
    Visibility string
    Indicates the permission group's availability or visibility.
    Category string
    A category used to group permission groups.
    Deprecated string
    Indicates whether the permission group is deprecated.
    Description string
    Additional information about the permission group.
    Editable string
    Indicates whether the permission group can be edited.
    EolAt string
    The planned end-of-life date and time, when provided.
    Label string
    A label identifying the permission group.
    Scopes string
    The scope associated with the permission group.
    Visibility string
    Indicates the permission group's availability or visibility.
    category string
    A category used to group permission groups.
    deprecated string
    Indicates whether the permission group is deprecated.
    description string
    Additional information about the permission group.
    editable string
    Indicates whether the permission group can be edited.
    eol_at string
    The planned end-of-life date and time, when provided.
    label string
    A label identifying the permission group.
    scopes string
    The scope associated with the permission group.
    visibility string
    Indicates the permission group's availability or visibility.
    category String
    A category used to group permission groups.
    deprecated String
    Indicates whether the permission group is deprecated.
    description String
    Additional information about the permission group.
    editable String
    Indicates whether the permission group can be edited.
    eolAt String
    The planned end-of-life date and time, when provided.
    label String
    A label identifying the permission group.
    scopes String
    The scope associated with the permission group.
    visibility String
    Indicates the permission group's availability or visibility.
    category string
    A category used to group permission groups.
    deprecated string
    Indicates whether the permission group is deprecated.
    description string
    Additional information about the permission group.
    editable string
    Indicates whether the permission group can be edited.
    eolAt string
    The planned end-of-life date and time, when provided.
    label string
    A label identifying the permission group.
    scopes string
    The scope associated with the permission group.
    visibility string
    Indicates the permission group's availability or visibility.
    category str
    A category used to group permission groups.
    deprecated str
    Indicates whether the permission group is deprecated.
    description str
    Additional information about the permission group.
    editable str
    Indicates whether the permission group can be edited.
    eol_at str
    The planned end-of-life date and time, when provided.
    label str
    A label identifying the permission group.
    scopes str
    The scope associated with the permission group.
    visibility str
    Indicates the permission group's availability or visibility.
    category String
    A category used to group permission groups.
    deprecated String
    Indicates whether the permission group is deprecated.
    description String
    Additional information about the permission group.
    editable String
    Indicates whether the permission group can be edited.
    eolAt String
    The planned end-of-life date and time, when provided.
    label String
    A label identifying the permission group.
    scopes String
    The scope associated with the permission group.
    visibility String
    Indicates the permission group's availability or visibility.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.23.1
    published on Wednesday, Oct 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial