Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getAccountRole
Explore with Pulumi AI
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:
- account_
id str - Account identifier tag.
- role_
id str - Role identifier tag.
getAccountRole Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Description string
- Description of role's permissions.
- Id string
- Role identifier tag.
- Name string
- Role name.
- Permissions
Get
Account Role Permissions - Role
Id string - Role identifier tag.
- Account
Id string - Account identifier tag.
- Description string
- Description of role's permissions.
- Id string
- Role identifier tag.
- Name string
- Role name.
- Permissions
Get
Account Role Permissions - Role
Id string - Role identifier tag.
- account
Id String - Account identifier tag.
- description String
- Description of role's permissions.
- id String
- Role identifier tag.
- name String
- Role name.
- permissions
Get
Account Role Permissions - role
Id String - Role identifier tag.
- account
Id string - Account identifier tag.
- description string
- Description of role's permissions.
- id string
- Role identifier tag.
- name string
- Role name.
- permissions
Get
Account Role Permissions - role
Id 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
Get
Account Role Permissions - role_
id str - Role identifier tag.
- account
Id String - Account identifier tag.
- description String
- Description of role's permissions.
- id String
- Role identifier tag.
- name String
- Role name.
- permissions Property Map
- role
Id String - Role identifier tag.
Supporting Types
GetAccountRolePermissions
- Analytics
Get
Account Role Permissions Analytics - Billing
Get
Account Role Permissions Billing - Cache
Purge GetAccount Role Permissions Cache Purge - Dns
Get
Account Role Permissions Dns - Dns
Records GetAccount Role Permissions Dns Records - Lb
Get
Account Role Permissions Lb - Logs
Get
Account Role Permissions Logs - Organization
Get
Account Role Permissions Organization - Ssl
Get
Account Role Permissions Ssl - Waf
Get
Account Role Permissions Waf - Zone
Settings GetAccount Role Permissions Zone Settings - Zones
Get
Account Role Permissions Zones
- Analytics
Get
Account Role Permissions Analytics - Billing
Get
Account Role Permissions Billing - Cache
Purge GetAccount Role Permissions Cache Purge - Dns
Get
Account Role Permissions Dns - Dns
Records GetAccount Role Permissions Dns Records - Lb
Get
Account Role Permissions Lb - Logs
Get
Account Role Permissions Logs - Organization
Get
Account Role Permissions Organization - Ssl
Get
Account Role Permissions Ssl - Waf
Get
Account Role Permissions Waf - Zone
Settings GetAccount Role Permissions Zone Settings - Zones
Get
Account Role Permissions Zones
- analytics
Get
Account Role Permissions Analytics - billing
Get
Account Role Permissions Billing - cache
Purge GetAccount Role Permissions Cache Purge - dns
Get
Account Role Permissions Dns - dns
Records GetAccount Role Permissions Dns Records - lb
Get
Account Role Permissions Lb - logs
Get
Account Role Permissions Logs - organization
Get
Account Role Permissions Organization - ssl
Get
Account Role Permissions Ssl - waf
Get
Account Role Permissions Waf - zone
Settings GetAccount Role Permissions Zone Settings - zones
Get
Account Role Permissions Zones
- analytics
Get
Account Role Permissions Analytics - billing
Get
Account Role Permissions Billing - cache
Purge GetAccount Role Permissions Cache Purge - dns
Get
Account Role Permissions Dns - dns
Records GetAccount Role Permissions Dns Records - lb
Get
Account Role Permissions Lb - logs
Get
Account Role Permissions Logs - organization
Get
Account Role Permissions Organization - ssl
Get
Account Role Permissions Ssl - waf
Get
Account Role Permissions Waf - zone
Settings GetAccount Role Permissions Zone Settings - zones
Get
Account Role Permissions Zones
- analytics
Get
Account Role Permissions Analytics - billing
Get
Account Role Permissions Billing - cache_
purge GetAccount Role Permissions Cache Purge - dns
Get
Account Role Permissions Dns - dns_
records GetAccount Role Permissions Dns Records - lb
Get
Account Role Permissions Lb - logs
Get
Account Role Permissions Logs - organization
Get
Account Role Permissions Organization - ssl
Get
Account Role Permissions Ssl - waf
Get
Account Role Permissions Waf - zone_
settings GetAccount Role Permissions Zone Settings - zones
Get
Account Role Permissions Zones
GetAccountRolePermissionsAnalytics
GetAccountRolePermissionsBilling
GetAccountRolePermissionsCachePurge
GetAccountRolePermissionsDns
GetAccountRolePermissionsDnsRecords
GetAccountRolePermissionsLb
GetAccountRolePermissionsLogs
GetAccountRolePermissionsOrganization
GetAccountRolePermissionsSsl
GetAccountRolePermissionsWaf
GetAccountRolePermissionsZoneSettings
GetAccountRolePermissionsZones
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.