ルート ID パス パラメータで識別されるプロジェクト内のすべてのワークスペースについて、ECP 所有のアクティブ/一時停止ステータスを返します。ECP から常にライブで取得します。(同時の同一のリクエストは重複排除され、リクエスト間でキャッシュされません)ソフトフェイル: ECP が到達できない場合、または 2 ページ目以降のページで失敗が発生した場合、最後に正常だった応答 (最大 10 分前までのもの) が存在する場合は返されます。それ以外の場合は、空のリストとともに 200 が返されます (または、複数ページの一部で失敗が発生し、フォールバックが利用できない場合は、それまでに収集された部分的な結果が返されます)。
GET /api/v1/プロジェクトID/ワークスペースステータス
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/projects/{id}/workspace-statuses' \
--header "Authorization: $API_KEY"
応答の例(406)
操作は利用できません
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
応答の例(406)
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
応答の例(200)
{
"statuses": [
{
"status": "string",
"workspace_id": "string"
}
],
"total": 42
}
応答の例(200)
{
"statuses": [
{
"status": "string",
"workspace_id": "string"
}
],
"total": 42
}
応答の例(400)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(400)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(401)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(401)
{
"code": "string",
"error": "string",
"success": true
}