ZITADEL Docs
APIsCore ResourcesV2Action

List targets

List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination.

Required permission:

  • action.target.read
POST
/v2/actions/targets/search

Request Body

application/json

pagination?|

List limitations and ordering.

sortingColumn?|

The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.

filters?array<|>

Define the criteria to query for.

[key: string]?never

Response Body

application/json

curl -X POST "https://loading/v2/actions/targets/search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "totalResult": 0,
    "appliedLimit": 0
  },
  "targets": [
    {
      "id": "string",
      "creationDate": "2023-01-15T01:30:15.01Z",
      "changeDate": "2023-01-15T01:30:15.01Z",
      "name": "string",
      "timeout": "string",
      "endpoint": "string",
      "signingKey": "string",
      "payloadType": "PAYLOAD_TYPE_UNSPECIFIED",
      "restAsync": {}
    }
  ]
}

Was this page helpful?