Akeyless List Targets API

The List Targets API from Akeyless — 1 operation(s) for list targets.

Operations 1

POST /list-targets List targets #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/akeyless:akeyless-list-targets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

akeyless-list-targets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@akeyless.io
    name: Akeyless
    url: http://akeyless.io
  description: The purpose of this application is to provide access to Akeyless API.
  title: Akeyless List Targets API
  version: '2.0'
servers:
- url: https://api.akeyless.io/
tags:
- name: List Targets
paths:
  /list-targets:
    post:
      operationId: listTargets
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/listTargets'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTargetsOutput'
          description: listTargetsResponse wraps response body.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JSONError'
          description: 'errorResponse wraps any error to return it as a JSON object with one "error"

            field.'
      tags:
      - List Targets
      x-codegen-request-body-name: body
      summary: List targets
      x-summary-source: derived
components:
  schemas:
    ListTargetsOutput:
      example:
        next_page: next_page
        targets:
        - credentials_less: true
          target_items_assoc:
          - cluster_id: 1
            assoc_id: assoc_id
            item_type: item_type
            attributes:
              key: attributes
            item_name: item_name
            relationship: relationship
          - cluster_id: 1
            assoc_id: assoc_id
            item_type: item_type
            attributes:
              key: attributes
            item_name: item_name
            relationship: relationship
          target_name: target_name
          access_date: 2000-01-23 04:56:07+00:00
          target_type: target_type
          target_id: 6
          creation_date: 2000-01-23 04:56:07+00:00
          is_access_request_enabled: true
          last_version: 0
          client_permissions:
          - client_permissions
          - client_permissions
          with_customer_fragment: true
          target_versions:
          - item_version_state: item_version_state
            with_customer_fragment: true
            access_date: 2000-01-23 04:56:07+00:00
            deletion_date: 2000-01-23 04:56:07+00:00
            modification_date: 2000-01-23 04:56:07+00:00
            protection_key_name: protection_key_name
            creation_date: 2000-01-23 04:56:07+00:00
            version: 3
            customer_fragment_id: customer_fragment_id
          - item_version_state: item_version_state
            with_customer_fragment: true
            access_date: 2000-01-23 04:56:07+00:00
            deletion_date: 2000-01-23 04:56:07+00:00
            modification_date: 2000-01-23 04:56:07+00:00
            protection_key_name: protection_key_name
            creation_date: 2000-01-23 04:56:07+00:00
            version: 3
            customer_fragment_id: customer_fragment_id
          modification_date: 2000-01-23 04:56:07+00:00
          attributes:
            key: '{}'
          comment: comment
          protection_key_name: protection_key_name
          access_request_status: access_request_status
        - credentials_less: true
          target_items_assoc:
          - cluster_id: 1
            assoc_id: assoc_id
            item_type: item_type
            attributes:
              key: attributes
            item_name: item_name
            relationship: relationship
          - cluster_id: 1
            assoc_id: assoc_id
            item_type: item_type
            attributes:
              key: attributes
            item_name: item_name
            relationship: relationship
          target_name: target_name
          access_date: 2000-01-23 04:56:07+00:00
          target_type: target_type
          target_id: 6
          creation_date: 2000-01-23 04:56:07+00:00
          is_access_request_enabled: true
          last_version: 0
          client_permissions:
          - client_permissions
          - client_permissions
          with_customer_fragment: true
          target_versions:
          - item_version_state: item_version_state
            with_customer_fragment: true
            access_date: 2000-01-23 04:56:07+00:00
            deletion_date: 2000-01-23 04:56:07+00:00
            modification_date: 2000-01-23 04:56:07+00:00
            protection_key_name: protection_key_name
            creation_date: 2000-01-23 04:56:07+00:00
            version: 3
            customer_fragment_id: customer_fragment_id
          - item_version_state: item_version_state
            with_customer_fragment: true
            access_date: 2000-01-23 04:56:07+00:00
            deletion_date: 2000-01-23 04:56:07+00:00
            modification_date: 2000-01-23 04:56:07+00:00
            protection_key_name: protection_key_name
            creation_date: 2000-01-23 04:56:07+00:00
            version: 3
            customer_fragment_id: customer_fragment_id
          modification_date: 2000-01-23 04:56:07+00:00
          attributes:
            key: '{}'
          comment: comment
          protection_key_name: protection_key_name
          access_request_status: access_request_status
      properties:
        next_page:
          type: string
          x-go-name: NextPage
        targets:
          items:
            $ref: '#/components/schemas/Target'
          type: array
          x-go-name: Targets
      title: ListTargetsOutput is a list of targets.
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
    listTargets:
      properties:
        filter:
          description: Filter by auth method name or part of it
          type: string
          x-go-name: Filter
        json:
          description: Set output format to JSON
          type: boolean
          x-go-name: Json
        pagination-token:
          description: Next page reference
          type: string
          x-go-name: PaginationToken
        token:
          description: Authentication token (see `/auth` and `/configure`)
          type: string
          x-go-name: Profile
        type:
          description: 'The target types list . In case it is empty, all

            types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres]'
          items:
            type: string
          type: array
          x-go-name: Types
        uid-token:
          description: The universal identity token, Required only for universal_identity authentication
          type: string
          x-go-name: UIDToken
      title: listTargets is a command that returns a list of targets.
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/client/commands
    TargetItemAssociation:
      description: 'TargetItemAssociation includes details of an association between a target

        and an item.'
      example:
        cluster_id: 1
        assoc_id: assoc_id
        item_type: item_type
        attributes:
          key: attributes
        item_name: item_name
        relationship: relationship
      properties:
        assoc_id:
          type: string
          x-go-name: AssociationID
        attributes:
          additionalProperties:
            type: string
          type: object
          x-go-name: Attributes
        cluster_id:
          format: int64
          type: integer
          x-go-name: GWClusterID
        item_name:
          type: string
          x-go-name: ItemName
        item_type:
          title: ItemType defines types supported by AKEYLESS.
          type: string
          x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
        relationship:
          type: string
          x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
    Target:
      example:
        credentials_less: true
        target_items_assoc:
        - cluster_id: 1
          assoc_id: assoc_id
          item_type: item_type
          attributes:
            key: attributes
          item_name: item_name
          relationship: relationship
        - cluster_id: 1
          assoc_id: assoc_id
          item_type: item_type
          attributes:
            key: attributes
          item_name: item_name
          relationship: relationship
        target_name: target_name
        access_date: 2000-01-23 04:56:07+00:00
        target_type: target_type
        target_id: 6
        creation_date: 2000-01-23 04:56:07+00:00
        is_access_request_enabled: true
        last_version: 0
        client_permissions:
        - client_permissions
        - client_permissions
        with_customer_fragment: true
        target_versions:
        - item_version_state: item_version_state
          with_customer_fragment: true
          access_date: 2000-01-23 04:56:07+00:00
          deletion_date: 2000-01-23 04:56:07+00:00
          modification_date: 2000-01-23 04:56:07+00:00
          protection_key_name: protection_key_name
          creation_date: 2000-01-23 04:56:07+00:00
          version: 3
          customer_fragment_id: customer_fragment_id
        - item_version_state: item_version_state
          with_customer_fragment: true
          access_date: 2000-01-23 04:56:07+00:00
          deletion_date: 2000-01-23 04:56:07+00:00
          modification_date: 2000-01-23 04:56:07+00:00
          protection_key_name: protection_key_name
          creation_date: 2000-01-23 04:56:07+00:00
          version: 3
          customer_fragment_id: customer_fragment_id
        modification_date: 2000-01-23 04:56:07+00:00
        attributes:
          key: '{}'
        comment: comment
        protection_key_name: protection_key_name
        access_request_status: access_request_status
      properties:
        access_date:
          format: date-time
          type: string
          x-go-name: AccessDate
        access_request_status:
          type: string
          x-go-name: AccessRequestStatus
        attributes:
          additionalProperties:
            type: object
          description: 'this is not "omitempty" since an empty value causes no update

            while an empty map will clear the attributes'
          type: object
          x-go-name: Attributes
        client_permissions:
          items:
            type: string
          type: array
          x-go-name: ClientPermissions
        comment:
          type: string
          x-go-name: Comment
        creation_date:
          format: date-time
          type: string
          x-go-name: CreationDate
        credentials_less:
          type: boolean
          x-go-name: CredentialsLess
        is_access_request_enabled:
          type: boolean
          x-go-name: IsAccessRequestEnabled
        last_version:
          format: int32
          type: integer
          x-go-name: LastVersion
        modification_date:
          format: date-time
          type: string
          x-go-name: ModificationDate
        protection_key_name:
          type: string
          x-go-name: ProtectionKeyName
        target_id:
          format: int64
          type: integer
          x-go-name: TargetID
        target_items_assoc:
          items:
            $ref: '#/components/schemas/TargetItemAssociation'
          type: array
          x-go-name: TargetItemsAssoc
        target_name:
          type: string
          x-go-name: TargetName
        target_type:
          title: TargetType ..
          type: string
          x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
        target_versions:
          items:
            $ref: '#/components/schemas/ItemVersion'
          type: array
          x-go-name: TargetVersions
        with_customer_fragment:
          type: boolean
          x-go-name: WithCustomerFragment
      title: Target includes target details.
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
    ItemVersion:
      example:
        item_version_state: item_version_state
        with_customer_fragment: true
        access_date: 2000-01-23 04:56:07+00:00
        deletion_date: 2000-01-23 04:56:07+00:00
        modification_date: 2000-01-23 04:56:07+00:00
        protection_key_name: protection_key_name
        creation_date: 2000-01-23 04:56:07+00:00
        version: 3
        customer_fragment_id: customer_fragment_id
      properties:
        access_date:
          format: date-time
          type: string
          x-go-name: AccessDate
        creation_date:
          format: date-time
          type: string
          x-go-name: CreationDate
        customer_fragment_id:
          type: string
          x-go-name: CustomerFragmentId
        deletion_date:
          format: date-time
          type: string
          x-go-name: DeletionDate
        item_version_state:
          description: ItemState defines the different states an Item can be in
          type: string
          x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
        modification_date:
          format: date-time
          type: string
          x-go-name: ModificationDate
        protection_key_name:
          type: string
          x-go-name: ProtectionKeyName
        version:
          format: int32
          type: integer
          x-go-name: Version
        with_customer_fragment:
          type: boolean
          x-go-name: WithCustomerFragment
      title: ItemVersion describes an item version in AKEYLESS.
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/infra/types
    JSONError:
      properties:
        error:
          type: string
          x-go-name: Err
      title: JSONError wraps an error with JSON object.
      type: object
      x-go-package: akeyless.io/akeyless-main-repo/go/src/client