保存済みテナント資産に対して下書きをプレビューする
POST /api/v1/risk/custom-profiles/{id}/preview
読み取り専用でリビジョン保護されたプレビューです。最大 25 の明示的資産、または種別と既存重大度で層別した限定サンプルを使用します。任意の targetVersion は下書きの代わりにその不変の公開バージョンをプレビューします。任意の baselineVersion は同じ証拠/日付で比較バージョンを再評価します。業務次元は取り込み既定値ではなくレビュー済みコンテキストを使用します。欠落スコアの差分は null です。有効化、変更、再計算は行いません。
許可されるロール: admin, analyst, viewer.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomProfilePreviewInput"
}
}
}
}
レスポンス
{
"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"
}
}
}
}
}
#/components/schemas/Asset などの参照は、共有スキーマで解決されます。クライアント生成には OpenAPI コントラクトをダウンロードしてください。このページは生成されたもので、計画中のエンドポイントではなく、実装済みの開発 API を説明します。