Saltar al contenido principal

Notificar actividad del agente

POST /api/v1/agents/heartbeat

Roles permitidos: agent.

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": {
"type": "object",
"properties": {
"remoteScan": {
"oneOf": [
{
"type": "object",
"properties": {
"protocolVersion": {
"type": "number",
"const": 1
},
"enabled": {
"type": "boolean",
"const": false
}
},
"required": [
"protocolVersion",
"enabled"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"protocolVersion": {
"type": "number",
"const": 1
},
"enabled": {
"type": "boolean",
"const": true
},
"localPolicySha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"zoneId": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,79}$"
},
"poolIds": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"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)$"
}
},
"sourceAddresses": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "string",
"maxLength": 45
}
}
},
"required": [
"protocolVersion",
"enabled",
"localPolicySha256",
"zoneId",
"poolIds",
"sourceAddresses"
],
"additionalProperties": false
}
]
},
"quicReady": {
"type": "boolean"
},
"databaseReady": {
"type": "boolean"
},
"instanceId": {
"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)$"
},
"scannerVersion": {
"type": "string",
"maxLength": 40,
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
},
"pythonVersion": {
"type": "string",
"maxLength": 40,
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
},
"platform": {
"type": "object",
"properties": {
"os": {
"type": "string",
"enum": [
"windows",
"linux",
"macos",
"unknown"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"arm64",
"x86",
"unknown"
]
},
"distribution": {
"type": "string",
"enum": [
"python",
"compiled"
]
}
},
"required": [
"os",
"architecture",
"distribution"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
}

Respuestas​

{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ok": {
"const": true
},
"serverTime": {
"type": "string",
"format": "date-time"
},
"configuration": {
"type": [
"object",
"null"
]
},
"maintenance": {
"type": [
"object",
"null"
],
"properties": {
"revision": {
"type": "integer"
},
"paused": {
"type": "boolean"
}
},
"required": [
"revision",
"paused"
]
}
},
"required": [
"ok",
"serverTime"
]
}
}
}
},
"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.