Saltar al contenido principal

Crear un webhook firmado o destino Splunk deshabilitado

POST /api/v1/webhooks

Máximo de 10 destinos no revocados compartidos entre tipos. Los llamadores Splunk deben conservar una requestId UUID y reutilizar el cuerpo idéntico después de perder una respuesta de creación; cambiar entrada o principal devuelve 409 y un original revocado no puede recrearse con ese ID. Webhook firmado: HTTPS público en puerto 443; devuelve su secreto de firma una vez. Splunk: kind=splunk y un token HEC; endpoint público HTTPS de eventos en puerto 443 o 8088, opcionalmente un origen normalizado a /services/collector/event. El token se cifra y nunca se devuelve. Host/índice/sourcetype/modo de confirmación son inmutables. Sin credenciales en URL, cadenas de consulta, fragmentos ni IP literales. Envía una prueba e inspecciona su garantía antes de habilitar.

Roles permitidos: admin.

Autenticación​

Las siguientes alternativas de OpenAPI describen la autenticación aceptada. Las modificaciones desde el navegador también requieren la cabecera Origin canónica.

[
{
"organizationCredential": []
},
{
"browserSession": []
}
]

Parámetros​

[]

Cuerpo de la solicitud​

{
"required": true,
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"events": {
"type": "array",
"items": {
"enum": [
"audit.recorded",
"security.recorded",
"job.completed",
"job.partial",
"job.failed",
"job.cancelled",
"plan.verified",
"evidence.archived",
"repository-scan.completed",
"repository-scan.failed",
"repository-scan.cancelled",
"cloud-operation.completed",
"cloud-operation.failed",
"cloud-operation.cancelled",
"capture.completed",
"capture.failed",
"capture.cancelled",
"network-scan.completed",
"network-scan.partial",
"network-scan.failed",
"network-scan.cancelled",
"scm-scan.completed",
"scm-scan.failed",
"scm-scan.cancelled"
]
},
"minItems": 1,
"maxItems": 24
}
},
"required": [
"name",
"url",
"events"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"events": {
"type": "array",
"items": {
"enum": [
"audit.recorded",
"security.recorded",
"job.completed",
"job.partial",
"job.failed",
"job.cancelled",
"plan.verified",
"evidence.archived",
"repository-scan.completed",
"repository-scan.failed",
"repository-scan.cancelled",
"cloud-operation.completed",
"cloud-operation.failed",
"cloud-operation.cancelled",
"capture.completed",
"capture.failed",
"capture.cancelled",
"network-scan.completed",
"network-scan.partial",
"network-scan.failed",
"network-scan.cancelled",
"scm-scan.completed",
"scm-scan.failed",
"scm-scan.cancelled"
]
},
"minItems": 1,
"maxItems": 24
},
"kind": {
"const": "splunk"
},
"requestId": {
"type": "string",
"format": "uuid"
},
"token": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"writeOnly": true,
"description": "HEC token. Stored encrypted; never returned."
},
"index": {
"type": "string",
"maxLength": 80,
"pattern": "^[A-Za-z0-9_-]*$",
"default": "",
"description": "Empty uses the HEC token default index."
},
"sourcetype": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$",
"default": "sectigo:quantum:ready"
},
"acknowledgements": {
"type": "boolean",
"default": false,
"description": "Enable only when the HEC token and deployment support indexer acknowledgement. Collector acceptance alone will not complete delivery in this mode."
}
},
"required": [
"kind",
"name",
"url",
"token",
"events"
],
"additionalProperties": false
}
]
}
}
}
}

Respuestas​

{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"secret": {
"type": "string"
}
},
"required": [
"secret"
]
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/Webhook"
},
{
"type": "object",
"properties": {
"kind": {
"const": "splunk"
},
"splunk": {
"$ref": "#/components/schemas/SplunkConfiguration"
}
},
"required": [
"kind",
"splunk"
]
}
]
}
]
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}

Las referencias como #/components/schemas/Asset se resuelven en los esquemas compartidos. Descarga el contrato OpenAPI para generar clientes. Esta página se genera automáticamente; describe la API de desarrollo implementada, no endpoints previstos.