Atualizar destino SIEM
curl --request PUT \
--url https://api.truthlocks.com/v1/audit/siem/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": false
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false})
};
fetch('https://api.truthlocks.com/v1/audit/siem/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/audit/siem/{id}"
payload = { "enabled": False }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/audit/siem/{id}"
payload := strings.NewReader("{\n \"enabled\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "splunk",
"endpoint": "<string>",
"enabled": true,
"status": "configured_delivery_unavailable",
"credential_configured": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Auditoria e Registros
Atualizar destino SIEM
Gerenciar destinos de entrega de auditoria protegidos e com escopo de ambiente.
PUT
/
v1
/
audit
/
siem
/
{id}
Atualizar destino SIEM
curl --request PUT \
--url https://api.truthlocks.com/v1/audit/siem/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": false
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: false})
};
fetch('https://api.truthlocks.com/v1/audit/siem/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/audit/siem/{id}"
payload = { "enabled": False }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/audit/siem/{id}"
payload := strings.NewReader("{\n \"enabled\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "splunk",
"endpoint": "<string>",
"enabled": true,
"status": "configured_delivery_unavailable",
"credential_configured": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Verifique
delivery_available na resposta da lista antes de habilitar um destino. A entrega cobre novos eventos de auditoria com atribuição de ambiente verificada. Eventos históricos e não atribuídos não são transmitidos. Um destino enabled não é evidência de ingestão bem-sucedida; inspecione delivery_counts e seu receptor.audit:read; as alterações requerem audit:write. Uma sessão de navegador deve pertencer a um administrador do espaço de trabalho. Um destino de outro locatário ou ambiente não pode ser atualizado ou excluído.
As credenciais são criptografadas em repouso e nunca aparecem nas respostas. Para webhooks, forneça secret; para Splunk, Datadog ou Elastic, forneça token. Alterar um endpoint requer o fornecimento de sua credencial novamente. A configuração do CloudWatch não é suportada.
Um ambiente pode conter até 20 destinos. A exclusão de um destino remove as suas credenciais guardadas e os registos de entrega em fila. Desativar ou alterar um destino cancela as suas entregas pendentes; guarde qualquer evidência de entrega de que precise primeiro.
Consulte o guia de entrega SIEM para retentativas, configurações do provedor e verificação de webhook. Para ingestão de snapshot, use exportações de auditoria ou exportações de eventos de risco. Essas exportações não permitem streaming contínuo.Corpo
application/json
Resposta
Destino SIEM atualizado.

