Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getServiceUser

# Service User Data Source

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

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var myserviceuser = Output.Create(Aiven.GetServiceUser.InvokeAsync(new Aiven.GetServiceUserArgs
        {
            Project = aiven_project.Myproject.Project,
            ServiceName = aiven_service.Myservice.Service_name,
            Username = "<USERNAME>",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupServiceUser(ctx, &aiven.LookupServiceUserArgs{
            Project:     aiven_project.Myproject.Project,
            ServiceName: aiven_service.Myservice.Service_name,
            Username:    "<USERNAME>",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

myserviceuser = aiven.get_service_user(project=aiven_project["myproject"]["project"],
    service_name=aiven_service["myservice"]["service_name"],
    username="<USERNAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const myserviceuser = pulumi.all([aiven_project_myproject.project, aiven_service_myservice.serviceName]).apply(([project, serviceName]) => aiven.getServiceUser({
    project: project,
    serviceName: serviceName,
    username: "<USERNAME>",
}, { async: true }));

Using getServiceUser

function getServiceUser(args: GetServiceUserArgs, opts?: InvokeOptions): Promise<GetServiceUserResult>
def get_service_user(access_cert: Optional[str] = None, access_key: Optional[str] = None, authentication: Optional[str] = None, password: Optional[str] = None, project: Optional[str] = None, redis_acl_categories: Optional[Sequence[str]] = None, redis_acl_commands: Optional[Sequence[str]] = None, redis_acl_keys: Optional[Sequence[str]] = None, service_name: Optional[str] = None, type: Optional[str] = None, username: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetServiceUserResult
func LookupServiceUser(ctx *Context, args *LookupServiceUserArgs, opts ...InvokeOption) (*LookupServiceUserResult, error)

Note: This function is named LookupServiceUser in the Go SDK.

public static class GetServiceUser {
    public static Task<GetServiceUserResult> InvokeAsync(GetServiceUserArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
Username string

is the actual name of the user account.

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Authentication string
Password string

is the password of the user (not applicable for all services).

RedisAclCategories List<string>

Redis specific field, defines command category rules.

RedisAclCommands List<string>

Redis specific field, defines rules for individual commands.

RedisAclKeys List<string>

Redis specific field, defines key access rules.

Type string

tells whether the user is primary account or regular account.

Project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

ServiceName string
Username string

is the actual name of the user account.

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Authentication string
Password string

is the password of the user (not applicable for all services).

RedisAclCategories []string

Redis specific field, defines command category rules.

RedisAclCommands []string

Redis specific field, defines rules for individual commands.

RedisAclKeys []string

Redis specific field, defines key access rules.

Type string

tells whether the user is primary account or regular account.

project string

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

serviceName string
username string

is the actual name of the user account.

accessCert string

is the access certificate of the user (not applicable for all services).

accessKey string

is the access key of the user (not applicable for all services).

authentication string
password string

is the password of the user (not applicable for all services).

redisAclCategories string[]

Redis specific field, defines command category rules.

redisAclCommands string[]

Redis specific field, defines rules for individual commands.

redisAclKeys string[]

Redis specific field, defines key access rules.

type string

tells whether the user is primary account or regular account.

project str

and service_name - (Required) define the project and service the user belongs to. They should be defined using reference as shown above to set up dependencies correctly.

service_name str
username str

is the actual name of the user account.

access_cert str

is the access certificate of the user (not applicable for all services).

access_key str

is the access key of the user (not applicable for all services).

authentication str
password str

is the password of the user (not applicable for all services).

redis_acl_categories Sequence[str]

Redis specific field, defines command category rules.

redis_acl_commands Sequence[str]

Redis specific field, defines rules for individual commands.

redis_acl_keys Sequence[str]

Redis specific field, defines key access rules.

type str

tells whether the user is primary account or regular account.

getServiceUser Result

The following output properties are available:

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Id string

The provider-assigned unique ID for this managed resource.

Password string

is the password of the user (not applicable for all services).

Project string
ServiceName string
Type string

tells whether the user is primary account or regular account.

Username string
Authentication string
RedisAclCategories List<string>

Redis specific field, defines command category rules.

RedisAclCommands List<string>

Redis specific field, defines rules for individual commands.

RedisAclKeys List<string>

Redis specific field, defines key access rules.

AccessCert string

is the access certificate of the user (not applicable for all services).

AccessKey string

is the access key of the user (not applicable for all services).

Id string

The provider-assigned unique ID for this managed resource.

Password string

is the password of the user (not applicable for all services).

Project string
ServiceName string
Type string

tells whether the user is primary account or regular account.

Username string
Authentication string
RedisAclCategories []string

Redis specific field, defines command category rules.

RedisAclCommands []string

Redis specific field, defines rules for individual commands.

RedisAclKeys []string

Redis specific field, defines key access rules.

accessCert string

is the access certificate of the user (not applicable for all services).

accessKey string

is the access key of the user (not applicable for all services).

id string

The provider-assigned unique ID for this managed resource.

password string

is the password of the user (not applicable for all services).

project string
serviceName string
type string

tells whether the user is primary account or regular account.

username string
authentication string
redisAclCategories string[]

Redis specific field, defines command category rules.

redisAclCommands string[]

Redis specific field, defines rules for individual commands.

redisAclKeys string[]

Redis specific field, defines key access rules.

access_cert str

is the access certificate of the user (not applicable for all services).

access_key str

is the access key of the user (not applicable for all services).

id str

The provider-assigned unique ID for this managed resource.

password str

is the password of the user (not applicable for all services).

project str
service_name str
type str

tells whether the user is primary account or regular account.

username str
authentication str
redis_acl_categories Sequence[str]

Redis specific field, defines command category rules.

redis_acl_commands Sequence[str]

Redis specific field, defines rules for individual commands.

redis_acl_keys Sequence[str]

Redis specific field, defines key access rules.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.