ローカル権限の範囲内でエージェント設定を公開する
POST /api/v1/agents/{id}/configuration
楽観的同時実行制御は expectedRevision(初期値 0)を使用します。公開は、エージェントがこのリビジョンを確認するまで新しいジョブ取得を阻止します。実行中ジョブは完了できます。ローカルオプトインと範囲検査はスキャナー 0.11.0 以降で適用し、capture 機能と captureRoots には 0.13.0 以降が必要です。古い非キャプチャエージェントでは captureRoots を省略します。AWS KMS 機能と allowedAwsKmsKeys は 0.16.0 と別途プロビジョニングした AWS SDK 依存関係が必要です。partition と Region が一致する正確な完全鍵 ARN を使用します。プロファイルと AWS 認証情報はローカルに残します。古いエージェントでは allowedAwsKmsKeys を省略します。GCP KMS 機能と allowedGcpKmsVersions は 0.17.0 と GCP 依存環境が必要です。各ターゲットは正確な数値鍵バージョンリソース名で、ID 設定はローカルに残します。古いエージェントではこのフィールドを省略します。Azure Key Vault 機能と allowedAzureKeyVersions は 0.18.0+ と固定された依存環境が必要です。ターゲットは公開クラウドの正確な鍵バージョン URL でなければなりません。Azure ID 方式と認証情報はローカルに残し、古いエージェントではこのフィールドを省略します。設定は heartbeat を通じて認証済みエージェントにのみ配送します。
許可されるロール: admin.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
パラメーター
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentConfigurationInput"
}
}
}
}
レスポンス
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"revision": {
"type": "integer"
},
"settings": {
"$ref": "#/components/schemas/ManagedSettings"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"updatedBy": {
"type": "string"
}
},
"required": [
"revision",
"settings",
"updatedAt",
"updatedBy"
]
}
}
}
},
"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 を説明します。