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

cloudflare.getAccountMembers

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 exampleAccountMembers = cloudflare.getAccountMembers({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
        direction: "desc",
        order: "status",
        status: "accepted",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_members = cloudflare.get_account_members(account_id="eb78d65290b24279ba6f44721b3ea3c4",
        direction="desc",
        order="status",
        status="accepted")
    
    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.LookupAccountMembers(ctx, &cloudflare.LookupAccountMembersArgs{
    			AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
    			Direction: pulumi.StringRef("desc"),
    			Order:     pulumi.StringRef("status"),
    			Status:    pulumi.StringRef("accepted"),
    		}, 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 exampleAccountMembers = Cloudflare.GetAccountMembers.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
            Direction = "desc",
            Order = "status",
            Status = "accepted",
        });
    
    });
    
    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.GetAccountMembersArgs;
    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 exampleAccountMembers = CloudflareFunctions.getAccountMembers(GetAccountMembersArgs.builder()
                .accountId("eb78d65290b24279ba6f44721b3ea3c4")
                .direction("desc")
                .order("status")
                .status("accepted")
                .build());
    
        }
    }
    
    variables:
      exampleAccountMembers:
        fn::invoke:
          function: cloudflare:getAccountMembers
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
            direction: desc
            order: status
            status: accepted
    

    Using getAccountMembers

    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 getAccountMembers(args: GetAccountMembersArgs, opts?: InvokeOptions): Promise<GetAccountMembersResult>
    function getAccountMembersOutput(args: GetAccountMembersOutputArgs, opts?: InvokeOptions): Output<GetAccountMembersResult>
    def get_account_members(account_id: Optional[str] = None,
                            direction: Optional[str] = None,
                            max_items: Optional[int] = None,
                            order: Optional[str] = None,
                            status: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAccountMembersResult
    def get_account_members_output(account_id: Optional[pulumi.Input[str]] = None,
                            direction: Optional[pulumi.Input[str]] = None,
                            max_items: Optional[pulumi.Input[int]] = None,
                            order: Optional[pulumi.Input[str]] = None,
                            status: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetAccountMembersResult]
    func LookupAccountMembers(ctx *Context, args *LookupAccountMembersArgs, opts ...InvokeOption) (*LookupAccountMembersResult, error)
    func LookupAccountMembersOutput(ctx *Context, args *LookupAccountMembersOutputArgs, opts ...InvokeOption) LookupAccountMembersResultOutput

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

    public static class GetAccountMembers 
    {
        public static Task<GetAccountMembersResult> InvokeAsync(GetAccountMembersArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountMembersResult> Invoke(GetAccountMembersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountMembersResult> getAccountMembers(GetAccountMembersArgs args, InvokeOptions options)
    public static Output<GetAccountMembersResult> getAccountMembers(GetAccountMembersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountMembers:getAccountMembers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    Direction string
    Direction to order results. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    Status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    AccountId string
    Account identifier tag.
    Direction string
    Direction to order results. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    Status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    accountId String
    Account identifier tag.
    direction String
    Direction to order results. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status String
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    accountId string
    Account identifier tag.
    direction string
    Direction to order results. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    account_id str
    Account identifier tag.
    direction str
    Direction to order results. Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    order str
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status str
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    accountId String
    Account identifier tag.
    direction String
    Direction to order results. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status String
    A member's status in the account. Available values: "accepted", "pending", "rejected".

    getAccountMembers 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<GetAccountMembersResult>
    The items returned by the data source
    Direction string
    Direction to order results. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    Status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    AccountId string
    Account identifier tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetAccountMembersResult
    The items returned by the data source
    Direction string
    Direction to order results. Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    Status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    accountId String
    Account identifier tag.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetAccountMembersResult>
    The items returned by the data source
    direction String
    Direction to order results. Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status String
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    accountId string
    Account identifier tag.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetAccountMembersResult[]
    The items returned by the data source
    direction string
    Direction to order results. Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status string
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    account_id str
    Account identifier tag.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetAccountMembersResult]
    The items returned by the data source
    direction str
    Direction to order results. Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    order str
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status str
    A member's status in the account. Available values: "accepted", "pending", "rejected".
    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
    direction String
    Direction to order results. Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    Field to order results by. Available values: "user.firstname", "user.lastname", "user.email", "status".
    status String
    A member's status in the account. Available values: "accepted", "pending", "rejected".

    Supporting Types

    GetAccountMembersResult

    Id string
    Membership identifier tag.
    Policies List<GetAccountMembersResultPolicy>
    Access policy for the membership
    Roles List<GetAccountMembersResultRole>
    Roles assigned to this Member.
    Status string
    A member's status in the account. Available values: "accepted", "pending".
    User GetAccountMembersResultUser
    Details of the user associated to the membership.
    Id string
    Membership identifier tag.
    Policies []GetAccountMembersResultPolicy
    Access policy for the membership
    Roles []GetAccountMembersResultRole
    Roles assigned to this Member.
    Status string
    A member's status in the account. Available values: "accepted", "pending".
    User GetAccountMembersResultUser
    Details of the user associated to the membership.
    id String
    Membership identifier tag.
    policies List<GetAccountMembersResultPolicy>
    Access policy for the membership
    roles List<GetAccountMembersResultRole>
    Roles assigned to this Member.
    status String
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMembersResultUser
    Details of the user associated to the membership.
    id string
    Membership identifier tag.
    policies GetAccountMembersResultPolicy[]
    Access policy for the membership
    roles GetAccountMembersResultRole[]
    Roles assigned to this Member.
    status string
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMembersResultUser
    Details of the user associated to the membership.
    id str
    Membership identifier tag.
    policies Sequence[GetAccountMembersResultPolicy]
    Access policy for the membership
    roles Sequence[GetAccountMembersResultRole]
    Roles assigned to this Member.
    status str
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMembersResultUser
    Details of the user associated to the membership.
    id String
    Membership identifier tag.
    policies List<Property Map>
    Access policy for the membership
    roles List<Property Map>
    Roles assigned to this Member.
    status String
    A member's status in the account. Available values: "accepted", "pending".
    user Property Map
    Details of the user associated to the membership.

    GetAccountMembersResultPolicy

    Access string
    Allow or deny operations against the resources. Available values: "allow", "deny".
    Id string
    Policy identifier.
    PermissionGroups List<GetAccountMembersResultPolicyPermissionGroup>
    A set of permission groups that are specified to the policy.
    ResourceGroups List<GetAccountMembersResultPolicyResourceGroup>
    A list of resource groups that the policy applies to.
    Access string
    Allow or deny operations against the resources. Available values: "allow", "deny".
    Id string
    Policy identifier.
    PermissionGroups []GetAccountMembersResultPolicyPermissionGroup
    A set of permission groups that are specified to the policy.
    ResourceGroups []GetAccountMembersResultPolicyResourceGroup
    A list of resource groups that the policy applies to.
    access String
    Allow or deny operations against the resources. Available values: "allow", "deny".
    id String
    Policy identifier.
    permissionGroups List<GetAccountMembersResultPolicyPermissionGroup>
    A set of permission groups that are specified to the policy.
    resourceGroups List<GetAccountMembersResultPolicyResourceGroup>
    A list of resource groups that the policy applies to.
    access string
    Allow or deny operations against the resources. Available values: "allow", "deny".
    id string
    Policy identifier.
    permissionGroups GetAccountMembersResultPolicyPermissionGroup[]
    A set of permission groups that are specified to the policy.
    resourceGroups GetAccountMembersResultPolicyResourceGroup[]
    A list of resource groups that the policy applies to.
    access str
    Allow or deny operations against the resources. Available values: "allow", "deny".
    id str
    Policy identifier.
    permission_groups Sequence[GetAccountMembersResultPolicyPermissionGroup]
    A set of permission groups that are specified to the policy.
    resource_groups Sequence[GetAccountMembersResultPolicyResourceGroup]
    A list of resource groups that the policy applies to.
    access String
    Allow or deny operations against the resources. Available values: "allow", "deny".
    id String
    Policy identifier.
    permissionGroups List<Property Map>
    A set of permission groups that are specified to the policy.
    resourceGroups List<Property Map>
    A list of resource groups that the policy applies to.

    GetAccountMembersResultPolicyPermissionGroup

    Id string
    Identifier of the group.
    Meta GetAccountMembersResultPolicyPermissionGroupMeta
    Attributes associated to the permission group.
    Name string
    Name of the group.
    Id string
    Identifier of the group.
    Meta GetAccountMembersResultPolicyPermissionGroupMeta
    Attributes associated to the permission group.
    Name string
    Name of the group.
    id String
    Identifier of the group.
    meta GetAccountMembersResultPolicyPermissionGroupMeta
    Attributes associated to the permission group.
    name String
    Name of the group.
    id string
    Identifier of the group.
    meta GetAccountMembersResultPolicyPermissionGroupMeta
    Attributes associated to the permission group.
    name string
    Name of the group.
    id str
    Identifier of the group.
    meta GetAccountMembersResultPolicyPermissionGroupMeta
    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.

    GetAccountMembersResultPolicyPermissionGroupMeta

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    GetAccountMembersResultPolicyResourceGroup

    Id string
    Identifier of the group.
    Meta GetAccountMembersResultPolicyResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    Scopes List<GetAccountMembersResultPolicyResourceGroupScope>
    The scope associated to the resource group
    Id string
    Identifier of the group.
    Meta GetAccountMembersResultPolicyResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    Scopes []GetAccountMembersResultPolicyResourceGroupScope
    The scope associated to the resource group
    id String
    Identifier of the group.
    meta GetAccountMembersResultPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name String
    Name of the resource group.
    scopes List<GetAccountMembersResultPolicyResourceGroupScope>
    The scope associated to the resource group
    id string
    Identifier of the group.
    meta GetAccountMembersResultPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name string
    Name of the resource group.
    scopes GetAccountMembersResultPolicyResourceGroupScope[]
    The scope associated to the resource group
    id str
    Identifier of the group.
    meta GetAccountMembersResultPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name str
    Name of the resource group.
    scopes Sequence[GetAccountMembersResultPolicyResourceGroupScope]
    The scope associated to the resource group
    id String
    Identifier of the group.
    meta Property Map
    Attributes associated to the resource group.
    name String
    Name of the resource group.
    scopes List<Property Map>
    The scope associated to the resource group

    GetAccountMembersResultPolicyResourceGroupMeta

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    GetAccountMembersResultPolicyResourceGroupScope

    Key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    Objects List<GetAccountMembersResultPolicyResourceGroupScopeObject>
    A list of scope objects for additional context.
    Key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    Objects []GetAccountMembersResultPolicyResourceGroupScopeObject
    A list of scope objects for additional context.
    key String
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects List<GetAccountMembersResultPolicyResourceGroupScopeObject>
    A list of scope objects for additional context.
    key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects GetAccountMembersResultPolicyResourceGroupScopeObject[]
    A list of scope objects for additional context.
    key str
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects Sequence[GetAccountMembersResultPolicyResourceGroupScopeObject]
    A list of scope objects for additional context.
    key String
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects List<Property Map>
    A list of scope objects for additional context.

    GetAccountMembersResultPolicyResourceGroupScopeObject

    Key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    Key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key String
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key str
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key String
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

    GetAccountMembersResultRole

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

    GetAccountMembersResultRolePermissions

    GetAccountMembersResultRolePermissionsAnalytics

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

    GetAccountMembersResultRolePermissionsBilling

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

    GetAccountMembersResultRolePermissionsCachePurge

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

    GetAccountMembersResultRolePermissionsDns

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

    GetAccountMembersResultRolePermissionsDnsRecords

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

    GetAccountMembersResultRolePermissionsLb

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

    GetAccountMembersResultRolePermissionsLogs

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

    GetAccountMembersResultRolePermissionsOrganization

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

    GetAccountMembersResultRolePermissionsSsl

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

    GetAccountMembersResultRolePermissionsWaf

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

    GetAccountMembersResultRolePermissionsZoneSettings

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

    GetAccountMembersResultRolePermissionsZones

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

    GetAccountMembersResultUser

    Email string
    The contact email address of the user.
    FirstName string
    User's first name
    Id string
    Identifier
    LastName string
    User's last name
    TwoFactorAuthenticationEnabled bool
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
    Email string
    The contact email address of the user.
    FirstName string
    User's first name
    Id string
    Identifier
    LastName string
    User's last name
    TwoFactorAuthenticationEnabled bool
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
    email String
    The contact email address of the user.
    firstName String
    User's first name
    id String
    Identifier
    lastName String
    User's last name
    twoFactorAuthenticationEnabled Boolean
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
    email string
    The contact email address of the user.
    firstName string
    User's first name
    id string
    Identifier
    lastName string
    User's last name
    twoFactorAuthenticationEnabled boolean
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
    email str
    The contact email address of the user.
    first_name str
    User's first name
    id str
    Identifier
    last_name str
    User's last name
    two_factor_authentication_enabled bool
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
    email String
    The contact email address of the user.
    firstName String
    User's first name
    id String
    Identifier
    lastName String
    User's last name
    twoFactorAuthenticationEnabled Boolean
    Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.

    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