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

cloudflare.getAccountRoles

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 exampleAccountRoles = cloudflare.getAccountRoles({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_roles = cloudflare.get_account_roles(account_id="eb78d65290b24279ba6f44721b3ea3c4")
    
    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.LookupAccountRoles(ctx, &cloudflare.LookupAccountRolesArgs{
    			AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
    		}, 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 exampleAccountRoles = Cloudflare.GetAccountRoles.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
        });
    
    });
    
    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.GetAccountRolesArgs;
    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 exampleAccountRoles = CloudflareFunctions.getAccountRoles(GetAccountRolesArgs.builder()
                .accountId("eb78d65290b24279ba6f44721b3ea3c4")
                .build());
    
        }
    }
    
    variables:
      exampleAccountRoles:
        fn::invoke:
          function: cloudflare:getAccountRoles
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
    

    Using getAccountRoles

    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 getAccountRoles(args: GetAccountRolesArgs, opts?: InvokeOptions): Promise<GetAccountRolesResult>
    function getAccountRolesOutput(args: GetAccountRolesOutputArgs, opts?: InvokeOptions): Output<GetAccountRolesResult>
    def get_account_roles(account_id: Optional[str] = None,
                          max_items: Optional[int] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAccountRolesResult
    def get_account_roles_output(account_id: Optional[pulumi.Input[str]] = None,
                          max_items: Optional[pulumi.Input[int]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAccountRolesResult]
    func LookupAccountRoles(ctx *Context, args *LookupAccountRolesArgs, opts ...InvokeOption) (*LookupAccountRolesResult, error)
    func LookupAccountRolesOutput(ctx *Context, args *LookupAccountRolesOutputArgs, opts ...InvokeOption) LookupAccountRolesResultOutput

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

    public static class GetAccountRoles 
    {
        public static Task<GetAccountRolesResult> InvokeAsync(GetAccountRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountRolesResult> Invoke(GetAccountRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountRolesResult> getAccountRoles(GetAccountRolesArgs args, InvokeOptions options)
    public static Output<GetAccountRolesResult> getAccountRoles(GetAccountRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountRoles:getAccountRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Account identifier tag.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Account identifier tag.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Account identifier tag.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    maxItems Number
    Max items to fetch, default: 1000

    getAccountRoles Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetAccountRolesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Account identifier tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetAccountRolesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetAccountRolesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Account identifier tag.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetAccountRolesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Account identifier tag.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetAccountRolesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetAccountRolesResult

    Description string
    Description of role's permissions.
    Id string
    Role identifier tag.
    Name string
    Role name.
    Permissions GetAccountRolesResultPermissions
    Description string
    Description of role's permissions.
    Id string
    Role identifier tag.
    Name string
    Role name.
    Permissions GetAccountRolesResultPermissions
    description String
    Description of role's permissions.
    id String
    Role identifier tag.
    name String
    Role name.
    permissions GetAccountRolesResultPermissions
    description string
    Description of role's permissions.
    id string
    Role identifier tag.
    name string
    Role name.
    permissions GetAccountRolesResultPermissions
    description str
    Description of role's permissions.
    id str
    Role identifier tag.
    name str
    Role name.
    permissions GetAccountRolesResultPermissions
    description String
    Description of role's permissions.
    id String
    Role identifier tag.
    name String
    Role name.
    permissions Property Map

    GetAccountRolesResultPermissions

    GetAccountRolesResultPermissionsAnalytics

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsBilling

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsCachePurge

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsDns

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsDnsRecords

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsLb

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsLogs

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsOrganization

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsSsl

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsWaf

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsZoneSettings

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    GetAccountRolesResultPermissionsZones

    Read bool
    Write bool
    Read bool
    Write bool
    read Boolean
    write Boolean
    read boolean
    write boolean
    read bool
    write bool
    read Boolean
    write Boolean

    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