vault.identity.getGroup
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const group = vault.identity.getGroup({
    groupName: "user",
});
import pulumi
import pulumi_vault as vault
group = vault.identity.get_group(group_name="user")
package main
import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := identity.LookupGroup(ctx, &identity.LookupGroupArgs{
			GroupName: pulumi.StringRef("user"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() => 
{
    var @group = Vault.Identity.GetGroup.Invoke(new()
    {
        GroupName = "user",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.IdentityFunctions;
import com.pulumi.vault.identity.inputs.GetGroupArgs;
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 group = IdentityFunctions.getGroup(GetGroupArgs.builder()
            .groupName("user")
            .build());
    }
}
variables:
  group:
    fn::invoke:
      function: vault:identity:getGroup
      arguments:
        groupName: user
Required Vault Capabilities
Use of this resource requires the create capability on /identity/lookup/group.
Using getGroup
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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>def get_group(alias_id: Optional[str] = None,
              alias_mount_accessor: Optional[str] = None,
              alias_name: Optional[str] = None,
              group_id: Optional[str] = None,
              group_name: Optional[str] = None,
              namespace: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(alias_id: Optional[pulumi.Input[str]] = None,
              alias_mount_accessor: Optional[pulumi.Input[str]] = None,
              alias_name: Optional[pulumi.Input[str]] = None,
              group_id: Optional[pulumi.Input[str]] = None,
              group_name: Optional[pulumi.Input[str]] = None,
              namespace: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput> Note: This function is named LookupGroup in the Go SDK.
public static class GetGroup 
{
    public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
fn::invoke:
  function: vault:identity/getGroup:getGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AliasId string
- ID of the alias.
- AliasMount stringAccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- AliasName string
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- GroupId string
- ID of the group.
- GroupName string
- Name of the group.
- Namespace string
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- AliasId string
- ID of the alias.
- AliasMount stringAccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- AliasName string
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- GroupId string
- ID of the group.
- GroupName string
- Name of the group.
- Namespace string
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- aliasId String
- ID of the alias.
- aliasMount StringAccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- aliasName String
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- groupId String
- ID of the group.
- groupName String
- Name of the group.
- namespace String
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- aliasId string
- ID of the alias.
- aliasMount stringAccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- aliasName string
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- groupId string
- ID of the group.
- groupName string
- Name of the group.
- namespace string
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- alias_id str
- ID of the alias.
- alias_mount_ straccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- alias_name str
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- group_id str
- ID of the group.
- group_name str
- Name of the group.
- namespace str
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
- aliasId String
- ID of the alias.
- aliasMount StringAccessor 
- Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with - alias_name.- The lookup criteria can be - group_name,- group_id,- alias_id, or a combination of- alias_nameand- alias_mount_accessor.
- aliasName String
- Name of the alias. This should be supplied in conjunction with
alias_mount_accessor.
- groupId String
- ID of the group.
- groupName String
- Name of the group.
- namespace String
- The namespace of the target resource.
The value should not contain leading or trailing forward slashes.
The namespaceis always relative to the provider's configured namespace. Available only for Vault Enterprise.
getGroup Result
The following output properties are available:
- AliasCanonical stringId 
- Canonical ID of the Alias
- AliasCreation stringTime 
- Creation time of the Alias
- AliasId string
- AliasLast stringUpdate Time 
- Last update time of the alias
- AliasMerged List<string>From Canonical Ids 
- List of canonical IDs merged with this alias
- AliasMetadata Dictionary<string, string>
- Arbitrary metadata
- AliasMount stringAccessor 
- AliasMount stringPath 
- Authentication mount path which this alias belongs to
- AliasMount stringType 
- Authentication mount type which this alias belongs to
- AliasName string
- CreationTime string
- Creation timestamp of the group
- DataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- GroupId string
- GroupName string
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdate stringTime 
- Last updated time of the group
- MemberEntity List<string>Ids 
- List of Entity IDs which are members of this group
- MemberGroup List<string>Ids 
- List of Group IDs which are members of this group
- Metadata Dictionary<string, string>
- Arbitrary metadata
- ModifyIndex int
- Modify index of the group
- NamespaceId string
- Namespace of which the group is part of
- ParentGroup List<string>Ids 
- List of Group IDs which are parents of this group.
- Policies List<string>
- List of policies attached to the group
- Type string
- Type of group
- Namespace string
- AliasCanonical stringId 
- Canonical ID of the Alias
- AliasCreation stringTime 
- Creation time of the Alias
- AliasId string
- AliasLast stringUpdate Time 
- Last update time of the alias
- AliasMerged []stringFrom Canonical Ids 
- List of canonical IDs merged with this alias
- AliasMetadata map[string]string
- Arbitrary metadata
- AliasMount stringAccessor 
- AliasMount stringPath 
- Authentication mount path which this alias belongs to
- AliasMount stringType 
- Authentication mount type which this alias belongs to
- AliasName string
- CreationTime string
- Creation timestamp of the group
- DataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- GroupId string
- GroupName string
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdate stringTime 
- Last updated time of the group
- MemberEntity []stringIds 
- List of Entity IDs which are members of this group
- MemberGroup []stringIds 
- List of Group IDs which are members of this group
- Metadata map[string]string
- Arbitrary metadata
- ModifyIndex int
- Modify index of the group
- NamespaceId string
- Namespace of which the group is part of
- ParentGroup []stringIds 
- List of Group IDs which are parents of this group.
- Policies []string
- List of policies attached to the group
- Type string
- Type of group
- Namespace string
- aliasCanonical StringId 
- Canonical ID of the Alias
- aliasCreation StringTime 
- Creation time of the Alias
- aliasId String
- aliasLast StringUpdate Time 
- Last update time of the alias
- aliasMerged List<String>From Canonical Ids 
- List of canonical IDs merged with this alias
- aliasMetadata Map<String,String>
- Arbitrary metadata
- aliasMount StringAccessor 
- aliasMount StringPath 
- Authentication mount path which this alias belongs to
- aliasMount StringType 
- Authentication mount type which this alias belongs to
- aliasName String
- creationTime String
- Creation timestamp of the group
- dataJson String
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- groupId String
- groupName String
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdate StringTime 
- Last updated time of the group
- memberEntity List<String>Ids 
- List of Entity IDs which are members of this group
- memberGroup List<String>Ids 
- List of Group IDs which are members of this group
- metadata Map<String,String>
- Arbitrary metadata
- modifyIndex Integer
- Modify index of the group
- namespaceId String
- Namespace of which the group is part of
- parentGroup List<String>Ids 
- List of Group IDs which are parents of this group.
- policies List<String>
- List of policies attached to the group
- type String
- Type of group
- namespace String
- aliasCanonical stringId 
- Canonical ID of the Alias
- aliasCreation stringTime 
- Creation time of the Alias
- aliasId string
- aliasLast stringUpdate Time 
- Last update time of the alias
- aliasMerged string[]From Canonical Ids 
- List of canonical IDs merged with this alias
- aliasMetadata {[key: string]: string}
- Arbitrary metadata
- aliasMount stringAccessor 
- aliasMount stringPath 
- Authentication mount path which this alias belongs to
- aliasMount stringType 
- Authentication mount type which this alias belongs to
- aliasName string
- creationTime string
- Creation timestamp of the group
- dataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- groupId string
- groupName string
- id string
- The provider-assigned unique ID for this managed resource.
- lastUpdate stringTime 
- Last updated time of the group
- memberEntity string[]Ids 
- List of Entity IDs which are members of this group
- memberGroup string[]Ids 
- List of Group IDs which are members of this group
- metadata {[key: string]: string}
- Arbitrary metadata
- modifyIndex number
- Modify index of the group
- namespaceId string
- Namespace of which the group is part of
- parentGroup string[]Ids 
- List of Group IDs which are parents of this group.
- policies string[]
- List of policies attached to the group
- type string
- Type of group
- namespace string
- alias_canonical_ strid 
- Canonical ID of the Alias
- alias_creation_ strtime 
- Creation time of the Alias
- alias_id str
- alias_last_ strupdate_ time 
- Last update time of the alias
- alias_merged_ Sequence[str]from_ canonical_ ids 
- List of canonical IDs merged with this alias
- alias_metadata Mapping[str, str]
- Arbitrary metadata
- alias_mount_ straccessor 
- alias_mount_ strpath 
- Authentication mount path which this alias belongs to
- alias_mount_ strtype 
- Authentication mount type which this alias belongs to
- alias_name str
- creation_time str
- Creation timestamp of the group
- data_json str
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- group_id str
- group_name str
- id str
- The provider-assigned unique ID for this managed resource.
- last_update_ strtime 
- Last updated time of the group
- member_entity_ Sequence[str]ids 
- List of Entity IDs which are members of this group
- member_group_ Sequence[str]ids 
- List of Group IDs which are members of this group
- metadata Mapping[str, str]
- Arbitrary metadata
- modify_index int
- Modify index of the group
- namespace_id str
- Namespace of which the group is part of
- parent_group_ Sequence[str]ids 
- List of Group IDs which are parents of this group.
- policies Sequence[str]
- List of policies attached to the group
- type str
- Type of group
- namespace str
- aliasCanonical StringId 
- Canonical ID of the Alias
- aliasCreation StringTime 
- Creation time of the Alias
- aliasId String
- aliasLast StringUpdate Time 
- Last update time of the alias
- aliasMerged List<String>From Canonical Ids 
- List of canonical IDs merged with this alias
- aliasMetadata Map<String>
- Arbitrary metadata
- aliasMount StringAccessor 
- aliasMount StringPath 
- Authentication mount path which this alias belongs to
- aliasMount StringType 
- Authentication mount type which this alias belongs to
- aliasName String
- creationTime String
- Creation timestamp of the group
- dataJson String
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- groupId String
- groupName String
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdate StringTime 
- Last updated time of the group
- memberEntity List<String>Ids 
- List of Entity IDs which are members of this group
- memberGroup List<String>Ids 
- List of Group IDs which are members of this group
- metadata Map<String>
- Arbitrary metadata
- modifyIndex Number
- Modify index of the group
- namespaceId String
- Namespace of which the group is part of
- parentGroup List<String>Ids 
- List of Group IDs which are parents of this group.
- policies List<String>
- List of policies attached to the group
- type String
- Type of group
- namespace String
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the vaultTerraform Provider.