1. Packages
  2. Harbor
  3. API Docs
  4. getUsers
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

harbor.getUsers

Explore with Pulumi AI

Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

Example Usage

data "harbor_users" "example" {
  username = "example-user"
}

output "users_ids" {
  value = [data.harbor_users.example.users.*.id]
}
Copy

Using getUsers

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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>
Copy
def get_users(email: Optional[str] = None,
              username: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(email: Optional[pulumi.Input[str]] = None,
              username: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]
Copy
func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput
Copy

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

public static class GetUsers 
{
    public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harbor:index/getUsers:getUsers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Email string
The email of the user to filter by.
Username string
The name of the user to filter by.
Email string
The email of the user to filter by.
Username string
The name of the user to filter by.
email String
The email of the user to filter by.
username String
The name of the user to filter by.
email string
The email of the user to filter by.
username string
The name of the user to filter by.
email str
The email of the user to filter by.
username str
The name of the user to filter by.
email String
The email of the user to filter by.
username String
The name of the user to filter by.

getUsers Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Users List<Pulumiverse.Harbor.Outputs.GetUsersUser>
Email string
The email of the user to filter by.
Username string
The name of the user to filter by.
Id string
The provider-assigned unique ID for this managed resource.
Users []GetUsersUser
Email string
The email of the user to filter by.
Username string
The name of the user to filter by.
id String
The provider-assigned unique ID for this managed resource.
users List<GetUsersUser>
email String
The email of the user to filter by.
username String
The name of the user to filter by.
id string
The provider-assigned unique ID for this managed resource.
users GetUsersUser[]
email string
The email of the user to filter by.
username string
The name of the user to filter by.
id str
The provider-assigned unique ID for this managed resource.
users Sequence[GetUsersUser]
email str
The email of the user to filter by.
username str
The name of the user to filter by.
id String
The provider-assigned unique ID for this managed resource.
users List<Property Map>
email String
The email of the user to filter by.
username String
The name of the user to filter by.

Supporting Types

GetUsersUser

Admin This property is required. bool
Comment This property is required. string
Email This property is required. string
The email of the user to filter by.
FullName This property is required. string
Id This property is required. string
The ID of this resource.
Username This property is required. string
The name of the user to filter by.
Admin This property is required. bool
Comment This property is required. string
Email This property is required. string
The email of the user to filter by.
FullName This property is required. string
Id This property is required. string
The ID of this resource.
Username This property is required. string
The name of the user to filter by.
admin This property is required. Boolean
comment This property is required. String
email This property is required. String
The email of the user to filter by.
fullName This property is required. String
id This property is required. String
The ID of this resource.
username This property is required. String
The name of the user to filter by.
admin This property is required. boolean
comment This property is required. string
email This property is required. string
The email of the user to filter by.
fullName This property is required. string
id This property is required. string
The ID of this resource.
username This property is required. string
The name of the user to filter by.
admin This property is required. bool
comment This property is required. str
email This property is required. str
The email of the user to filter by.
full_name This property is required. str
id This property is required. str
The ID of this resource.
username This property is required. str
The name of the user to filter by.
admin This property is required. Boolean
comment This property is required. String
email This property is required. String
The email of the user to filter by.
fullName This property is required. String
id This property is required. String
The ID of this resource.
username This property is required. String
The name of the user to filter by.

Package Details

Repository
harbor pulumiverse/pulumi-harbor
License
Apache-2.0
Notes
This Pulumi package is based on the harbor Terraform Provider.
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse