Gestionar ajustes del receptor de telemetría
POST /api/auth/telemetry/manage
Se requieren una sesión de navegador verificada de administrador del espacio de trabajo y una cabecera Origin exacta. La vinculación de cuenta/conjunto de datos/privacidad es inmutable. Rotar devuelve una credencial de ingesta una sola vez, almacenada como hash en reposo, para 1?365 días. La rotación/desconexión invalida cargas pendientes. Archivar requiere desconexión; restaurar no restaura credenciales. Las modificaciones salvo crear requieren expectedRevision. Eliminar requiere desconectar primero, expectedRevision y confirm true; admite receptores archivados y reintentos idempotentes de la misma revisión. Elimina ajustes de conexión y diagnósticos de entrega, conservando inventario, evidencias inmutables y trabajo de archivo. Los marcadores de deduplicación conservan su caducidad normal de treinta días. Las cargas y sondeos tardíos no pueden reactivar receptores eliminados. La lectura normal, estado, restauración e ingesta devuelven 404. Deshabilita o elimina el trabajo del proveedor por separado; no se llama a ninguna API del proveedor.
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.
[
{
"browserSession": []
}
]
Parámetros
[]
Cuerpo de la solicitud
{
"required": true,
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "create"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"type": "string",
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"consent": {
"type": "boolean",
"const": true
}
},
"required": [
"operation",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"consent"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "list"
},
"after": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"archived": {
"type": "boolean"
}
},
"required": [
"operation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "read"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"operation",
"connectionId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "rename"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"required": [
"operation",
"connectionId",
"expectedRevision",
"name"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "rotate"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"expiresInDays": {
"default": 90,
"type": "integer",
"minimum": 1,
"maximum": 365
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "delete"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"operation",
"connectionId",
"expectedRevision",
"confirm"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "disconnect"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "archive"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "restore"
},
"connectionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
}
]
}
}
}
}
Respuestas
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"deleted": {
"const": true
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"deletedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"deleted",
"expectedRevision",
"deletedAt"
]
},
{
"type": "object",
"properties": {
"connection": {
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
},
"token": {
"type": "string",
"description": "One-time receiver credential. Store securely; never logged or returned again."
}
},
"required": [
"connection",
"token"
]
}
]
}
}
}
},
"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.