1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getAccountPermissionGroups
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getAccountPermissionGroups

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleAccountPermissionGroups = cloudflare.getAccountPermissionGroups({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
        id: "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
        label: "labelOfThePermissionGroup",
        name: "NameOfThePermissionGroup",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_permission_groups = cloudflare.get_account_permission_groups(account_id="eb78d65290b24279ba6f44721b3ea3c4",
        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.LookupAccountPermissionGroups(ctx, &cloudflare.LookupAccountPermissionGroupsArgs{
    			AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
    			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.GetAccountPermissionGroups.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
            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("eb78d65290b24279ba6f44721b3ea3c4")
                .id("6d7f2f5f5b1d4a0e9081fdc98d432fd1")
                .label("labelOfThePermissionGroup")
                .name("NameOfThePermissionGroup")
                .build());
    
        }
    }
    
    variables:
      exampleAccountPermissionGroups:
        fn::invoke:
          function: cloudflare:getAccountPermissionGroups
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
            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: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      label: Optional[pulumi.Input[str]] = None,
                                      max_items: Optional[pulumi.Input[int]] = None,
                                      name: Optional[pulumi.Input[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:

    AccountId string
    Account identifier tag.
    Results List<GetAccountPermissionGroupsResult>
    The items returned by the data source
    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.
    Results []GetAccountPermissionGroupsResult
    The items returned by the data source
    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.
    results List<GetAccountPermissionGroupsResult>
    The items returned by the data source
    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.
    results GetAccountPermissionGroupsResult[]
    The items returned by the data source
    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.
    results Sequence[GetAccountPermissionGroupsResult]
    The items returned by the data source
    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.
    results List<Property Map>
    The items returned by the data source
    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 group.
    Meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    Name string
    Name of the group.
    Id string
    Identifier of the group.
    Meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    Name string
    Name of the group.
    id String
    Identifier of the group.
    meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    name String
    Name of the group.
    id string
    Identifier of the group.
    meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    name string
    Name of the group.
    id str
    Identifier of the group.
    meta GetAccountPermissionGroupsResultMeta
    Attributes associated to the permission group.
    name str
    Name of the group.
    id String
    Identifier of the group.
    meta Property Map
    Attributes associated to the permission group.
    name String
    Name of the 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
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi