getInitScriptList
- Print
- PDF
getInitScriptList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Get initialization script
Description
Get initialization script
Response Data Type
- InitScriptList type
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; |
Examples
Request
ncloud server getInitScriptList
Response
{"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>
Was this article helpful?