Harbor v3.10.11 published on Wednesday, Jun 19, 2024 by Pulumiverse
harbor.getGroups
Explore with Pulumi AI
Example Usage
data "harbor_groups" "example" {
  group_name = "example-group"
}
output "group_ids" {
  value = [data.harbor_groups.example.*.id]
}
Using getGroups
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 getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>
function getGroupsOutput(args: GetGroupsOutputArgs, opts?: InvokeOptions): Output<GetGroupsResult>def get_groups(group_name: Optional[str] = None,
               ldap_group_dn: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(group_name: Optional[pulumi.Input[str]] = None,
               ldap_group_dn: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetGroupsResult]func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput> Note: This function is named GetGroups in the Go SDK.
public static class GetGroups 
{
    public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupsResult> Invoke(GetGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: harbor:index/getGroups:getGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Group
Name string - The name of the group to filter by.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- Group
Name string - The name of the group to filter by.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- group
Name String - The name of the group to filter by.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
- group
Name string - The name of the group to filter by.
 - ldap
Group stringDn  - The LDAP group DN to filter by.
 
- group_
name str - The name of the group to filter by.
 - ldap_
group_ strdn  - The LDAP group DN to filter by.
 
- group
Name String - The name of the group to filter by.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
getGroups Result
The following output properties are available:
- Groups
List<Pulumiverse.
Harbor. Outputs. Get Groups Group>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Group
Name string - The name of the group to filter by.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- Groups
[]Get
Groups Group  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Group
Name string - The name of the group to filter by.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- groups
List<Get
Groups Group>  - id String
 - The provider-assigned unique ID for this managed resource.
 - group
Name String - The name of the group to filter by.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
- groups
Get
Groups Group[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - group
Name string - The name of the group to filter by.
 - ldap
Group stringDn  - The LDAP group DN to filter by.
 
- groups
Sequence[Get
Groups Group]  - id str
 - The provider-assigned unique ID for this managed resource.
 - group_
name str - The name of the group to filter by.
 - ldap_
group_ strdn  - The LDAP group DN to filter by.
 
- groups List<Property Map>
 - id String
 - The provider-assigned unique ID for this managed resource.
 - group
Name String - The name of the group to filter by.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
Supporting Types
GetGroupsGroup  
- Group
Name string - The name of the group to filter by.
 - Group
Type int - Id int
 - The ID of this resource.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- Group
Name string - The name of the group to filter by.
 - Group
Type int - Id int
 - The ID of this resource.
 - Ldap
Group stringDn  - The LDAP group DN to filter by.
 
- group
Name String - The name of the group to filter by.
 - group
Type Integer - id Integer
 - The ID of this resource.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
- group
Name string - The name of the group to filter by.
 - group
Type number - id number
 - The ID of this resource.
 - ldap
Group stringDn  - The LDAP group DN to filter by.
 
- group_
name str - The name of the group to filter by.
 - group_
type int - id int
 - The ID of this resource.
 - ldap_
group_ strdn  - The LDAP group DN to filter by.
 
- group
Name String - The name of the group to filter by.
 - group
Type Number - id Number
 - The ID of this resource.
 - ldap
Group StringDn  - The LDAP group DN to filter by.
 
Package Details
- Repository
 - harbor pulumiverse/pulumi-harbor
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harborTerraform Provider.