---
title: "getInitScriptList"
slug: "cli-server-getinitscriptlist"
updated: 2026-09-17T09:16:00Z
published: 2026-09-17T09:16:00Z
canonical: "cli.ncloud-docs.com/cli-server-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
## 개요
초기화 스크립트 조회
## 설명
초기화 스크립트 조회
## 응답 데이터 타입
- InitScriptList 타입
| InitScriptList extends CommonResponse |
| --- |
| private Integer totalRows; |
| private List initScriptList = new ArrayList(); |
| InitScript |
| --- |
| private String initScriptNo; |
| private String initScriptName; |
| private Date createDate; |
| private String initScriptDescription; |
| private String initScriptContent; |
| private CommonCode osType; |
## 예시
### 호출
```
ncloud server getInitScriptList
```
### 응답
```
{"getInitScriptListResponse": {
"requestId": "19a603b6-f5a1-4c89-8ffb-13637c3b6c5f",
"returnCode": "0",
"returnMessage": "success",
"initScriptList": [
{
"initScriptNo": "1261",
"initScriptName": "windows-init2",
"createDate": "2019-10-16T12:08:29+0900",
"initScriptContent": "test2",
"osType": {
"code": "LNX",
"codeName": "LINUX"
}
},
{
"initScriptNo": "1260",
"initScriptName": "windows-init1",
"createDate": "2019-10-16T12:08:20+0900",
"initScriptContent": "test1",
"osType": {
"code": "WND",
"codeName": "WINDOWS"
}
},
{
"initScriptNo": "1259",
"initScriptName": "linux-init2",
"createDate": "2019-10-16T12:08:01+0900",
"initScriptContent": "#!/bin/sh\nyum install -y httpd\necho 'Hello World2' > /var/www/html/index.html\nchkconfig --level 2345 httpd on",
"osType": {
"code": "LNX",
"codeName": "LINUX"
}
},
{
"initScriptNo": "1258",
"initScriptName": "linux-init1",
"createDate": "2019-10-16T12:07:44+0900",
"initScriptContent": "#!/bin/sh\nyum install -y httpd\necho 'Hello World' > /var/www/html/index.html\nchkconfig --level 2345 httpd on",
"osType": {
"code": "LNX",
"codeName": "LINUX"
}
}
],
"totalRows": 4
}}
```
```
babb8b95-e33e-48c0-879c-1f9d91cb5bb8
0
success
1261
windows-init2
2019-10-16T12:08:29+0900
test2
LNX
LINUX
1260
windows-init1
2019-10-16T12:08:20+0900
test1
WND
WINDOWS
1259
linux-init2
2019-10-16T12:08:01+0900
#!/bin/sh
yum install -y httpd
echo 'Hello World2' > /var/www/html/index.html
chkconfig --level 2345 httpd on
LNX
LINUX
1258
linux-init1
2019-10-16T12:07:44+0900
#!/bin/sh
yum install -y httpd
echo 'Hello World' > /var/www/html/index.html
chkconfig --level 2345 httpd on
LNX
LINUX
4
```