getInitScriptList
- Print
- PDF
getInitScriptList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
Query the list of initialization scripts that user created.
Request
Request parameter
Parameter Name | Required Status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | Region 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.N | No | List<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 | |
initScriptName | No | String | Name of the initialization script You can search by filtering with the initialization script name. | |
osTypeCode | No | String | OS type code You can search by filtering with the OS type specified when creating the initialization script. Options : LNX (LINUX) | WND (WINDOWS) | |
pageNo | No | Integer | The page number of the paged results The results can shown as pages using pageNo and pageSize. | |
pageSize | Conditional | Integer | The 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. | |
sortedBy | No | String | Sorting target You can sort the results by initialization script name. Options : initScriptName | |
sortingOrder | No | String | Sorting order When using sortedBy, set sorting in ascending /descending order. Options: ASC (ascending order) | DESC (descending order) Default : ASC | |
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 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?