The Project User data source provides information about the existing Aiven Project User.
This resource is deprecated Use
aiven.OrganizationPermissioninstead and migrate existingaiven.ProjectUserresources to the new resource. Do not use theaiven.ProjectUserandaiven.OrganizationPermissionresources together.
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)
public static Output<GetProjectUserResult> getProjectUser(GetProjectUserArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getProjectUser:getProjectUser
arguments:
# arguments dictionaryThe 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.
- Member
Type 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:networking:read,organization:networking:write,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:readandservice: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.
- Member
Type 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:networking:read,organization:networking:write,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:readandservice: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.
- member
Type 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:networking:read,organization:networking:write,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:readandservice: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.
- member
Type 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:networking:read,organization:networking:write,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:readandservice: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:networking:read,organization:networking:write,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:readandservice: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.
- member
Type 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:networking:read,organization:networking:write,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:readandservice: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
aivenTerraform Provider.
