CreateULHostInstance
Introduction
Create a lightweight application cloud host
Instructions
You can choose any of the following methods to initiate an API request:
Multilingual OpenSDK / Java /
CloudShell cloud command line
Definition
Common parameter
Parameter name | Type | Required | |
---|---|---|---|
Action | string | The corresponding API instruction name, the current API is CreateULHostInstance | Yes |
PublicKey | string | The user’s public key, available from Console fetch | Yes |
Signature | string | According to the public key and API The user signature generated by the directive is found in Signature algorithm | Yes |
Request parameter
The parameter name | Type | Description | Required |
---|---|---|---|
Region | string | See List of Regions and Availability Zones | Yes |
ProjectId | string | Project ID (example: org-04ibqy ), This field, by default, is empty and is only required when the account is a Sub-Account. | No |
ImageId | string | mirror imageID. | Yes |
BundleId | string | Package ID. Such as: ulh.c1m1s40b30T800 | Yes |
Password | string | ULHost cipher. Please set the password according to the field specification. The password needs to be encoded using base64, for example: # echo -n Password1 \| base64 | Yes |
Name | string | Simple application host name. Default: The plan ID. Follow the field specification to set the instance name. | No |
ChargeType | string | Billing model. Enumeration value: Year, paid annually; Month, payable monthly; Default: Month | No |
Quantity | int | Duration of purchase. Default: 1. Purchase to the end of the month is not supported | No |
CouponId | string | Host voucher ID. Please check through the DescribeCoupon interface, or log in to the user center to view | No |
Response field
Field name | Type | Describe | Required |
---|---|---|---|
RetCode | int | Returns a status code, with 0 for success and failure for non-0 | Yes |
Action | string | The name of the operation instruction | Yes |
Message | string | Returns an error message that provides detailed description information when RetCode is non-0 | No |
ULHostId | string | Instance ID | Yes |
Example
Example request
https://api.scloud.sg?Action=CreateULHostInstance
&Region=vn-sng
&ProjectId=BiVhUqWM
&BundleId=WKrqUTuj
&ChargeType=iHquSVAk
&Password=KzuuLxoH
&Quantity=4
&Quantity=8
&ImageId=reBHwafg
&ImageId=qCkNplRb
&CouponId=JsBRKuuV
&ImageId=MmsUzsUT
&CouponId=ymmIIHOA
&BillActivityId=8
&BillActivityRuleId=6
&Name=dtIbqVbo
Example response
{
"Action": "CreateULHostInstanceResponse",
"Message": "UQIsLeri",
"RetCode": 0,
"ULHostId": "DJCRwHar"
}