getInitScriptList
    • PDF

    getInitScriptList

    • PDF

    기사 요약

    개요

    초기화 스크립트 조회

    설명

    초기화 스크립트 조회

    응답 데이터 타입

    • InitScriptList 타입
    InitScriptList extends CommonResponse
    private Integer totalRows;
    private List initScriptList = new ArrayList();
    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 &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>
      <totalRows>4</totalRows>
    </getInitScriptListResponse>
    

    이 문서가 도움이 되었습니까?

    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.