Available in VPC
Get the list of init scripts.
Syntax
The getInitScriptList syntax is as follows:
./ncloud vserver getInitScriptList \
[--initScriptNoList <init-script-no-list>] \
[--initScriptName <init-script-name>] \
[--osTypeCode <LNX|WND>] \
[--pageNo <page-no>] \
[--pageSize <page-size>] \
[--sortedBy <sorted-by>] \
[--sortingOrder <ASC|DESC>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getInitScriptList.
Required options
The following options are required for getInitScriptList.
| Options | Type | Required | Description |
|---|---|---|---|
--pageSize |
Integer | Conditional | Number of items per page
|
Optional options
These are the optional options for getInitScriptList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--initScriptNoList |
List | Optional | Init script number list
|
--initScriptName |
String | Optional | Initialization script name |
--osTypeCode |
String | Optional | Operating system type code
|
--pageNo |
Integer | Optional | Page number
|
--sortedBy |
String | Optional | Sort by
|
--sortingOrder |
String | Optional | Sort order
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to retrieve the list of init scripts is successful, basic information about each script is returned.
Command
The command example is as follows:
./ncloud vserver getInitScriptList \
--initScriptNoList 12345678 12345679 \
--osTypeCode LNX \
--pageNo 0 \
--pageSize 10 \
--sortedBy initScriptName \
--sortingOrder DESC \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"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"
}
}