Docs Menu
Docs Home
/ /
Atlas CLI
/ /

Atlas クラスターの起動

項目一覧

  • 構文
  • Arguments
  • オプション
  • 継承されたオプション
  • 出力

指定した一時停止した MongoDB クラスターを起動します。

このコマンドを使用するには、プロジェクト クラスター マネージャー ロールを持つユーザー アカウントまたは API キーで認証する必要があります。 Atlas は、M10+ クラスターでのみこのコマンドをサポートしています。

コマンド構文
atlas clusters start <clusterName> [options]
名前
タイプ
必須
説明
clusterName
string
true
起動するクラスターの名前。
名前
タイプ
必須
説明
-h, --help
false
開始用のヘルプ
-o, --output
string
false
出力形式。 有効な値は、 JSON 、 JSON -path、go-template、または go-template-file です。 完全な出力を表示するには、 -o JSONオプションを使用します。
--projectId
string
false
使用するプロジェクトを識別する 16 進数の string。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。
名前
タイプ
必須
説明
-P, --profile
string
false
構成ファイルから使用するプロファイルの名前。 Atlas CLI のプロファイルについては、 https://docub.mongodb.org/core/atlas-cli-save- connection-settings を参照してください。

コマンドが成功すると、CLI は次のサンプルのような出力を返します。 括弧内の値は 値を表します。

Starting cluster '<Name>'.
# Start a cluster named myCluster for the project with ID 5e2211c17a3e5a48f5497de3:
atlas clusters start myCluster --projectId 5e2211c17a3e5a48f5497de3 --output json

戻る

update