curl --location --request POST 'https://oteapi.webnic.cc/domain/v2/host/list' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"filters": [
{
"field": "hostname",
"operator": "like",
"value": "darrentestote.com"
},
{
"field": "status",
"operator": "EQUAL",
"value": "active"
}
],
"pagination": {
"page": 1,
"pageSize": 5
},
"sorting": {
"sortBy": "dtcreate",
"sortDirection": "desc"
}
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"pageSize": 2,
"totalPages": 1,
"totalItems": 2,
"items": [
{
"hostname": "ns2.darrentestote.com"
},
{
"hostname": "ns1.darrentestote.com"
}
]
}
}