List targets
POSThttps://$CUSTOM-DOMAIN/v3alpha/targets/search
List all matching targets. By default, we will return all targets of your instance. Make sure to include a limit and sorting for pagination.
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
query
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
the field the result is sorted.
queries
object[]
Body
required
query
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
the field the result is sorted.
queries
object[]
Body
required
query
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
the field the result is sorted.
queries
object[]
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
details
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-25T13:35:39.374Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"targetId": "69629012906488334",
"details": {
"sequence": "2",
"changeDate": "2024-06-25T13:35:39.374Z",
"resourceOwner": "69629023906488334"
},
"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
details
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-25T13:35:39.375Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"targetId": "69629012906488334",
"details": {
"sequence": "2",
"changeDate": "2024-06-25T13:35:39.375Z",
"resourceOwner": "69629023906488334"
},
"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
details
object
Possible values: [FIELD_NAME_UNSPECIFIED
, FIELD_NAME_ID
, FIELD_NAME_CREATION_DATE
, FIELD_NAME_CHANGE_DATE
, FIELD_NAME_NAME
, FIELD_NAME_TARGET_TYPE
, FIELD_NAME_URL
, FIELD_NAME_TIMEOUT
, FIELD_NAME_ASYNC
, FIELD_NAME_INTERRUPT_ON_ERROR
]
Default value: FIELD_NAME_UNSPECIFIED
States by which field the results are sorted.
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-25T13:35:39.376Z"
},
"sortingColumn": "FIELD_NAME_UNSPECIFIED",
"result": [
{
"targetId": "69629012906488334",
"details": {
"sequence": "2",
"changeDate": "2024-06-25T13:35:39.376Z",
"resourceOwner": "69629023906488334"
},
"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
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
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
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
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
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
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
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/v3alpha/targets/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
},
"sortingColumn": "FIELD_NAME_SCHEMA_TYPE",
"queries": [
{
"targetNameQuery": {
"targetName": "ip_allow_list",
"method": "TEXT_QUERY_METHOD_EQUALS"
},
"inTargetIdsQuery": {
"targetIds": [
"69629023906488334",
"69622366012355662"
]
}
}
]
}'