getInitScriptList
- 인쇄
- PDF
getInitScriptList
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
개요
초기화 스크립트 조회
설명
초기화 스크립트 조회
응답 데이터 타입
- InitScriptList 타입
InitScriptList extends CommonResponse |
---|
private Integer totalRows; |
private List |
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
}}
<getInitScriptListResponse>
<requestId>babb8b95-e33e-48c0-879c-1f9d91cb5bb8</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<initScriptList>
<initScript>
<initScriptNo>1261</initScriptNo>
<initScriptName>windows-init2</initScriptName>
<createDate>2019-10-16T12:08:29+0900</createDate>
<initScriptContent>test2</initScriptContent>
<osType>
<code>LNX</code>
<codeName>LINUX</codeName>
</osType>
</initScript>
<initScript>
<initScriptNo>1260</initScriptNo>
<initScriptName>windows-init1</initScriptName>
<createDate>2019-10-16T12:08:20+0900</createDate>
<initScriptContent>test1</initScriptContent>
<osType>
<code>WND</code>
<codeName>WINDOWS</codeName>
</osType>
</initScript>
<initScript>
<initScriptNo>1259</initScriptNo>
<initScriptName>linux-init2</initScriptName>
<createDate>2019-10-16T12:08:01+0900</createDate>
<initScriptContent>#!/bin/sh
yum install -y httpd
echo 'Hello World2' > /var/www/html/index.html
chkconfig --level 2345 httpd on</initScriptContent>
<osType>
<code>LNX</code>
<codeName>LINUX</codeName>
</osType>
</initScript>
<initScript>
<initScriptNo>1258</initScriptNo>
<initScriptName>linux-init1</initScriptName>
<createDate>2019-10-16T12:07:44+0900</createDate>
<initScriptContent>#!/bin/sh
yum install -y httpd
echo 'Hello World' > /var/www/html/index.html
chkconfig --level 2345 httpd on</initScriptContent>
<osType>
<code>LNX</code>
<codeName>LINUX</codeName>
</osType>
</initScript>
</initScriptList>
<totalRows>4</totalRows>
</getInitScriptListResponse>
이 문서가 도움이 되었습니까?