Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getInfluxdbUser

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

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var user = Output.Create(Aiven.GetInfluxdbUser.InvokeAsync(new Aiven.GetInfluxdbUserArgs
        {
            Project = "my-project",
            ServiceName = "my-service",
            Username = "user1",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupInfluxdbUser(ctx, &GetInfluxdbUserArgs{
			Project:     "my-project",
			ServiceName: "my-service",
			Username:    "user1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var user = Output.of(AivenFunctions.getInfluxdbUser(GetInfluxdbUserArgs.builder()
            .project("my-project")
            .serviceName("my-service")
            .username("user1")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

user = aiven.get_influxdb_user(project="my-project",
    service_name="my-service",
    username="user1")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const user = pulumi.output(aiven.getInfluxdbUser({
    project: "my-project",
    serviceName: "my-service",
    username: "user1",
}));
variables:
  user:
    Fn::Invoke:
      Function: aiven:getInfluxdbUser
      Arguments:
        project: my-project
        serviceName: my-service
        username: user1

Using getInfluxdbUser

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 getInfluxdbUser(args: GetInfluxdbUserArgs, opts?: InvokeOptions): Promise<GetInfluxdbUserResult>
function getInfluxdbUserOutput(args: GetInfluxdbUserOutputArgs, opts?: InvokeOptions): Output<GetInfluxdbUserResult>
def get_influxdb_user(project: Optional[str] = None,
                      service_name: Optional[str] = None,
                      username: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetInfluxdbUserResult
def get_influxdb_user_output(project: Optional[pulumi.Input[str]] = None,
                      service_name: Optional[pulumi.Input[str]] = None,
                      username: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetInfluxdbUserResult]
func LookupInfluxdbUser(ctx *Context, args *LookupInfluxdbUserArgs, opts ...InvokeOption) (*LookupInfluxdbUserResult, error)
func LookupInfluxdbUserOutput(ctx *Context, args *LookupInfluxdbUserOutputArgs, opts ...InvokeOption) LookupInfluxdbUserResultOutput

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

public static class GetInfluxdbUser 
{
    public static Task<GetInfluxdbUserResult> InvokeAsync(GetInfluxdbUserArgs args, InvokeOptions? opts = null)
    public static Output<GetInfluxdbUserResult> Invoke(GetInfluxdbUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInfluxdbUserResult> getInfluxdbUser(GetInfluxdbUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getInfluxdbUser:getInfluxdbUser
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Project string
ServiceName string
Username string
Project string
ServiceName string
Username string
project String
serviceName String
username String
project string
serviceName string
username string
project String
serviceName String
username String

getInfluxdbUser Result

The following output properties are available:

AccessCert string
AccessKey string
Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
AccessCert string
AccessKey string
Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
accessCert String
accessKey String
id String

The provider-assigned unique ID for this managed resource.

password String
project String
serviceName String
type String
username String
accessCert string
accessKey string
id string

The provider-assigned unique ID for this managed resource.

password string
project string
serviceName string
type string
username string
access_cert str
access_key str
id str

The provider-assigned unique ID for this managed resource.

password str
project str
service_name str
type str
username str
accessCert String
accessKey String
id String

The provider-assigned unique ID for this managed resource.

password String
project String
serviceName String
type String
username String

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.