getInitScriptList
    • PDF

    getInitScriptList

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Query the list of initialization scripts that user created.

    Request

    Request parameter

    Parameter NameRequired StatusTypeRestrictionsDescription
    regionCodeNoStringRegion Code
    You can decide the region where the initialization script list will be queried.
    The regionCode can be obtained through the getRegionList action.
    Default: Select the first region of the getRegionList query results.
    initScriptNoList.NNoList<String>List of the initialization script numbers
    You can search by filtering with the initialization script number.
    The initScriptNo can be obtained through the getInitScriptList action.
    ex) --initScriptNoList 1234 2345
    initScriptNameNoStringName of the initialization script
    You can search by filtering with the initialization script name.
    osTypeCodeNoStringOS type code
    You can search by filtering with the OS type specified when creating the initialization script.
    Options : LNX (LINUX) | WND (WINDOWS)
    pageNoNoIntegerThe page number of the paged results
    The results can shown as pages using pageNo and pageSize.
    pageSizeConditionalIntegerThe size of each page to be displayed at the time of paging
    The results can shown as pages using pageNo and pageSize.
    Enter it when entering pageNo.
    sortedByNoStringSorting target
    You can sort the results by initialization script name.
    Options : initScriptName
    sortingOrderNoStringSorting order
    When using sortedBy, set sorting in ascending /descending order.
    Options: ASC (ascending order) | DESC (descending order)
    Default : ASC
    responseFormatTypeNoStringFormat 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 getInitScriptList --regionCode KR --initScriptNoList ***44 ***45 --initScriptName test-*** --osTypeCode LNX
    

    Response example

    <getInitScriptListResponse>
      <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></initScriptContent>
          <osType>
            <code>LNX</code>
            <codeName>LINUX</codeName>
          </osType>
        </initScript>
      </initScriptList>
    </getInitScriptListResponse>
    

    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.