Entwurf anhand gespeicherter Tenant-Assets vorab prüfen
POST /api/v1/risk/custom-profiles/{id}/preview
Schreibgeschützte, revisionsgeschützte Vorschau von bis zu 25 expliziten Assets oder einer begrenzten, nach Art und bestehendem Schweregrad geschichteten Stichprobe. Optionales targetVersion zeigt die unveränderliche veröffentlichte Version statt des Entwurfs. Optionales baselineVersion bewertet eine Vergleichsversion anhand derselben Evidenz und desselben Datums erneut. Geschäftsdimensionen verwenden geprüften Kontext, keine Aufnahmestandardwerte. Fehlende Werte erzeugen null-Differenzen. Keine Aktivierung, Änderung oder Neuberechnung.
Zulässige Rollen: admin, analyst, viewer.
Authentifizierung
Die folgenden OpenAPI-Alternativen beschreiben die akzeptierte Authentifizierung. Änderungen über den Browser erfordern außerdem den kanonischen Origin-Header.
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
Parameter
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
Anfrageinhalt
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomProfilePreviewInput"
}
}
}
}
Antworten
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"schema": {
"const": "sectigo.custom-risk-profile-preview.v1"
},
"profileId": {
"type": "string"
},
"draftRevision": {
"type": "integer"
},
"baselineVersion": {
"type": [
"integer",
"null"
]
},
"targetVersion": {
"type": [
"integer",
"null"
]
},
"assessedAt": {
"type": "string"
},
"normalizationVersion": {
"type": "string"
},
"customFactsVersion": {
"type": "string"
},
"preview": {
"const": true
},
"persisted": {
"const": false
},
"sampling": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"limit": {
"type": "integer"
},
"exhaustive": {
"const": false
}
},
"required": [
"method",
"limit",
"exhaustive"
]
},
"items": {
"type": "array",
"maxItems": 25,
"items": {
"type": "object",
"properties": {
"assetId": {
"type": "string"
},
"evidenceId": {
"type": [
"string",
"null"
]
},
"contextRevision": {
"type": "integer"
},
"before": {
"type": "object",
"properties": {},
"required": []
},
"after": {
"type": "object",
"properties": {},
"required": []
},
"difference": {
"type": "object",
"properties": {
"score": {
"type": [
"number",
"null"
]
},
"beforeSeverity": {
"type": "string"
},
"afterSeverity": {
"type": "string"
},
"comparable": {
"type": "boolean"
},
"reason": {
"type": "string"
}
},
"required": [
"score",
"beforeSeverity",
"afterSeverity",
"comparable",
"reason"
]
}
},
"required": [
"assetId",
"evidenceId",
"contextRevision",
"before",
"after",
"difference"
]
}
},
"limitation": {
"type": "string"
}
},
"required": [
"schema",
"profileId",
"draftRevision",
"assessedAt",
"preview",
"persisted",
"sampling",
"items"
]
}
}
}
},
"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.