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.

getInitScriptDetail

Prev Next

Available in VPC

Get details of an init script.

Syntax

The getInitScriptDetail syntax is as follows:

./ncloud vserver getInitScriptDetail \
    --initScriptNo <init-script-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getInitScriptDetail.

Required options

The following options are required for getInitScriptDetail.

Options Type Required Description
--initScriptNo String Required Init script number

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to view details of an init script is successful, the script's identification information and content are returned.

Command

The command example is as follows:

./ncloud vserver getInitScriptDetail \
    --initScriptNo 12345678 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getInitScriptDetailResponse": {
    "totalRows": 1,
    "initScriptList": [
      {
        "initScriptNo": "12345678",
        "initScriptName": "test-init-script-01",
        "createDate": "2026-05-14T14:08:35+0900",
        "initScriptDescription": "Test init script for documentation",
        "initScriptContent": "#!/bin/bash\necho \"Hello from init script\"\nsudo apt-get update -y",
        "osType": {
          "code": "LNX",
          "codeName": "LINUX"
        }
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}