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

Prev Next

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
  • 1-1000 (default: 1)
  • Required when entering pageNo

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
  • You can enter multiple items separated by spaces. (e.g., --initScriptNoList 1234 2345)
--initScriptName String Optional Initialization script name
--osTypeCode String Optional Operating system type code
  • LNX | WND
    • LNX: Linux
    • WND: Windows
--pageNo Integer Optional Page number
  • 0-N (default: 0)
  • First page: Enter 0 or 1.
--sortedBy String Optional Sort by
  • initScriptName: Init script name
--sortingOrder String Optional Sort order
  • ASC (default) | DESC
    • ASC: Ascending order
    • DESC: Descending 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"
  }
}