1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. getTarget
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    Get target data source

    Using getTarget

    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 getTarget(args: GetTargetArgs, opts?: InvokeOptions): Promise<GetTargetResult>
    function getTargetOutput(args: GetTargetOutputArgs, opts?: InvokeOptions): Output<GetTargetResult>
    def get_target(id: Optional[str] = None,
                   name: Optional[str] = None,
                   show_versions: Optional[bool] = None,
                   opts: Optional[InvokeOptions] = None) -> GetTargetResult
    def get_target_output(id: pulumi.Input[Optional[str]] = None,
                   name: pulumi.Input[Optional[str]] = None,
                   show_versions: pulumi.Input[Optional[bool]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetTargetResult]
    func GetTarget(ctx *Context, args *GetTargetArgs, opts ...InvokeOption) (*GetTargetResult, error)
    func GetTargetOutput(ctx *Context, args *GetTargetOutputArgs, opts ...InvokeOption) GetTargetResultOutput

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

    public static class GetTarget 
    {
        public static Task<GetTargetResult> InvokeAsync(GetTargetArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetResult> Invoke(GetTargetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetResult> getTarget(GetTargetArgs args, InvokeOptions options)
    public static Output<GetTargetResult> getTarget(GetTargetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: akeyless:index/getTarget:getTarget
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Target name
    Id string
    The ID of this resource.
    ShowVersions bool
    Include all target versions in reply
    Name string
    Target name
    Id string
    The ID of this resource.
    ShowVersions bool
    Include all target versions in reply
    name String
    Target name
    id String
    The ID of this resource.
    showVersions Boolean
    Include all target versions in reply
    name string
    Target name
    id string
    The ID of this resource.
    showVersions boolean
    Include all target versions in reply
    name str
    Target name
    id str
    The ID of this resource.
    show_versions bool
    Include all target versions in reply
    name String
    Target name
    id String
    The ID of this resource.
    showVersions Boolean
    Include all target versions in reply

    getTarget Result

    The following output properties are available:

    AccessDate string
    Access date of the target
    AccessDateDisplay string
    Access date display of the target
    AccessRequestStatus string
    Access request status of the target
    Attributes Dictionary<string, string>
    Target attributes
    ClientPermissions List<string>
    CreationDate string
    Creation date of the target
    Description string
    Id string
    The ID of this resource.
    IsAccessRequestEnabled bool
    Whether access request is enabled for the target
    LastVersion double
    ModificationDate string
    Modification date of the target
    Name string
    Target name
    ParentTargetName string
    Parent target name
    ProtectionKeyName string
    TargetDetails string
    Target details
    TargetId double
    TargetItemsAssoc string
    TargetName string
    TargetSubType string
    Target sub type
    TargetType string
    TargetVersions string
    WithCustomerFragment bool
    ShowVersions bool
    Include all target versions in reply
    AccessDate string
    Access date of the target
    AccessDateDisplay string
    Access date display of the target
    AccessRequestStatus string
    Access request status of the target
    Attributes map[string]string
    Target attributes
    ClientPermissions []string
    CreationDate string
    Creation date of the target
    Description string
    Id string
    The ID of this resource.
    IsAccessRequestEnabled bool
    Whether access request is enabled for the target
    LastVersion float64
    ModificationDate string
    Modification date of the target
    Name string
    Target name
    ParentTargetName string
    Parent target name
    ProtectionKeyName string
    TargetDetails string
    Target details
    TargetId float64
    TargetItemsAssoc string
    TargetName string
    TargetSubType string
    Target sub type
    TargetType string
    TargetVersions string
    WithCustomerFragment bool
    ShowVersions bool
    Include all target versions in reply
    accessDate String
    Access date of the target
    accessDateDisplay String
    Access date display of the target
    accessRequestStatus String
    Access request status of the target
    attributes Map<String,String>
    Target attributes
    clientPermissions List<String>
    creationDate String
    Creation date of the target
    description String
    id String
    The ID of this resource.
    isAccessRequestEnabled Boolean
    Whether access request is enabled for the target
    lastVersion Double
    modificationDate String
    Modification date of the target
    name String
    Target name
    parentTargetName String
    Parent target name
    protectionKeyName String
    targetDetails String
    Target details
    targetId Double
    targetItemsAssoc String
    targetName String
    targetSubType String
    Target sub type
    targetType String
    targetVersions String
    withCustomerFragment Boolean
    showVersions Boolean
    Include all target versions in reply
    accessDate string
    Access date of the target
    accessDateDisplay string
    Access date display of the target
    accessRequestStatus string
    Access request status of the target
    attributes {[key: string]: string}
    Target attributes
    clientPermissions string[]
    creationDate string
    Creation date of the target
    description string
    id string
    The ID of this resource.
    isAccessRequestEnabled boolean
    Whether access request is enabled for the target
    lastVersion number
    modificationDate string
    Modification date of the target
    name string
    Target name
    parentTargetName string
    Parent target name
    protectionKeyName string
    targetDetails string
    Target details
    targetId number
    targetItemsAssoc string
    targetName string
    targetSubType string
    Target sub type
    targetType string
    targetVersions string
    withCustomerFragment boolean
    showVersions boolean
    Include all target versions in reply
    access_date str
    Access date of the target
    access_date_display str
    Access date display of the target
    access_request_status str
    Access request status of the target
    attributes Mapping[str, str]
    Target attributes
    client_permissions Sequence[str]
    creation_date str
    Creation date of the target
    description str
    id str
    The ID of this resource.
    is_access_request_enabled bool
    Whether access request is enabled for the target
    last_version float
    modification_date str
    Modification date of the target
    name str
    Target name
    parent_target_name str
    Parent target name
    protection_key_name str
    target_details str
    Target details
    target_id float
    target_items_assoc str
    target_name str
    target_sub_type str
    Target sub type
    target_type str
    target_versions str
    with_customer_fragment bool
    show_versions bool
    Include all target versions in reply
    accessDate String
    Access date of the target
    accessDateDisplay String
    Access date display of the target
    accessRequestStatus String
    Access request status of the target
    attributes Map<String>
    Target attributes
    clientPermissions List<String>
    creationDate String
    Creation date of the target
    description String
    id String
    The ID of this resource.
    isAccessRequestEnabled Boolean
    Whether access request is enabled for the target
    lastVersion Number
    modificationDate String
    Modification date of the target
    name String
    Target name
    parentTargetName String
    Parent target name
    protectionKeyName String
    targetDetails String
    Target details
    targetId Number
    targetItemsAssoc String
    targetName String
    targetSubType String
    Target sub type
    targetType String
    targetVersions String
    withCustomerFragment Boolean
    showVersions Boolean
    Include all target versions in reply

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.