vault.identity.getEntity
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const entity = vault.identity.getEntity({
    entityName: "entity_12345",
});
import pulumi
import pulumi_vault as vault
entity = vault.identity.get_entity(entity_name="entity_12345")
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.LookupEntity(ctx, &identity.LookupEntityArgs{
			EntityName: pulumi.StringRef("entity_12345"),
		}, 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 entity = Vault.Identity.GetEntity.Invoke(new()
    {
        EntityName = "entity_12345",
    });
});
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.GetEntityArgs;
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 entity = IdentityFunctions.getEntity(GetEntityArgs.builder()
            .entityName("entity_12345")
            .build());
    }
}
variables:
  entity:
    fn::invoke:
      function: vault:identity:getEntity
      arguments:
        entityName: entity_12345
Required Vault Capabilities
Use of this resource requires the update capability on /identity/lookup/entity.
Using getEntity
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 getEntity(args: GetEntityArgs, opts?: InvokeOptions): Promise<GetEntityResult>
function getEntityOutput(args: GetEntityOutputArgs, opts?: InvokeOptions): Output<GetEntityResult>def get_entity(alias_id: Optional[str] = None,
               alias_mount_accessor: Optional[str] = None,
               alias_name: Optional[str] = None,
               entity_id: Optional[str] = None,
               entity_name: Optional[str] = None,
               namespace: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetEntityResult
def get_entity_output(alias_id: Optional[pulumi.Input[str]] = None,
               alias_mount_accessor: Optional[pulumi.Input[str]] = None,
               alias_name: Optional[pulumi.Input[str]] = None,
               entity_id: Optional[pulumi.Input[str]] = None,
               entity_name: Optional[pulumi.Input[str]] = None,
               namespace: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetEntityResult]func LookupEntity(ctx *Context, args *LookupEntityArgs, opts ...InvokeOption) (*LookupEntityResult, error)
func LookupEntityOutput(ctx *Context, args *LookupEntityOutputArgs, opts ...InvokeOption) LookupEntityResultOutput> Note: This function is named LookupEntity in the Go SDK.
public static class GetEntity 
{
    public static Task<GetEntityResult> InvokeAsync(GetEntityArgs args, InvokeOptions? opts = null)
    public static Output<GetEntityResult> Invoke(GetEntityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEntityResult> getEntity(GetEntityArgs args, InvokeOptions options)
public static Output<GetEntityResult> getEntity(GetEntityArgs args, InvokeOptions options)
fn::invoke:
  function: vault:identity/getEntity:getEntity
  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 - entity_name,- entity_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.
- EntityId string
- ID of the entity.
- EntityName string
- Name of the entity.
- 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 - entity_name,- entity_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.
- EntityId string
- ID of the entity.
- EntityName string
- Name of the entity.
- 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 - entity_name,- entity_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.
- entityId String
- ID of the entity.
- entityName String
- Name of the entity.
- 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 - entity_name,- entity_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.
- entityId string
- ID of the entity.
- entityName string
- Name of the entity.
- 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 - entity_name,- entity_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.
- entity_id str
- ID of the entity.
- entity_name str
- Name of the entity.
- 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 - entity_name,- entity_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.
- entityId String
- ID of the entity.
- entityName String
- Name of the entity.
- 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.
getEntity Result
The following output properties are available:
- AliasId string
- AliasMount stringAccessor 
- AliasName string
- Aliases
List<GetEntity Alias> 
- A list of entity alias. Structure is documented below.
- CreationTime string
- Creation time of the Alias
- DataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- DirectGroup List<string>Ids 
- List of Group IDs of which the entity is directly a member of
- Disabled bool
- Whether the entity is disabled
- EntityId string
- EntityName string
- GroupIds List<string>
- List of all Group IDs of which the entity is a member of
- Id string
- The provider-assigned unique ID for this managed resource.
- InheritedGroup List<string>Ids 
- List of all Group IDs of which the entity is a member of transitively
- LastUpdate stringTime 
- Last update time of the alias
- MergedEntity List<string>Ids 
- Other entity IDs which is merged with this entity
- Metadata Dictionary<string, string>
- Arbitrary metadata
- NamespaceId string
- Namespace of which the entity is part of
- Policies List<string>
- List of policies attached to the entity
- Namespace string
- AliasId string
- AliasMount stringAccessor 
- AliasName string
- Aliases
[]GetEntity Alias Type 
- A list of entity alias. Structure is documented below.
- CreationTime string
- Creation time of the Alias
- DataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- DirectGroup []stringIds 
- List of Group IDs of which the entity is directly a member of
- Disabled bool
- Whether the entity is disabled
- EntityId string
- EntityName string
- GroupIds []string
- List of all Group IDs of which the entity is a member of
- Id string
- The provider-assigned unique ID for this managed resource.
- InheritedGroup []stringIds 
- List of all Group IDs of which the entity is a member of transitively
- LastUpdate stringTime 
- Last update time of the alias
- MergedEntity []stringIds 
- Other entity IDs which is merged with this entity
- Metadata map[string]string
- Arbitrary metadata
- NamespaceId string
- Namespace of which the entity is part of
- Policies []string
- List of policies attached to the entity
- Namespace string
- aliasId String
- aliasMount StringAccessor 
- aliasName String
- aliases
List<GetEntity Alias> 
- A list of entity alias. Structure is documented below.
- creationTime String
- Creation time of the Alias
- dataJson String
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- directGroup List<String>Ids 
- List of Group IDs of which the entity is directly a member of
- disabled Boolean
- Whether the entity is disabled
- entityId String
- entityName String
- groupIds List<String>
- List of all Group IDs of which the entity is a member of
- id String
- The provider-assigned unique ID for this managed resource.
- inheritedGroup List<String>Ids 
- List of all Group IDs of which the entity is a member of transitively
- lastUpdate StringTime 
- Last update time of the alias
- mergedEntity List<String>Ids 
- Other entity IDs which is merged with this entity
- metadata Map<String,String>
- Arbitrary metadata
- namespaceId String
- Namespace of which the entity is part of
- policies List<String>
- List of policies attached to the entity
- namespace String
- aliasId string
- aliasMount stringAccessor 
- aliasName string
- aliases
GetEntity Alias[] 
- A list of entity alias. Structure is documented below.
- creationTime string
- Creation time of the Alias
- dataJson string
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- directGroup string[]Ids 
- List of Group IDs of which the entity is directly a member of
- disabled boolean
- Whether the entity is disabled
- entityId string
- entityName string
- groupIds string[]
- List of all Group IDs of which the entity is a member of
- id string
- The provider-assigned unique ID for this managed resource.
- inheritedGroup string[]Ids 
- List of all Group IDs of which the entity is a member of transitively
- lastUpdate stringTime 
- Last update time of the alias
- mergedEntity string[]Ids 
- Other entity IDs which is merged with this entity
- metadata {[key: string]: string}
- Arbitrary metadata
- namespaceId string
- Namespace of which the entity is part of
- policies string[]
- List of policies attached to the entity
- namespace string
- alias_id str
- alias_mount_ straccessor 
- alias_name str
- aliases
Sequence[GetEntity Alias] 
- A list of entity alias. Structure is documented below.
- creation_time str
- Creation time of the Alias
- data_json str
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- direct_group_ Sequence[str]ids 
- List of Group IDs of which the entity is directly a member of
- disabled bool
- Whether the entity is disabled
- entity_id str
- entity_name str
- group_ids Sequence[str]
- List of all Group IDs of which the entity is a member of
- id str
- The provider-assigned unique ID for this managed resource.
- inherited_group_ Sequence[str]ids 
- List of all Group IDs of which the entity is a member of transitively
- last_update_ strtime 
- Last update time of the alias
- merged_entity_ Sequence[str]ids 
- Other entity IDs which is merged with this entity
- metadata Mapping[str, str]
- Arbitrary metadata
- namespace_id str
- Namespace of which the entity is part of
- policies Sequence[str]
- List of policies attached to the entity
- namespace str
- aliasId String
- aliasMount StringAccessor 
- aliasName String
- aliases List<Property Map>
- A list of entity alias. Structure is documented below.
- creationTime String
- Creation time of the Alias
- dataJson String
- A string containing the full data payload retrieved from Vault, serialized in JSON format.
- directGroup List<String>Ids 
- List of Group IDs of which the entity is directly a member of
- disabled Boolean
- Whether the entity is disabled
- entityId String
- entityName String
- groupIds List<String>
- List of all Group IDs of which the entity is a member of
- id String
- The provider-assigned unique ID for this managed resource.
- inheritedGroup List<String>Ids 
- List of all Group IDs of which the entity is a member of transitively
- lastUpdate StringTime 
- Last update time of the alias
- mergedEntity List<String>Ids 
- Other entity IDs which is merged with this entity
- metadata Map<String>
- Arbitrary metadata
- namespaceId String
- Namespace of which the entity is part of
- policies List<String>
- List of policies attached to the entity
- namespace String
Supporting Types
GetEntityAlias  
- CanonicalId string
- Canonical ID of the Alias
- CreationTime string
- Creation time of the Alias
- Id string
- ID of the alias
- LastUpdate stringTime 
- Last update time of the alias
- MergedFrom List<string>Canonical Ids 
- List of canonical IDs merged with this alias
- Metadata Dictionary<string, string>
- Arbitrary metadata
- MountAccessor string
- Authentication mount acccessor which this alias belongs to
- MountPath string
- Authentication mount path which this alias belongs to
- MountType string
- Authentication mount type which this alias belongs to
- Name string
- Name of the alias
- CanonicalId string
- Canonical ID of the Alias
- CreationTime string
- Creation time of the Alias
- Id string
- ID of the alias
- LastUpdate stringTime 
- Last update time of the alias
- MergedFrom []stringCanonical Ids 
- List of canonical IDs merged with this alias
- Metadata map[string]string
- Arbitrary metadata
- MountAccessor string
- Authentication mount acccessor which this alias belongs to
- MountPath string
- Authentication mount path which this alias belongs to
- MountType string
- Authentication mount type which this alias belongs to
- Name string
- Name of the alias
- canonicalId String
- Canonical ID of the Alias
- creationTime String
- Creation time of the Alias
- id String
- ID of the alias
- lastUpdate StringTime 
- Last update time of the alias
- mergedFrom List<String>Canonical Ids 
- List of canonical IDs merged with this alias
- metadata Map<String,String>
- Arbitrary metadata
- mountAccessor String
- Authentication mount acccessor which this alias belongs to
- mountPath String
- Authentication mount path which this alias belongs to
- mountType String
- Authentication mount type which this alias belongs to
- name String
- Name of the alias
- canonicalId string
- Canonical ID of the Alias
- creationTime string
- Creation time of the Alias
- id string
- ID of the alias
- lastUpdate stringTime 
- Last update time of the alias
- mergedFrom string[]Canonical Ids 
- List of canonical IDs merged with this alias
- metadata {[key: string]: string}
- Arbitrary metadata
- mountAccessor string
- Authentication mount acccessor which this alias belongs to
- mountPath string
- Authentication mount path which this alias belongs to
- mountType string
- Authentication mount type which this alias belongs to
- name string
- Name of the alias
- canonical_id str
- Canonical ID of the Alias
- creation_time str
- Creation time of the Alias
- id str
- ID of the alias
- last_update_ strtime 
- Last update time of the alias
- merged_from_ Sequence[str]canonical_ ids 
- List of canonical IDs merged with this alias
- metadata Mapping[str, str]
- Arbitrary metadata
- mount_accessor str
- Authentication mount acccessor which this alias belongs to
- mount_path str
- Authentication mount path which this alias belongs to
- mount_type str
- Authentication mount type which this alias belongs to
- name str
- Name of the alias
- canonicalId String
- Canonical ID of the Alias
- creationTime String
- Creation time of the Alias
- id String
- ID of the alias
- lastUpdate StringTime 
- Last update time of the alias
- mergedFrom List<String>Canonical Ids 
- List of canonical IDs merged with this alias
- metadata Map<String>
- Arbitrary metadata
- mountAccessor String
- Authentication mount acccessor which this alias belongs to
- mountPath String
- Authentication mount path which this alias belongs to
- mountType String
- Authentication mount type which this alias belongs to
- name String
- Name of the alias
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the vaultTerraform Provider.