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

cloudflare.getAccountMember

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 exampleAccountMember = cloudflare.getAccountMember({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
        memberId: "4536bcfad5faccb111b47003c79917fa",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_account_member = cloudflare.get_account_member(account_id="eb78d65290b24279ba6f44721b3ea3c4",
        member_id="4536bcfad5faccb111b47003c79917fa")
    
    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.LookupAccountMember(ctx, &cloudflare.LookupAccountMemberArgs{
    			AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
    			MemberId:  pulumi.StringRef("4536bcfad5faccb111b47003c79917fa"),
    		}, 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 exampleAccountMember = Cloudflare.GetAccountMember.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
            MemberId = "4536bcfad5faccb111b47003c79917fa",
        });
    
    });
    
    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.GetAccountMemberArgs;
    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 exampleAccountMember = CloudflareFunctions.getAccountMember(GetAccountMemberArgs.builder()
                .accountId("eb78d65290b24279ba6f44721b3ea3c4")
                .memberId("4536bcfad5faccb111b47003c79917fa")
                .build());
    
        }
    }
    
    variables:
      exampleAccountMember:
        fn::invoke:
          function: cloudflare:getAccountMember
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
            memberId: 4536bcfad5faccb111b47003c79917fa
    

    Using getAccountMember

    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 getAccountMember(args: GetAccountMemberArgs, opts?: InvokeOptions): Promise<GetAccountMemberResult>
    function getAccountMemberOutput(args: GetAccountMemberOutputArgs, opts?: InvokeOptions): Output<GetAccountMemberResult>
    def get_account_member(account_id: Optional[str] = None,
                           filter: Optional[GetAccountMemberFilter] = None,
                           member_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAccountMemberResult
    def get_account_member_output(account_id: Optional[pulumi.Input[str]] = None,
                           filter: Optional[pulumi.Input[GetAccountMemberFilterArgs]] = None,
                           member_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAccountMemberResult]
    func LookupAccountMember(ctx *Context, args *LookupAccountMemberArgs, opts ...InvokeOption) (*LookupAccountMemberResult, error)
    func LookupAccountMemberOutput(ctx *Context, args *LookupAccountMemberOutputArgs, opts ...InvokeOption) LookupAccountMemberResultOutput

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

    public static class GetAccountMember 
    {
        public static Task<GetAccountMemberResult> InvokeAsync(GetAccountMemberArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountMemberResult> Invoke(GetAccountMemberInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
    public static Output<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAccountMember:getAccountMember
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    Filter GetAccountMemberFilter
    MemberId string
    Membership identifier tag.
    AccountId string
    Account identifier tag.
    Filter GetAccountMemberFilter
    MemberId string
    Membership identifier tag.
    accountId String
    Account identifier tag.
    filter GetAccountMemberFilter
    memberId String
    Membership identifier tag.
    accountId string
    Account identifier tag.
    filter GetAccountMemberFilter
    memberId string
    Membership identifier tag.
    account_id str
    Account identifier tag.
    filter GetAccountMemberFilter
    member_id str
    Membership identifier tag.
    accountId String
    Account identifier tag.
    filter Property Map
    memberId String
    Membership identifier tag.

    getAccountMember Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Id string
    Membership identifier tag.
    Policies List<GetAccountMemberPolicy>
    Access policy for the membership
    Roles List<GetAccountMemberRole>
    Roles assigned to this Member.
    Status string
    A member's status in the account. Available values: "accepted", "pending".
    User GetAccountMemberUser
    Details of the user associated to the membership.
    Filter GetAccountMemberFilter
    MemberId string
    Membership identifier tag.
    AccountId string
    Account identifier tag.
    Id string
    Membership identifier tag.
    Policies []GetAccountMemberPolicy
    Access policy for the membership
    Roles []GetAccountMemberRole
    Roles assigned to this Member.
    Status string
    A member's status in the account. Available values: "accepted", "pending".
    User GetAccountMemberUser
    Details of the user associated to the membership.
    Filter GetAccountMemberFilter
    MemberId string
    Membership identifier tag.
    accountId String
    Account identifier tag.
    id String
    Membership identifier tag.
    policies List<GetAccountMemberPolicy>
    Access policy for the membership
    roles List<GetAccountMemberRole>
    Roles assigned to this Member.
    status String
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMemberUser
    Details of the user associated to the membership.
    filter GetAccountMemberFilter
    memberId String
    Membership identifier tag.
    accountId string
    Account identifier tag.
    id string
    Membership identifier tag.
    policies GetAccountMemberPolicy[]
    Access policy for the membership
    roles GetAccountMemberRole[]
    Roles assigned to this Member.
    status string
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMemberUser
    Details of the user associated to the membership.
    filter GetAccountMemberFilter
    memberId string
    Membership identifier tag.
    account_id str
    Account identifier tag.
    id str
    Membership identifier tag.
    policies Sequence[GetAccountMemberPolicy]
    Access policy for the membership
    roles Sequence[GetAccountMemberRole]
    Roles assigned to this Member.
    status str
    A member's status in the account. Available values: "accepted", "pending".
    user GetAccountMemberUser
    Details of the user associated to the membership.
    filter GetAccountMemberFilter
    member_id str
    Membership identifier tag.
    accountId String
    Account identifier tag.
    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.
    filter Property Map
    memberId String
    Membership identifier tag.

    Supporting Types

    GetAccountMemberFilter

    Direction string
    Direction to order results. Available values: "asc", "desc".
    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".
    Direction string
    Direction to order results. Available values: "asc", "desc".
    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".
    direction String
    Direction to order results. Available values: "asc", "desc".
    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".
    direction string
    Direction to order results. Available values: "asc", "desc".
    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".
    direction str
    Direction to order results. Available values: "asc", "desc".
    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".
    direction String
    Direction to order results. Available values: "asc", "desc".
    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".

    GetAccountMemberPolicy

    Access string
    Allow or deny operations against the resources. Available values: "allow", "deny".
    Id string
    Policy identifier.
    PermissionGroups List<GetAccountMemberPolicyPermissionGroup>
    A set of permission groups that are specified to the policy.
    ResourceGroups List<GetAccountMemberPolicyResourceGroup>
    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 []GetAccountMemberPolicyPermissionGroup
    A set of permission groups that are specified to the policy.
    ResourceGroups []GetAccountMemberPolicyResourceGroup
    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<GetAccountMemberPolicyPermissionGroup>
    A set of permission groups that are specified to the policy.
    resourceGroups List<GetAccountMemberPolicyResourceGroup>
    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 GetAccountMemberPolicyPermissionGroup[]
    A set of permission groups that are specified to the policy.
    resourceGroups GetAccountMemberPolicyResourceGroup[]
    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[GetAccountMemberPolicyPermissionGroup]
    A set of permission groups that are specified to the policy.
    resource_groups Sequence[GetAccountMemberPolicyResourceGroup]
    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.

    GetAccountMemberPolicyPermissionGroup

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

    GetAccountMemberPolicyPermissionGroupMeta

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

    GetAccountMemberPolicyResourceGroup

    Id string
    Identifier of the group.
    Meta GetAccountMemberPolicyResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    Scopes List<GetAccountMemberPolicyResourceGroupScope>
    The scope associated to the resource group
    Id string
    Identifier of the group.
    Meta GetAccountMemberPolicyResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    Scopes []GetAccountMemberPolicyResourceGroupScope
    The scope associated to the resource group
    id String
    Identifier of the group.
    meta GetAccountMemberPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name String
    Name of the resource group.
    scopes List<GetAccountMemberPolicyResourceGroupScope>
    The scope associated to the resource group
    id string
    Identifier of the group.
    meta GetAccountMemberPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name string
    Name of the resource group.
    scopes GetAccountMemberPolicyResourceGroupScope[]
    The scope associated to the resource group
    id str
    Identifier of the group.
    meta GetAccountMemberPolicyResourceGroupMeta
    Attributes associated to the resource group.
    name str
    Name of the resource group.
    scopes Sequence[GetAccountMemberPolicyResourceGroupScope]
    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

    GetAccountMemberPolicyResourceGroupMeta

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

    GetAccountMemberPolicyResourceGroupScope

    Key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    Objects List<GetAccountMemberPolicyResourceGroupScopeObject>
    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 []GetAccountMemberPolicyResourceGroupScopeObject
    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<GetAccountMemberPolicyResourceGroupScopeObject>
    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 GetAccountMemberPolicyResourceGroupScopeObject[]
    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[GetAccountMemberPolicyResourceGroupScopeObject]
    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.

    GetAccountMemberPolicyResourceGroupScopeObject

    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.)

    GetAccountMemberRole

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

    GetAccountMemberRolePermissions

    GetAccountMemberRolePermissionsAnalytics

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

    GetAccountMemberRolePermissionsBilling

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

    GetAccountMemberRolePermissionsCachePurge

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

    GetAccountMemberRolePermissionsDns

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

    GetAccountMemberRolePermissionsDnsRecords

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

    GetAccountMemberRolePermissionsLb

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

    GetAccountMemberRolePermissionsLogs

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

    GetAccountMemberRolePermissionsOrganization

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

    GetAccountMemberRolePermissionsSsl

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

    GetAccountMemberRolePermissionsWaf

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

    GetAccountMemberRolePermissionsZoneSettings

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

    GetAccountMemberRolePermissionsZones

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

    GetAccountMemberUser

    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