--- title: "getInitScriptList" slug: "cli-vserver-initscript-getinitscriptlist" tags: ["Server", "VPC"] updated: 2026-09-17T10:11:00Z published: 2026-09-17T10:11:00Z canonical: "cli.ncloud-docs.com/cli-vserver-initscript-getinitscriptlist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getInitScriptList VPC環境で利用できます。 初期化スクリプトリストを照会します。 ## 構文 `getInitScriptList`構文は次の通りです。 ``` ./ncloud vserver getInitScriptList \ [--initScriptNoList ] \ [--initScriptName ] \ [--osTypeCode ] \ [--pageNo ] \ [--pageSize ] \ [--sortedBy ] \ [--sortingOrder ] \ [--regionCode ] \ [--output ] ``` ## オプション `getInitScriptList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getInitScriptList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--pageSize` | Integer | Conditional | ページごとの項目数 - `1`~`1000` (デフォルト: `1`) - `pageNo`入力時、必ず入力 | ### 任意オプション `getInitScriptList`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--initScriptNoList` | List | Optional | 初期化スクリプト番号リスト - スペースで区切って複数入力可能 (例: `--initScriptNoList 1234 2345`) | | `--initScriptName` | String | Optional | 初期化スクリプト名 | | `--osTypeCode` | String | Optional | OSタイプコード - `LNX` \| `WND` - `LNX`: Linux - `WND`: Windows | | `--pageNo` | Integer | Optional | ページ番号 - `0`~N (デフォルト: `0`) - 最初のページ: `0`または`1`を入力 | | `--sortedBy` | String | Optional | ソート基準 - `initScriptName`: 初期化スクリプト名 | | `--sortingOrder` | String | Optional | ソート順序 - `ASC` (デフォルト) \| `DESC` - `ASC`: 昇順 - `DESC`: 降順 | ### 共通オプション `vserver`コマンドで共通して使用するオプションについては、[Server (VPC)のオプション](/docs/ja/cli-vserver#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 初期化スクリプトリストの照会リクエストが成功すると、各スクリプトの基本情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vserver getInitScriptList \ --initScriptNoList 12345678 12345679 \ --osTypeCode LNX \ --pageNo 0 \ --pageSize 10 \ --sortedBy initScriptName \ --sortingOrder DESC \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getInitScriptListResponse": { "totalRows": 2, "initScriptList": [ { "initScriptNo": "12345679", "initScriptName": "test-init-script-02", "createDate": "2026-05-14T14:09:03+0900", "initScriptDescription": "Locale setup script", "osType": { "code": "LNX", "codeName": "LINUX" } }, { "initScriptNo": "12345678", "initScriptName": "test-init-script-01", "createDate": "2026-05-14T14:08:35+0900", "initScriptDescription": "Test init script for documentation", "osType": { "code": "LNX", "codeName": "LINUX" } } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```