1. Packages
  2. Aiven Provider
  3. API Docs
  4. getProjectUser
Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi

aiven.getProjectUser

Explore with Pulumi AI

aiven logo
Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi

    The Project User data source provides information about the existing Aiven Project User.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const mytestuser = aiven.getProjectUser({
        project: myproject.project,
        email: "john.doe@example.com",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    mytestuser = aiven.get_project_user(project=myproject["project"],
        email="john.doe@example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupProjectUser(ctx, &aiven.LookupProjectUserArgs{
    			Project: myproject.Project,
    			Email:   "john.doe@example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var mytestuser = Aiven.GetProjectUser.Invoke(new()
        {
            Project = myproject.Project,
            Email = "john.doe@example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetProjectUserArgs;
    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 mytestuser = AivenFunctions.getProjectUser(GetProjectUserArgs.builder()
                .project(myproject.project())
                .email("john.doe@example.com")
                .build());
    
        }
    }
    
    variables:
      mytestuser:
        fn::invoke:
          Function: aiven:getProjectUser
          Arguments:
            project: ${myproject.project}
            email: john.doe@example.com
    

    Using getProjectUser

    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 getProjectUser(args: GetProjectUserArgs, opts?: InvokeOptions): Promise<GetProjectUserResult>
    function getProjectUserOutput(args: GetProjectUserOutputArgs, opts?: InvokeOptions): Output<GetProjectUserResult>
    def get_project_user(email: Optional[str] = None,
                         project: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetProjectUserResult
    def get_project_user_output(email: Optional[pulumi.Input[str]] = None,
                         project: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetProjectUserResult]
    func LookupProjectUser(ctx *Context, args *LookupProjectUserArgs, opts ...InvokeOption) (*LookupProjectUserResult, error)
    func LookupProjectUserOutput(ctx *Context, args *LookupProjectUserOutputArgs, opts ...InvokeOption) LookupProjectUserResultOutput

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

    public static class GetProjectUser 
    {
        public static Task<GetProjectUserResult> InvokeAsync(GetProjectUserArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectUserResult> Invoke(GetProjectUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectUserResult> getProjectUser(GetProjectUserArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getProjectUser:getProjectUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    email String
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    email str
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    email String
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.

    getProjectUser Result

    The following output properties are available:

    Accepted bool
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    Email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MemberType string
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Accepted bool
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    Email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MemberType string
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accepted Boolean
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    email String
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    memberType String
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accepted boolean
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    email string
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    memberType string
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accepted bool
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    email str
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    member_type str
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accepted Boolean
    Whether the user has accepted the request to join the project. Users get an invite and become project members after accepting the invite.
    email String
    Email address of the user in lowercase. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    memberType String
    Project membership type. The possible values are admin, developer, operator, organization:app_users:write, organization:audit_logs:read, organization:billing:read, organization:billing:write, organization:domains:write, organization:groups:write, organization:idps:write, organization:network:read, organization:network:write, organization:permissions:read, organization:permissions:write, organization:projects:read, organization:projects:write, organization:users:write, project:audit_logs:read, project:integrations:read, project:integrations:write, project:networking:read, project:networking:write, project:permissions:read, project:services:read, project:services:write, read_only, role:organization:admin, role:services:maintenance, role:services:recover, service:configuration:write, service:data:write, service:logs:read, service:secrets:read and service:users:write.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi