avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getUser
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.User” sidebar_current: “docs-avi-datasource-user” description: |- Get information of Avi User.
avi.User
This data source is used to to get avi.User objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooUser = avi.getUser({
name: "foo",
uuid: "user-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_user = avi.get_user(name="foo",
uuid="user-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.LookupUser(ctx, &avi.LookupUserArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("user-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var fooUser = Avi.GetUser.Invoke(new()
{
Name = "foo",
Uuid = "user-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetUserArgs;
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 fooUser = AviFunctions.getUser(GetUserArgs.builder()
.name("foo")
.uuid("user-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooUser:
fn::invoke:
function: avi:getUser
arguments:
name: foo
uuid: user-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getUser
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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
def get_user(id: Optional[str] = None,
name: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
> Note: This function is named LookupUser
in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
getUser Result
The following output properties are available:
- Accesses
List<Get
User Access> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Anonymous
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Date
Joined string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Default
Tenant stringRef - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Email string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Full
Name string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Is
Active string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Internal stringUser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Staff string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Superuser string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Logged
In string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Password string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Passwordless string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Recovery
Token string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Service
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Token
Expiration stringDate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ui
Property string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Unix
Crypt stringPassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- User
Profile stringRef - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Username string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Accesses
[]Get
User Access - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Anonymous
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Date
Joined string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Default
Tenant stringRef - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Email string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Full
Name string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Is
Active string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Internal stringUser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Staff string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Is
Superuser string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Logged
In string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Password string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Passwordless string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Recovery
Token string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Service
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Token
Expiration stringDate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Ui
Property string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Unix
Crypt stringPassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- User
Profile stringRef - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Username string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- accesses
List<Get
User Access> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- anonymous
User String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- date
Joined String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- default
Tenant StringRef - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- email String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- full
Name String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- is
Active String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Internal StringUser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Staff String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Superuser String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- local String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- logged
In String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- passwordless String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- recovery
Token String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
User String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- token
Expiration StringDate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ui
Property String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- unix
Crypt StringPassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- user
Profile StringRef - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- username String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- accesses
Get
User Access[] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- anonymous
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- date
Joined string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- default
Tenant stringRef - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- email string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- full
Name string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- is
Active string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Internal stringUser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Staff string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Superuser string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- logged
In string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- passwordless string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- recovery
Token string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
User string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- token
Expiration stringDate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ui
Property string - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- unix
Crypt stringPassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- user
Profile stringRef - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- username string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- accesses
Sequence[Get
User Access] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- anonymous_
user str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- date_
joined str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- default_
tenant_ strref - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- email str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- full_
name str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- is_
active str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is_
internal_ struser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is_
staff str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is_
superuser str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- local str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- logged_
in str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- passwordless str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- recovery_
token str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service_
user str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- token_
expiration_ strdate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ui_
property str - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- unix_
crypt_ strpassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- user_
profile_ strref - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- username str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- accesses List<Property Map>
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- anonymous
User String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- date
Joined String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- default
Tenant StringRef - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- email String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- full
Name String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- is
Active String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Internal StringUser - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Staff String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- is
Superuser String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- local String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- logged
In String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- passwordless String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- recovery
Token String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
User String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- token
Expiration StringDate - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- ui
Property String - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- unix
Crypt StringPassword - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- user
Profile StringRef - It is a reference to an object of type useraccountprofile. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- username String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
GetUserAccess
- All
Tenants string - Role
Ref string - Tenant
Ref string
- All
Tenants string - Role
Ref string - Tenant
Ref string
- all
Tenants String - role
Ref String - tenant
Ref String
- all
Tenants string - role
Ref string - tenant
Ref string
- all_
tenants str - role_
ref str - tenant_
ref str
- all
Tenants String - role
Ref String - tenant
Ref String
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.