Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Provides a VMware Cloud Director Org User data source. This can be used to read organization users, including org administrators.
Supported in provider v3.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const my_org_admin = vcd.getOrgUser({
org: "my-org",
name: "my-org-admin",
});
const my_vapp_creator = vcd.getOrgUser({
org: "my-org",
userId: "urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef",
});
export const adminUser = my_org_admin;
export const vappCreatorUser = my_vapp_creator;
import pulumi
import pulumi_vcd as vcd
my_org_admin = vcd.get_org_user(org="my-org",
name="my-org-admin")
my_vapp_creator = vcd.get_org_user(org="my-org",
user_id="urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef")
pulumi.export("adminUser", my_org_admin)
pulumi.export("vappCreatorUser", my_vapp_creator)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
my_org_admin, err := vcd.LookupOrgUser(ctx, &vcd.LookupOrgUserArgs{
Org: pulumi.StringRef("my-org"),
Name: pulumi.StringRef("my-org-admin"),
}, nil)
if err != nil {
return err
}
my_vapp_creator, err := vcd.LookupOrgUser(ctx, &vcd.LookupOrgUserArgs{
Org: pulumi.StringRef("my-org"),
UserId: pulumi.StringRef("urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef"),
}, nil)
if err != nil {
return err
}
ctx.Export("adminUser", my_org_admin)
ctx.Export("vappCreatorUser", my_vapp_creator)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var my_org_admin = Vcd.GetOrgUser.Invoke(new()
{
Org = "my-org",
Name = "my-org-admin",
});
var my_vapp_creator = Vcd.GetOrgUser.Invoke(new()
{
Org = "my-org",
UserId = "urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef",
});
return new Dictionary<string, object?>
{
["adminUser"] = my_org_admin,
["vappCreatorUser"] = my_vapp_creator,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetOrgUserArgs;
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 my-org-admin = VcdFunctions.getOrgUser(GetOrgUserArgs.builder()
.org("my-org")
.name("my-org-admin")
.build());
final var my-vapp-creator = VcdFunctions.getOrgUser(GetOrgUserArgs.builder()
.org("my-org")
.userId("urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef")
.build());
ctx.export("adminUser", my_org_admin);
ctx.export("vappCreatorUser", my_vapp_creator);
}
}
variables:
my-org-admin:
fn::invoke:
function: vcd:getOrgUser
arguments:
org: my-org
name: my-org-admin
my-vapp-creator:
fn::invoke:
function: vcd:getOrgUser
arguments:
org: my-org
userId: urn:vcloud:user:c311eb35-6984-4d26-3ee9-0000deadbeef
outputs:
adminUser: ${["my-org-admin"]}
vappCreatorUser: ${["my-vapp-creator"]}
Using getOrgUser
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 getOrgUser(args: GetOrgUserArgs, opts?: InvokeOptions): Promise<GetOrgUserResult>
function getOrgUserOutput(args: GetOrgUserOutputArgs, opts?: InvokeOptions): Output<GetOrgUserResult>def get_org_user(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
user_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgUserResult
def get_org_user_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgUserResult]func LookupOrgUser(ctx *Context, args *LookupOrgUserArgs, opts ...InvokeOption) (*LookupOrgUserResult, error)
func LookupOrgUserOutput(ctx *Context, args *LookupOrgUserOutputArgs, opts ...InvokeOption) LookupOrgUserResultOutput> Note: This function is named LookupOrgUser in the Go SDK.
public static class GetOrgUser
{
public static Task<GetOrgUserResult> InvokeAsync(GetOrgUserArgs args, InvokeOptions? opts = null)
public static Output<GetOrgUserResult> Invoke(GetOrgUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrgUserResult> getOrgUser(GetOrgUserArgs args, InvokeOptions options)
public static Output<GetOrgUserResult> getOrgUser(GetOrgUserArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getOrgUser:getOrgUser
arguments:
# arguments dictionaryThe following arguments are supported:
getOrgUser Result
The following output properties are available:
- Deployed
Vm doubleQuota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- Description string
- An optional description of the user.
- Email
Address string - The Org User email address.
- Enabled bool
- True if the user is enabled and can log in.
- Full
Name string - The full name of the user.
- Group
Names List<string> - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - Id string
- The ID of the Organization user
- Instant
Messaging string - The Org User instant messaging.
- Is
External bool - If the user account was imported from an external resource, like an LDAP.
- Is
Group boolRole - True if this user has a group role.
- Is
Locked bool - If the user account has been locked due to too many invalid login attempts, the value will be true.
- Provider
Type string - Identity provider type for this user.
- Role string
- The role of the user.
- Stored
Vm doubleQuota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- Telephone string
- The Org User telephone number.
- Name string
- Org string
- User
Id string
- Deployed
Vm float64Quota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- Description string
- An optional description of the user.
- Email
Address string - The Org User email address.
- Enabled bool
- True if the user is enabled and can log in.
- Full
Name string - The full name of the user.
- Group
Names []string - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - Id string
- The ID of the Organization user
- Instant
Messaging string - The Org User instant messaging.
- Is
External bool - If the user account was imported from an external resource, like an LDAP.
- Is
Group boolRole - True if this user has a group role.
- Is
Locked bool - If the user account has been locked due to too many invalid login attempts, the value will be true.
- Provider
Type string - Identity provider type for this user.
- Role string
- The role of the user.
- Stored
Vm float64Quota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- Telephone string
- The Org User telephone number.
- Name string
- Org string
- User
Id string
- deployed
Vm DoubleQuota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- description String
- An optional description of the user.
- email
Address String - The Org User email address.
- enabled Boolean
- True if the user is enabled and can log in.
- full
Name String - The full name of the user.
- group
Names List<String> - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - id String
- The ID of the Organization user
- instant
Messaging String - The Org User instant messaging.
- is
External Boolean - If the user account was imported from an external resource, like an LDAP.
- is
Group BooleanRole - True if this user has a group role.
- is
Locked Boolean - If the user account has been locked due to too many invalid login attempts, the value will be true.
- provider
Type String - Identity provider type for this user.
- role String
- The role of the user.
- stored
Vm DoubleQuota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- telephone String
- The Org User telephone number.
- name String
- org String
- user
Id String
- deployed
Vm numberQuota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- description string
- An optional description of the user.
- email
Address string - The Org User email address.
- enabled boolean
- True if the user is enabled and can log in.
- full
Name string - The full name of the user.
- group
Names string[] - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - id string
- The ID of the Organization user
- instant
Messaging string - The Org User instant messaging.
- is
External boolean - If the user account was imported from an external resource, like an LDAP.
- is
Group booleanRole - True if this user has a group role.
- is
Locked boolean - If the user account has been locked due to too many invalid login attempts, the value will be true.
- provider
Type string - Identity provider type for this user.
- role string
- The role of the user.
- stored
Vm numberQuota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- telephone string
- The Org User telephone number.
- name string
- org string
- user
Id string
- deployed_
vm_ floatquota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- description str
- An optional description of the user.
- email_
address str - The Org User email address.
- enabled bool
- True if the user is enabled and can log in.
- full_
name str - The full name of the user.
- group_
names Sequence[str] - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - id str
- The ID of the Organization user
- instant_
messaging str - The Org User instant messaging.
- is_
external bool - If the user account was imported from an external resource, like an LDAP.
- is_
group_ boolrole - True if this user has a group role.
- is_
locked bool - If the user account has been locked due to too many invalid login attempts, the value will be true.
- provider_
type str - Identity provider type for this user.
- role str
- The role of the user.
- stored_
vm_ floatquota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- telephone str
- The Org User telephone number.
- name str
- org str
- user_
id str
- deployed
Vm NumberQuota - Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
- description String
- An optional description of the user.
- email
Address String - The Org User email address.
- enabled Boolean
- True if the user is enabled and can log in.
- full
Name String - The full name of the user.
- group
Names List<String> - The set of group names to which this user belongs. It's only populated if the users
are created after the group (with this user having a
depends_onof the given group). - id String
- The ID of the Organization user
- instant
Messaging String - The Org User instant messaging.
- is
External Boolean - If the user account was imported from an external resource, like an LDAP.
- is
Group BooleanRole - True if this user has a group role.
- is
Locked Boolean - If the user account has been locked due to too many invalid login attempts, the value will be true.
- provider
Type String - Identity provider type for this user.
- role String
- The role of the user.
- stored
Vm NumberQuota - Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
- telephone String
- The Org User telephone number.
- name String
- org String
- user
Id String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcdTerraform Provider.
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
