Zum Hauptinhalt springen

Sichere Administratorübergabe erstellen

POST /api/v1/enrollment-handoffs

Standard 24 Stunden, konfigurierbar von 1 bis 168 Stunden. E-Mail-Zustellung sendet den Link; ZIP-Zustellung gibt einen Link mit Fragment zur clientseitigen Paketierung zurück. Der Empfänger muss seine E-Mail verifizieren. Vor Einlösung werden keine Agent-Zugangsdaten erstellt. Bei Einlösung wird die Autorisierung erneut geprüft. Optionales Relay-Routing fixiert ausgewählte Relay-Richtlinien und CA; E-Mail-Verifizierung aktiviert eine separate zehnminütige Bootstrap-Freigabe mit acht Nutzungen. Reine Mitgliedschaftsrevisionen machen eine Übergabe nicht ungültig. Richtlinien- oder CA-Änderungen erfordern eine neue Übergabe.

Zulässige Rollen: admin.

Authentifizierung​

Die folgenden OpenAPI-Alternativen beschreiben die akzeptierte Authentifizierung. Änderungen über den Browser erfordern außerdem den kanonischen Origin-Header.

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

Parameter​

[]

Anfrageinhalt​

{
"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
}
}
}
}

Antworten​

{
"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"
}
}
}
}
}

Referenzen wie #/components/schemas/Asset werden in den gemeinsamen Schemas aufgelöst. Lade den OpenAPI-Vertrag zur Clientgenerierung herunter. Diese Seite wird generiert; sie beschreibt die implementierte Entwicklungs-API, keine geplanten Endpunkte.