Saltar al contenido principal

Crear una entrega segura de administrador

POST /api/v1/enrollment-handoffs

Por defecto 24 horas, configurable de 1 a 168 horas. La entrega por correo envía el enlace; la entrega ZIP devuelve un enlace con fragmento para empaquetar en el cliente. El destinatario debe verificar su correo. No se crea ninguna credencial de agente hasta el canje. La autorización se vuelve a comprobar en el canje. El enrutamiento opcional por retransmisor fija las políticas seleccionadas del retransmisor y la CA; verificar el correo activa una concesión de arranque independiente de diez minutos y ocho usos. Las revisiones solo de pertenencia no invalidan una entrega. Los cambios de política o CA requieren una nueva entrega.

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": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"kind": {
"type": "string",
"enum": [
"tls",
"quic",
"ssh",
"code",
"capture",
"aws-kms",
"gcp-kms",
"azure-keyvault",
"runtime",
"windows-certificates"
]
},
"email": {
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"hours": {
"default": 24,
"type": "integer",
"minimum": 1,
"maximum": 168
},
"delivery": {
"type": "string",
"enum": [
"email",
"zip"
]
},
"relay": {
"type": "object",
"properties": {
"relays": {
"minItems": 1,
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"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": 0,
"maximum": 9007199254740990
}
},
"required": [
"id",
"expectedRevision"
],
"additionalProperties": false
}
},
"directFallback": {
"type": "string",
"enum": [
"disabled",
"when-unavailable"
]
}
},
"required": [
"relays",
"directFallback"
],
"additionalProperties": false
}
},
"required": [
"name",
"kind",
"email",
"delivery"
],
"additionalProperties": false
}
}
}
}

Respuestas​

{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"relay": {
"type": "object",
"properties": {
"relayIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"minItems": 1,
"maxItems": 2
},
"directFallback": {
"enum": [
"disabled",
"when-unavailable"
]
}
},
"required": [
"relayIds",
"directFallback"
]
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"expiresAt": {
"type": "integer"
},
"createdAt": {
"type": "integer"
},
"agentId": {
"type": "string",
"format": "uuid"
},
"status": {
"enum": [
"pending",
"redeemed",
"expired",
"revoked"
]
}
},
"required": [
"id",
"name",
"kind",
"email",
"expiresAt",
"createdAt",
"status"
]
},
{
"type": "object",
"properties": {
"link": {
"type": "string"
}
},
"required": []
}
]
}
}
}
},
"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.