人間の呼び出し元の委任トークンまたはペアのエージェント エンジン サービス アカウントを使用して、Atlas Admin API GET /groups/{id}/clusters と GET /groups/{id}/FlexClusters をプロキシします。エージェント エンジンAPIキーは受け入れられません。無効な project_id は、Atlas を呼び出す前に拒否されます。
応答
-
サポートされていないAPIバージョンまたは不正な API バージョン、選択した公開契約で利用できない操作、または受け入れができない表現(サポートされていないメディアタイプのパラメーター、または除外された SSE を含む)。既存の認証、認可、およびレート制限の失敗が優先されます。
-
OK
-
INVALID_ID — project_id は 24-160 進数の AtlasプロジェクトIDではありません
-
PLATFOR:
-
Atlas_PAYMENT_METHOD_REQUERED
-
Atlas_PERMISSION_REQUERED、Atlas_SERVICE_ACCOUNT_NOT_PAILED、または 禁止
-
NULL_FOUND
-
競合
-
InterNAL_ERROR
-
Atlas が到達不能、または OK 以外の応答
-
PLATCOM:
GET /api/v1 /atlas/projects/{{project_id}/clusters
curl \
--request GET 'https://agentengine.mongodb.com/api/v1/atlas/projects/{project_id}/clusters' \
--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)
{
"results": [
{
"connection_string_srv": "string",
"is_flex": true,
"name": "string",
"provider": "string",
"region": "string",
"state_name": "string",
"tier": "string"
}
],
"total_count": 42
}
応答の例(200)
{
"results": [
{
"connection_string_srv": "string",
"is_flex": true,
"name": "string",
"provider": "string",
"region": "string",
"state_name": "string",
"tier": "string"
}
],
"total_count": 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
}
応答の例(402)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(402)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(403)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(403)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(404)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(404)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(409)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(409)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(500)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(500)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(502)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(502)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(503)
{
"code": "string",
"error": "string",
"success": true
}
応答の例(503)
{
"code": "string",
"error": "string",
"success": true
}