1. Packages
  2. Akeyless Provider
  3. API Docs
  4. getTarget
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

akeyless.getTarget

Explore with Pulumi AI

akeyless logo
akeyless 1.9.0 published on Monday, Apr 14, 2025 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: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   show_versions: Optional[pulumi.Input[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:

    ClientPermissions List<string>
    Description string
    Id string
    The ID of this resource.
    LastVersion double
    Name string
    Target name
    ProtectionKeyName string
    TargetId double
    TargetItemsAssoc string
    TargetName string
    TargetType string
    TargetVersions string
    WithCustomerFragment bool
    ShowVersions bool
    Include all target versions in reply
    ClientPermissions []string
    Description string
    Id string
    The ID of this resource.
    LastVersion float64
    Name string
    Target name
    ProtectionKeyName string
    TargetId float64
    TargetItemsAssoc string
    TargetName string
    TargetType string
    TargetVersions string
    WithCustomerFragment bool
    ShowVersions bool
    Include all target versions in reply
    clientPermissions List<String>
    description String
    id String
    The ID of this resource.
    lastVersion Double
    name String
    Target name
    protectionKeyName String
    targetId Double
    targetItemsAssoc String
    targetName String
    targetType String
    targetVersions String
    withCustomerFragment Boolean
    showVersions Boolean
    Include all target versions in reply
    clientPermissions string[]
    description string
    id string
    The ID of this resource.
    lastVersion number
    name string
    Target name
    protectionKeyName string
    targetId number
    targetItemsAssoc string
    targetName string
    targetType string
    targetVersions string
    withCustomerFragment boolean
    showVersions boolean
    Include all target versions in reply
    client_permissions Sequence[str]
    description str
    id str
    The ID of this resource.
    last_version float
    name str
    Target name
    protection_key_name str
    target_id float
    target_items_assoc str
    target_name str
    target_type str
    target_versions str
    with_customer_fragment bool
    show_versions bool
    Include all target versions in reply
    clientPermissions List<String>
    description String
    id String
    The ID of this resource.
    lastVersion Number
    name String
    Target name
    protectionKeyName String
    targetId Number
    targetItemsAssoc String
    targetName String
    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.
    akeyless logo
    akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community