getInitScriptList
    • PDF

    getInitScriptList

    • PDF

    Article summary

    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 &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>
    

    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 codeReturn codeReturn message
    40010400Invalid authentication key. Please check authentication key or input type and try again.
    40010401Input authentication message does not coincide.
    40010402Authentication message input time has been exceeded. Please try again.
    40010403Session has been expired.
    40010404This is not authenticated session.

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.