---
title: "POST /target-list"
method: POST
path: "/target-list"
tags: ["v2"]
---

# POST /target-list

`POST /target-list`

## Request body

- TargetList — targetList is a command that returns a list of targets
  - `filter` string — Filter by auth method name or part of it
  - `json` boolean — Set output format to JSON
  - `pagination-token` string — Next page reference
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `type` string[] — 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 cloudflare ldap github chef web salesforce postgres]
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

targetListResponse wraps response body.

- ListTargetsOutput
  - `next_page` string
  - `targets` Target[]
    - `access_date` string, date-time
    - `access_date_display` string
    - `access_request_status` string
    - `attributes` object — this is not "omitempty" since an empty value causes no update while an empty map will clear the attributes
    - `client_permissions` string[]
    - `comment` string
    - `creation_date` string, date-time
    - `delete_protection` boolean
    - `is_access_request_enabled` boolean
    - `last_version` integer
    - `locking_info` LockingInfo
      - `actions` string[]
      - `expire_at` integer
      - `locked_by` string
      - `unique_identifier` string
    - `modification_date` string, date-time
    - `parent_target_name` string
    - `protection_key_name` string
    - `target_details` string
    - `target_id` integer
    - `target_items_assoc` TargetItemAssociation[]
      - `assoc_id` string
      - `attributes` object
      - `cluster_id` integer
      - `item_id` integer
      - `item_name` string
      - `item_type` string
      - `relationship` string
    - `target_name` string
    - `target_sub_type` string
    - `target_type` string
    - `target_versions` ItemVersion[]
      - `access_date` string, date-time
      - `access_date_display` string
      - `access_id` string
      - `certificate_version_info` CertificateVersionInfo
        - `not_after` string, date-time
        - `not_before` string, date-time
        - `status` string
      - `creation_date` string, date-time
      - `customer_fragment_id` string
      - `deletion_date` string, date-time
      - `item_version_state` string — ItemState defines the different states an Item can be in
      - `modification_date` string, date-time
      - `protection_key_name` string
      - `unique_identifier` string
      - `version` integer
      - `with_customer_fragment` boolean
    - `with_customer_fragment` boolean

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
