ターミナル登録をキャンセルする
POST /api/terminal/cancel
正規 HTTPS ターミナルクライアントエンドポイントです。Cookie、Origin、Authorization、コンテンツエンコーディングなしで application/json を送信します。ブラウザーセッション認証は適用しません。開始は 10 分間のブラウザー承認リンク、確認コード、独立したターミナル秘密情報を返します。その秘密情報で五秒ごとにポーリングします。承認済み配送は、承認されたワークスペースと機能に限定したエージェント認証情報を一つ含みます。確認応答前に安全に保持してください。確認応答は復元可能な配送を削除します。pending、denied、cancelled、ready、acknowledged 状態を明示します。キャンセルには元のターミナル秘密情報が必要で、発行が開始されていないことを証明できる場合のみ safeToRestart を返します。期限切れ後の 24 時間復旧期間も含みます。冪等です。曖昧または発行済みの登録は 409 を返し、ワークスペースで再開またはレビューする必要があります。期限切れ配送秘密情報は削除し、復旧はメタデータのみ保持します。期限切れ要求は 410、高速ポーリングは 429 を返します。承認は通常のブラウザーサインインと MFA を使用します。この API は今後のガイド付きインストーラーの構成要素であり、エージェントをインストールしたり開始したりしません。
認証
この操作に認証済みセッションは不要です。Origin 検査とリクエスト制限は引き続き適用されます。
[]
パラメーター
[]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"request": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
},
"deviceSecret": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
}
},
"required": [
"request",
"deviceSecret"
]
}
}
}
}
レスポンス
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"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 を説明します。