zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse
zitadel.getMachineUser
Explore with Pulumi AI
Datasource representing a serviceaccount situated under an organization, which then can be authorized through memberships or direct grants on other resources.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumi.Zitadel;
return await Deployment.RunAsync(() =>
{
var @default = Zitadel.GetMachineUser.Invoke(new()
{
OrgId = data.Zitadel_org.Default.Id,
UserId = "123456789012345678",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zitadel.LookupMachineUser(ctx, &zitadel.LookupMachineUserArgs{
OrgId: pulumi.StringRef(data.Zitadel_org.Default.Id),
UserId: "123456789012345678",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.ZitadelFunctions;
import com.pulumi.zitadel.inputs.GetMachineUserArgs;
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 default = ZitadelFunctions.getMachineUser(GetMachineUserArgs.builder()
.orgId(data.zitadel_org().default().id())
.userId("123456789012345678")
.build());
}
}
import pulumi
import pulumi_zitadel as zitadel
default = zitadel.get_machine_user(org_id=data["zitadel_org"]["default"]["id"],
user_id="123456789012345678")
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumi/zitadel";
const default = zitadel.getMachineUser({
orgId: data.zitadel_org["default"].id,
userId: "123456789012345678",
});
variables:
default:
fn::invoke:
Function: zitadel:getMachineUser
Arguments:
orgId: ${data.zitadel_org.default.id}
userId: '123456789012345678'
Using getMachineUser
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 getMachineUser(args: GetMachineUserArgs, opts?: InvokeOptions): Promise<GetMachineUserResult>
function getMachineUserOutput(args: GetMachineUserOutputArgs, opts?: InvokeOptions): Output<GetMachineUserResult>
def get_machine_user(org_id: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMachineUserResult
def get_machine_user_output(org_id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMachineUserResult]
func LookupMachineUser(ctx *Context, args *LookupMachineUserArgs, opts ...InvokeOption) (*LookupMachineUserResult, error)
func LookupMachineUserOutput(ctx *Context, args *LookupMachineUserOutputArgs, opts ...InvokeOption) LookupMachineUserResultOutput
> Note: This function is named LookupMachineUser
in the Go SDK.
public static class GetMachineUser
{
public static Task<GetMachineUserResult> InvokeAsync(GetMachineUserArgs args, InvokeOptions? opts = null)
public static Output<GetMachineUserResult> Invoke(GetMachineUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMachineUserResult> getMachineUser(GetMachineUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zitadel:index/getMachineUser:getMachineUser
arguments:
# arguments dictionary
The following arguments are supported:
getMachineUser Result
The following output properties are available:
- Access
Token stringType - Access token type
- Description string
- Description of the user
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Names List<string> - Loginnames
- Name string
- Name of the machine user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Id string - The ID of this resource.
- User
Name string - Username
- Org
Id string - ID of the organization
- Access
Token stringType - Access token type
- Description string
- Description of the user
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Names []string - Loginnames
- Name string
- Name of the machine user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Id string - The ID of this resource.
- User
Name string - Username
- Org
Id string - ID of the organization
- access
Token StringType - Access token type
- description String
- Description of the user
- id String
- The provider-assigned unique ID for this managed resource.
- login
Names List<String> - Loginnames
- name String
- Name of the machine user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Id String - The ID of this resource.
- user
Name String - Username
- org
Id String - ID of the organization
- access
Token stringType - Access token type
- description string
- Description of the user
- id string
- The provider-assigned unique ID for this managed resource.
- login
Names string[] - Loginnames
- name string
- Name of the machine user
- preferred
Login stringName - Preferred login name
- state string
- State of the user
- user
Id string - The ID of this resource.
- user
Name string - Username
- org
Id string - ID of the organization
- access_
token_ strtype - Access token type
- description str
- Description of the user
- id str
- The provider-assigned unique ID for this managed resource.
- login_
names Sequence[str] - Loginnames
- name str
- Name of the machine user
- preferred_
login_ strname - Preferred login name
- state str
- State of the user
- user_
id str - The ID of this resource.
- user_
name str - Username
- org_
id str - ID of the organization
- access
Token StringType - Access token type
- description String
- Description of the user
- id String
- The provider-assigned unique ID for this managed resource.
- login
Names List<String> - Loginnames
- name String
- Name of the machine user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Id String - The ID of this resource.
- user
Name String - Username
- org
Id String - ID of the organization
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
zitadel
Terraform Provider.