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

cloudflare.getAccountRole

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 exampleAccountRole = cloudflare.getAccountRole({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
        roleId: "3536bcfad5faccb999b47003c79917fb",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_role = cloudflare.get_account_role(account_id="eb78d65290b24279ba6f44721b3ea3c4",
        role_id="3536bcfad5faccb999b47003c79917fb")
    
    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.GetAccountRole(ctx, &cloudflare.GetAccountRoleArgs{
    			AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
    			RoleId:    "3536bcfad5faccb999b47003c79917fb",
    		}, 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 exampleAccountRole = Cloudflare.GetAccountRole.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
            RoleId = "3536bcfad5faccb999b47003c79917fb",
        });
    
    });
    
    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.GetAccountRoleArgs;
    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 exampleAccountRole = CloudflareFunctions.getAccountRole(GetAccountRoleArgs.builder()
                .accountId("eb78d65290b24279ba6f44721b3ea3c4")
                .roleId("3536bcfad5faccb999b47003c79917fb")
                .build());
    
        }
    }
    
    variables:
      exampleAccountRole:
        fn::invoke:
          function: cloudflare:getAccountRole
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
            roleId: 3536bcfad5faccb999b47003c79917fb
    

    Using getAccountRole

    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 getAccountRole(args: GetAccountRoleArgs, opts?: InvokeOptions): Promise<GetAccountRoleResult>
    function getAccountRoleOutput(args: GetAccountRoleOutputArgs, opts?: InvokeOptions): Output<GetAccountRoleResult>
    def get_account_role(account_id: Optional[str] = None,
                         role_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAccountRoleResult
    def get_account_role_output(account_id: Optional[pulumi.Input[str]] = None,
                         role_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAccountRoleResult]
    func GetAccountRole(ctx *Context, args *GetAccountRoleArgs, opts ...InvokeOption) (*GetAccountRoleResult, error)
    func GetAccountRoleOutput(ctx *Context, args *GetAccountRoleOutputArgs, opts ...InvokeOption) GetAccountRoleResultOutput

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

    public static class GetAccountRole 
    {
        public static Task<GetAccountRoleResult> InvokeAsync(GetAccountRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountRoleResult> Invoke(GetAccountRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountRoleResult> getAccountRole(GetAccountRoleArgs args, InvokeOptions options)
    public static Output<GetAccountRoleResult> getAccountRole(GetAccountRoleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountRole:getAccountRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    RoleId string
    Role identifier tag.
    AccountId string
    Account identifier tag.
    RoleId string
    Role identifier tag.
    accountId String
    Account identifier tag.
    roleId String
    Role identifier tag.
    accountId string
    Account identifier tag.
    roleId string
    Role identifier tag.
    account_id str
    Account identifier tag.
    role_id str
    Role identifier tag.
    accountId String
    Account identifier tag.
    roleId String
    Role identifier tag.

    getAccountRole Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Description string
    Description of role's permissions.
    Id string
    Role identifier tag.
    Name string
    Role name.
    Permissions GetAccountRolePermissions
    RoleId string
    Role identifier tag.
    AccountId string
    Account identifier tag.
    Description string
    Description of role's permissions.
    Id string
    Role identifier tag.
    Name string
    Role name.
    Permissions GetAccountRolePermissions
    RoleId string
    Role identifier tag.
    accountId String
    Account identifier tag.
    description String
    Description of role's permissions.
    id String
    Role identifier tag.
    name String
    Role name.
    permissions GetAccountRolePermissions
    roleId String
    Role identifier tag.
    accountId string
    Account identifier tag.
    description string
    Description of role's permissions.
    id string
    Role identifier tag.
    name string
    Role name.
    permissions GetAccountRolePermissions
    roleId string
    Role identifier tag.
    account_id str
    Account identifier tag.
    description str
    Description of role's permissions.
    id str
    Role identifier tag.
    name str
    Role name.
    permissions GetAccountRolePermissions
    role_id str
    Role identifier tag.
    accountId String
    Account identifier tag.
    description String
    Description of role's permissions.
    id String
    Role identifier tag.
    name String
    Role name.
    permissions Property Map
    roleId String
    Role identifier tag.

    Supporting Types

    GetAccountRolePermissions

    GetAccountRolePermissionsAnalytics

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

    GetAccountRolePermissionsBilling

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

    GetAccountRolePermissionsCachePurge

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

    GetAccountRolePermissionsDns

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

    GetAccountRolePermissionsDnsRecords

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

    GetAccountRolePermissionsLb

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

    GetAccountRolePermissionsLogs

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

    GetAccountRolePermissionsOrganization

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

    GetAccountRolePermissionsSsl

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

    GetAccountRolePermissionsWaf

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

    GetAccountRolePermissionsZoneSettings

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

    GetAccountRolePermissionsZones

    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