Create ULightHost - CreateULHostInstance


Create ULightHost


Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateULHostInstance.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ImageIdstringImage ID. Please obtain it through DescribeImageYes
BundleIdstringPackage ID. For example: "ulh.c1m1s40b30t800".Yes
PasswordstringULHost password. Please set the password according to the field specification. The password needs to be encoded with base64, as shown in the example below: # echo -n Password1 | base64Yes
NamestringLight application host name. Default: Package ID. Please set the instance name according to the field specification.No
ChargeTypestringBilling mode. Enumeration values:

> Year, pay annually;

> Month, pay monthly; Default: Month
QuantityintPurchase duration. Default: 1. Purchase until the end of the month is not supported.No
VPCIdstringVPC ID. The default is the default VPC for the current region.No
SubnetIdstringSubnet ID. The default is the default subnet for the current region.No
SecurityGroupIdstringFirewall ID, default: Web recommended firewall. For how to query SecurityGroupId, please refer to DescribeFirewall.No
CouponIdstringHost coupon ID. Please query through the DescribeCoupon interface, or log in to the user center to view.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
ULHostIdstringInstance IDYes


Request Example

Response Example

  "Action": "CreateULHostInstanceResponse",
  "Message": "UQIsLeri",
  "RetCode": 0,
  "ULHostId": "DJCRwHar"
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.