翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
コマンドに関するヘルプの利用
Amazon DCV セッションマネージャー CLI を使用する際は、どのコマンドでもサポートを受けることができます。そのためには、コマンド名の末尾に --help と入力するだけです。
例
例えば、次のコマンドは、一般的な DCV SM CLI オプションと使用可能なトップレベルのコマンドのヘルプを表示します。
dcvsm --help
次の例は、CLI コマンドの出力を示しています。
Usage: dcvsm [OPTIONS] COMMAND [ARGS]... Amazon DCV Session Manager CLI Options: --conf TEXT Name of the configuration file to read the configuration parameters --broker-url TEXT The URL of the broker --debug Specify to enable the debug mode. By default is disabled --no-verify-ssl Specify to disable the verification of SSL certification. By default is enabled --output-format TEXT Specify the format of the output --ca-bundle TEXT Specifies the path to a custom certificate bundle (a file with a .pem extension) of CA to use when establishing SSL/TLS connections --auth-server TEXT URL of the authentication server used to request the token --version Show the version and exit. -h, --help Show this message and exit. Commands: close-servers Closes one or more Amazon DCV server create-session Creates a new Amazon DCV session delete-session Deletes the specified Amazon DCV session describe-servers Describes one or more Amazon DCV servers describe-sessions Describes one or more Amazon DCV sessions get-session-connection-data Gets connection data for a specific Amazon DCV session. get-session-screenshots Gets screenshots of one or more Amazon DCV sessions. open-servers Opens one or more Amazon DCV servers update-session-permissions Updates the user permissions for a specific Amazon DCV session.
コンテキストに関するヘルプ情報については、すべてのコマンドで -—help が受け入れられます。例えば、次のコマンドは、create-session コマンドのヘルプを表示します。
dcvsm create-session --help
次の例は create-session --help コマンドの出力です。
Usage: dcvsm create-session [OPTIONS] Create sessions API Options: --name TEXT The name for the session [required] --owner TEXT The name of the session owner [required] --type TEXT Session type: CONSOLE|VIRTUAL [required] --init-file-path TEXT Supported with virtual sessions on Linux Amazon DCV servers --autorun-file TEXT The path to a file on the host server that is to be run inside the session --autorun-file-arguments TEXT Command-line arguments passed to AutorunFile upon its execution inside the session --max-concurrent-clients INTEGER RANGE The maximum number of concurrent Amazon DCV clients, if provided must be between 1 and 100 [1<=x<=100] --dcv-gl-enabled Indicates whether the virtual session is configured to use hardware-based OpenGL. Specify to enable it, by default is disabled --permissions-file TEXT The Base64-encoded contents of the permissions file --requirements TEXT The requirements that the server must satisfy in order to place the session --storage-root TEXT Specifies the path to the folder used for session storage -h, --help Show this message and exit.
Amazon DCV SM CLI コマンドリファレンスには、Amazon DCV SM CLI コマンドのヘルプコンテンツもすべて含まれています。Amazon DCV SM CLI のコマンドはすべて、ブローカーの API に対して行われるリクエストに対応します。各 API の「Amazon DCV セッションマネージャーデベロッパーガイド」セクションに API リファレンスがあります。
パラメータタイプ
特定のコマンドのオプションや引数の形式処理に問題がある場合は、各コマンドのヘルプに使用可能な関数とオプションが説明されています。
文字列
文字列パラメータには、 文字、数字、、空白を含めることができます。空白文字を含む文字列は引用符で囲まれている必要があります。文字列は、一重引用符や二重引用符で囲むことができ、引用符で囲まないことも可能です。記号は、予期しない結果が生じる可能性があるため使用しないことをお勧めします。
リスト
カンマで区切られ、引用符で囲まれた 1 つ以上の文字列。以下の例は --session-ids のリストです。
dcvsm describe-sessions --session-ids "session123,session456"
ブール値
オプションをオンまたはオフにするバイナリフラグです。例えば、—debug describe-sessions にはブール型 —debug オプションがあり、これを指定すると、デバッグを有効にする API が呼び出されます。
dcvsm --debug describe-sessions
ブール型オプションを明示的に指定しない場合、デフォルトで FALSE に設定されます。
整数
符号なしの整数。
dcvsm describe-sessions --max-results 2