getInitScriptList

Prev Next

Overview

Get the list of initialization scripts created by the user.

Request

Request parameters

Parameter name Required Type Restrictions Description
responseFormatType No String - Response result's format type
Options: xml | json
Default: xml

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 &apos;Hello World2&apos; &gt; /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 &apos;Hello World&apos; &gt; /var/www/html/index.html
chkconfig --level 2345 httpd on</initScriptContent>
      <osType>
        <code>LNX</code>
        <codeName>LINUX</codeName>
      </osType>
    </initScript>
  </initScriptList>
</getInitScriptListResponse>

Errors

Errors that may occur while using this action are listed below. For more information about common errors, see 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.