Listas negras
GET https://estatus.info/api/blacklists/
curl --request GET \
--url 'https://estatus.info/api/blacklists/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://estatus.info/api/blacklists/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros | Detalles | Descripción |
---|---|---|
page | Opcional Entero (Integer) | El número de página del que deseas resultados. Por defecto es 1 |
results_per_page | Opcional Entero (Integer) | El número de resultados por página. Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Por defecto %s |
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "Example",
"target": "10.10.15.15",
"settings": {
"blacklist_check_interval_seconds": 3600,
"ignored": ["ignored.blacklist1","ignored.blacklist2"...]
},
"is_ok": 1,
"total_checks": 500,
"total_ok_checks": 450,
"total_not_ok_checks": 50,
"last_check_datetime": "2021-03-25 08:27:07",
"notifications": {
"is_ok":[]
},
"is_enabled": false,
"datetime": "2021-02-12 21:54:29",
"blacklists": {"blacklist1":0,"blacklist2":1,"blacklist3":0...}
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://estatus.info/api/blacklists?&page=1",
"last": "https://estatus.info/api/blacklists?&page=1",
"next": null,
"prev": null,
"self": "https://estatus.info/api/blacklists?&page=1"
}
}
GET https://estatus.info/api/blacklists/{blacklist_id}
curl --request GET \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "Example",
"target": "10.10.15.15",
"settings": {
"blacklist_check_interval_seconds": 3600,
"ignored": ["ignored.blacklist1","ignored.blacklist2"...]
},
"is_ok": 1,
"total_checks": 500,
"total_ok_checks": 450,
"total_not_ok_checks": 50,
"last_check_datetime": "2021-03-25 08:27:07",
"notifications": {
"is_ok":[]
},
"is_enabled": false,
"datetime": "2021-02-12 21:54:29",
"blacklists": {"blacklist1":0,"blacklist2":1,"blacklist3":0...}
}
]
POST https://estatus.info/api/blacklists
Parámetros | Detalles | Descripción |
---|---|---|
name | Requerido Cadena (string) | - |
target | Requerido Cadena (string) | - |
project_id | Opcional Entero (Integer) | - |
check_interval_seconds | Opcional Entero (Integer) | Valores permitidos: 7200 , 21600 , 43200 , 86400 (segundos) |
is_ok_notifications | Opcional Arreglo (array) | IDs de los controladores de notificaciones |
ignored | Opcional Arreglo (array) | Listas negras a ignorar (usar el DNS completo para cada lista) |
is_enabled | Opcional Booleano (Boolean) | - |
curl --request POST \
--url 'https://estatus.info/api/blacklists' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://estatus.info/api/blacklists' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
{
"data": {
"id": 1
}
}
POST https://estatus.info/api/blacklists/{blacklist_id}
Parámetros | Detalles | Descripción |
---|---|---|
name | Opcional Cadena (string) | - |
target | Opcional Cadena (string) | - |
project_id | Opcional Entero (Integer) | - |
check_interval_seconds | Opcional Entero (Integer) | Valores permitidos: 7200 , 21600 , 43200 , 86400 (segundos) |
is_ok_notifications | Opcional Arreglo (array) | IDs de los controladores de notificaciones |
ignored | Opcional Arreglo (array) | Listas negras a ignorar (usar el DNS completo para cada lista) |
is_enabled | Opcional Booleano (Boolean) | - |
curl --request POST \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
DELETE https://estatus.info/api/blacklists/{blacklist_id}
curl --request DELETE \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://estatus.info/api/blacklists/{blacklist_id}' \
--header 'Authorization: Bearer {api_key}' \