Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getAccountPermissionGroups
Explore with Pulumi AI
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:
- 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.
getAccountPermissionGroups Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Results
List<Get
Account Permission Groups Result> - 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.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the permission group to be fetched.
- Account
Id string - Account identifier tag.
- Results
[]Get
Account Permission Groups Result - 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.
- Max
Items int - Max items to fetch, default: 1000
- Name string
- Name of the permission group to be fetched.
- account
Id String - Account identifier tag.
- results
List<Get
Account Permission Groups Result> - 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.
- max
Items Integer - Max items to fetch, default: 1000
- name String
- Name of the permission group to be fetched.
- account
Id string - Account identifier tag.
- results
Get
Account Permission Groups Result[] - 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.
- max
Items 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[Get
Account Permission Groups Result] - 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.
- account
Id 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.
- max
Items 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
Get
Account Permission Groups Result Meta - Attributes associated to the permission group.
- Name string
- Name of the group.
- Id string
- Identifier of the group.
- Meta
Get
Account Permission Groups Result Meta - Attributes associated to the permission group.
- Name string
- Name of the group.
- id String
- Identifier of the group.
- meta
Get
Account Permission Groups Result Meta - Attributes associated to the permission group.
- name String
- Name of the group.
- id string
- Identifier of the group.
- meta
Get
Account Permission Groups Result Meta - Attributes associated to the permission group.
- name string
- Name of the group.
- id str
- Identifier of the group.
- meta
Get
Account Permission Groups Result Meta - 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
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.