getInitScriptDetail

Prev Next

Can be used in a VPC environment.

Overview

Query the initialization script details using the initialization script number.

Request

Request parameter

Parameter Name Required Status Type Restrictions Description
regionCode No String Region Code
You can decide the region where the initialization script details will be queried.
The regionCode can be obtained through the getRegionList action.
Default: Select the first region of the getRegionList query results.
initScriptNo Yes String The number of the initialization script to be queried
The initScriptNo can be obtained through the getInitScriptList action.
responseFormatType No String Format type for the response result
Options : xml | json
Default : xml

Response

Response data type

  • InitScriptList type
InitScriptList extends CommonResponse
private Integer totalRows;
private List<InitScript> initScriptList = new ArrayList<>();
InitScript
private String initScriptNo;
private String initScriptName;
private Date createDate;
private String initScriptDescription;
private String initScriptContent;
private CommonCode osType;

Example

Request example

ncloud vserver getInitScriptDetail --regionCode KR --initScriptNo ***44

Response example

<getInitScriptDetailResponse>
  <requestId></requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <initScriptList>
    <initScript>
      <initScriptNo>***44</initScriptNo>
      <initScriptName>test-***</initScriptName>
      <createDate>2020-08-20T12:24:37+0900</createDate>
      <initScriptDescription></initScriptDescription>
      <initScriptContent>#!/bin/bash</initScriptContent>
      <osType>
        <code>LNX</code>
        <codeName>LINUX</codeName>
      </osType>
    </initScript>
  </initScriptList>
</getInitScriptDetailResponse>