getInitScriptList
- Print
- PDF
getInitScriptList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Inquires the user-created initialization script list.
Request
Response
Response body
Examples
Request example
GET {SERVER_API_URL}/getInitScriptList
Response example
<getInitScriptListResponse>
<requestId>a51d3a67-e41c-4784-89f9-081f1ffba5e2</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>4</totalRows>
<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>
</getInitScriptListResponse>
Error codes
Errors that may occur while using this action are listed below. For information on common errors, refer to NAVER Cloud Platform API.
HTTP response code | Return code | Return message |
---|---|---|
400 | 10400 | Invalid authentication key. Please check authentication key or input type and try again. |
400 | 10401 | Input authentication message does not coincide. |
400 | 10402 | Authentication message input time has been exceeded. Please try again. |
400 | 10403 | Session has been expired. |
400 | 10404 | This is not authenticated session. |
Was this article helpful?