Search targets
POST/resources/v3alpha/actions/targets/_search
Search all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination.
Request​
Query Parameters
Maximum amount of events returned. If not configured otherwise, the default is 100, the maximum is 1000. If the limit exceeds the maximum, ZITADEL throws an error.
default is ascending, because together with the creation date sorting column, this returns the most deterministic pagination results.
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_UNSPECIFIED
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.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
Define the criteria to query for.
Array [
]
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
]
Default value: TEXT_FILTER_METHOD_EQUALS
defines which text equality method is used
inTargetIdsFilter
object
the ids of the targets to include
Body
required
Define the criteria to query for.
Array [
]
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
]
Default value: TEXT_FILTER_METHOD_EQUALS
defines which text equality method is used
inTargetIdsFilter
object
the ids of the targets to include
Body
required
Define the criteria to query for.
Array [
]
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
]
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 [
]
details
object
the last time the projection got updated
result
object[]
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 1000 characters
restWebhook
object
Wait for response but response body is ignored, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Wait for response and response body is used, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-11-22T09:27:09.822Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T09:27:09.822Z",
"changed": "2024-11-22T09:27:09.822Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
}
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
the last time the projection got updated
result
object[]
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 1000 characters
restWebhook
object
Wait for response but response body is ignored, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Wait for response and response body is used, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-11-22T09:27:09.823Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T09:27:09.823Z",
"changed": "2024-11-22T09:27:09.823Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
}
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object
the last time the projection got updated
result
object[]
details
object
the timestamp of the first event applied to the object.
the timestamp of the last event applied to the object.
owner
object
the parent object representing the returned objects context.
Possible values: [OWNER_TYPE_UNSPECIFIED
, OWNER_TYPE_SYSTEM
, OWNER_TYPE_INSTANCE
, OWNER_TYPE_ORG
]
Default value: OWNER_TYPE_UNSPECIFIED
config
object
Possible values: non-empty
and <= 1000 characters
restWebhook
object
Wait for response but response body is ignored, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
restCall
object
Wait for response and response body is used, status is checked, call is sent as post.
Define if any error stops the whole execution. By default the process continues as normal.
Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post.
if the target doesn't respond before this timeout expires, the the connection is closed and the action fails
Possible values: non-empty
and <= 1000 characters
{
"details": {
"appliedLimit": 100,
"totalResult": "2",
"timestamp": "2024-11-22T09:27:09.824Z"
},
"result": [
{
"details": {
"id": "69629012906488334",
"created": "2024-11-22T09:27:09.824Z",
"changed": "2024-11-22T09:27:09.824Z",
"owner": "69629023906488334"
},
"config": {
"name": "ip_allow_list",
"restWebhook": {
"interruptOnError": true
},
"restCall": {
"interruptOnError": true
},
"restAsync": {},
"timeout": "10s",
"endpoint": "https://example.com/hooks/ip_check"
}
}
]
}
invalid list query
- 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 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"
}
]
}