List targets
POST/v2beta/actions/targets/_search
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
Required feature flag:
actions
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Array [
]
pagination
object
List limitations and ordering.
Starting point for retrieval, in combination of offset used to query a set list of objects.
limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.
Possible values: [TARGET_FIELD_NAME_UNSPECIFIED
, TARGET_FIELD_NAME_ID
, TARGET_FIELD_NAME_CREATED_DATE
, TARGET_FIELD_NAME_CHANGED_DATE
, TARGET_FIELD_NAME_NAME
, TARGET_FIELD_NAME_TARGET_TYPE
, TARGET_FIELD_NAME_URL
, TARGET_FIELD_NAME_TIMEOUT
, TARGET_FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: "TARGET_FIELD_NAME_CREATION_DATE"
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
object[]
Define the criteria to query for.
targetNameFilter
object
Possible values: <= 200 characters
Defines the name of the target to query for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
, TEXT_FILTER_METHOD_CONTAINS_IGNORE_CASE
, TEXT_FILTER_METHOD_ENDS_WITH
, TEXT_FILTER_METHOD_ENDS_WITH_IGNORE_CASE
]
Default value: TEXT_FILTER_METHOD_EQUALS
defines which text equality method is used
inTargetIdsFilter
object
the ids of the targets to include
Body
required
Array [
]
pagination
object
List limitations and ordering.
Starting point for retrieval, in combination of offset used to query a set list of objects.
limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.
Possible values: [TARGET_FIELD_NAME_UNSPECIFIED
, TARGET_FIELD_NAME_ID
, TARGET_FIELD_NAME_CREATED_DATE
, TARGET_FIELD_NAME_CHANGED_DATE
, TARGET_FIELD_NAME_NAME
, TARGET_FIELD_NAME_TARGET_TYPE
, TARGET_FIELD_NAME_URL
, TARGET_FIELD_NAME_TIMEOUT
, TARGET_FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: "TARGET_FIELD_NAME_CREATION_DATE"
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
object[]
Define the criteria to query for.
targetNameFilter
object
Possible values: <= 200 characters
Defines the name of the target to query for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
, TEXT_FILTER_METHOD_CONTAINS_IGNORE_CASE
, TEXT_FILTER_METHOD_ENDS_WITH
, TEXT_FILTER_METHOD_ENDS_WITH_IGNORE_CASE
]
Default value: TEXT_FILTER_METHOD_EQUALS
defines which text equality method is used
inTargetIdsFilter
object
the ids of the targets to include
Body
required
Array [
]
pagination
object
List limitations and ordering.
Starting point for retrieval, in combination of offset used to query a set list of objects.
limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.
Possible values: [TARGET_FIELD_NAME_UNSPECIFIED
, TARGET_FIELD_NAME_ID
, TARGET_FIELD_NAME_CREATED_DATE
, TARGET_FIELD_NAME_CHANGED_DATE
, TARGET_FIELD_NAME_NAME
, TARGET_FIELD_NAME_TARGET_TYPE
, TARGET_FIELD_NAME_URL
, TARGET_FIELD_NAME_TIMEOUT
, TARGET_FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: "TARGET_FIELD_NAME_CREATION_DATE"
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
object[]
Define the criteria to query for.
targetNameFilter
object
Possible values: <= 200 characters
Defines the name of the target to query for.
Possible values: [TEXT_FILTER_METHOD_EQUALS
, TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE
, TEXT_FILTER_METHOD_STARTS_WITH
, TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE
, TEXT_FILTER_METHOD_CONTAINS
, TEXT_FILTER_METHOD_CONTAINS_IGNORE_CASE
, TEXT_FILTER_METHOD_ENDS_WITH
, TEXT_FILTER_METHOD_ENDS_WITH_IGNORE_CASE
]
Default value: TEXT_FILTER_METHOD_EQUALS
defines which text equality method is used
inTargetIdsFilter
object
the ids of the targets to include
Responses​
- 200
- 400
- 403
- 404
- default
A list of all targets matching the query
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
Absolute number of objects matching the query, regardless of applied limit.
Applied limit from query, defines maximum amount of objects per request, to compare if all objects are returned.
result
object[]
The unique identifier of the target.
The timestamp of the target creation.
The timestamp of the last change to the target (e.g. creation, activation, deactivation).
restWebhook
object
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Define if any error stops the whole execution. By default the process continues as normal.
Timeout defines the duration until ZITADEL cancels the execution.
If the target doesn't respond before this timeout expires, the the connection is closed and the action fails. Depending on the target type and possible setting on interrupt_on_error
following targets will not be called. In case of a rest_async
target only this specific target will fail, without any influence on other targets of the same execution.
{
"pagination": {
"totalResult": "100",
"appliedLimit": "100"
},
"result": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2025-01-23T10:34:18.051Z",
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check",
"signingKey": "98KmsU67"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
Absolute number of objects matching the query, regardless of applied limit.
Applied limit from query, defines maximum amount of objects per request, to compare if all objects are returned.
result
object[]
The unique identifier of the target.
The timestamp of the target creation.
The timestamp of the last change to the target (e.g. creation, activation, deactivation).
restWebhook
object
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Define if any error stops the whole execution. By default the process continues as normal.
Timeout defines the duration until ZITADEL cancels the execution.
If the target doesn't respond before this timeout expires, the the connection is closed and the action fails. Depending on the target type and possible setting on interrupt_on_error
following targets will not be called. In case of a rest_async
target only this specific target will fail, without any influence on other targets of the same execution.
{
"pagination": {
"totalResult": "100",
"appliedLimit": "100"
},
"result": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2025-01-23T10:34:18.051Z",
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check",
"signingKey": "98KmsU67"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
Absolute number of objects matching the query, regardless of applied limit.
Applied limit from query, defines maximum amount of objects per request, to compare if all objects are returned.
result
object[]
The unique identifier of the target.
The timestamp of the target creation.
The timestamp of the last change to the target (e.g. creation, activation, deactivation).
restWebhook
object
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Define if any error stops the whole execution. By default the process continues as normal.
Timeout defines the duration until ZITADEL cancels the execution.
If the target doesn't respond before this timeout expires, the the connection is closed and the action fails. Depending on the target type and possible setting on interrupt_on_error
following targets will not be called. In case of a rest_async
target only this specific target will fail, without any influence on other targets of the same execution.
{
"pagination": {
"totalResult": "100",
"appliedLimit": "100"
},
"result": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2025-01-23T10:34:18.051Z",
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check",
"signingKey": "98KmsU67"
}
]
}
The feature flag actions
is not enabled.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
Schema
any
- Schema
Schema
any
- Schema
Schema
any
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}