createLaunchConfiguration
- Print
- PDF
createLaunchConfiguration
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Launch configuration is a template that Auto Scaling uses to create a cloud server instance for services. The template contains all information Auto Scaling needs to create a server instance. Launch configuration properties cannot be changed once created.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
launchConfigurationName | N | String | Min: 1 Max: 255 | Launch configuration name to identify launch configurationsDefault: Automatically specified by Ncloud |
serverImageProductCode | Conditional | String | Min: 1 Max: 20 | Product code of the software (including OS) installed in the server image. serverImageProductCode (Software product code) memberServerImageNo (Member server image number) Only one of the two values can be specified. |
serverProductCode | N | String | Min: 1 Max: 20 | Server product code associated with the server hardware specifications Default: created with the minimum specifications. |
memberServerImageNo | Conditional | String | - | Member server image number serverImageProductCode (Software product code) memberServerImageNo (Member server image number) Only one of the two values can be specified. |
accessControlGroupConfigurationNoList | N | List | Duplicates not allowed | If an access control group (ACG) configuration number is not specified, the default ACG is used. |
loginKeyName | N | String | Min: 3 Max: 30 | Login key name If it is not specified, the most recent login key name is used. Default: the most recent login key name |
userData | N | String | Min: 1 Max: 21847 | Only the BASE64-encoded character strings are allowed. When a server instance is booted for the first time, it decodes the BASE64-encoded character strings to run the script file that only contains plaintext character strings. When you pass in both userData and InitializationScriptNo parameters together, the generation error will be processed. |
initScriptNo | No | String | The server runs the initialization script that you set at first boot. Passes the initialization script number of the initialization script as a parameter. When you pass in both userData and initScriptNo parameters together, the generation error will be processed. The getInitScriptList action will help you get the initScriptNo. | |
regionNo | N | String | Get available values by using the getRegionList action. |
Response
Response body
Examples
Request example
{AUTOSCALILNG_API_URL}/createLaunchConfiguration
?launchConfigurationName=lc-0228
&serverImageProductCode=SPSW0LINUX000009
Response example
<createLaunchConfigurationResponse>
<requestId>19fff23d-d5cd-49fd-8a0a-986ae02bf660</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<launchConfigurationList>
<launchConfiguration>
<launchConfigurationName>lc-0228</launchConfigurationName>
<launchConfigurationNo>***013</launchConfigurationNo>
<serverImageProductCode>SPSW0LINUX000009</serverImageProductCode>
<serverProductCode>SPSVRSTAND000043</serverProductCode>
<memberServerImageNo />
<loginKeyName>hkey-0217</loginKeyName>
<createDate>2014-02-28T17:11:36+0900</createDate>
<userData />
<initScriptNo />
</launchConfiguration>
</launchConfigurationList>
</createLaunchConfigurationResponse>
Was this article helpful?