docs
api
ULightHost(ULHost)
GetULHostInstancePrice

Get ULightHost package price - GetULHostInstancePrice

Overview

Get ULightHost package price

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetULHostInstancePrice.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
BundleIdstringPackage IDYes
ChargeTypestringGet the price for the specified billing mode. Enumeration values:

> Year, pay annually;

> Month. When not specified, return the prices for all billing modes.
No
CountintNumber of purchases, range [1,5]. Default: 1No
QuantityintPurchase duration. Default: 1. Purchase until the end of the month is not supported.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
PriceSetarray[ULHostPriceSet]Yes

Data Model

ULHostPriceSet

Field NameTypeDescription InformationRequired
ChargeTypestringBilling ModeNo
PricefloatPriceNo
OriginalPricefloatOriginal PriceNo

Example

Request Example

https://api.surfercloud.com/?Action=GetULHostInstancePrice
&Region=cn-zj
&ProjectId=CGVOWzNf
&BundleId=ogJbCxRp
&ChargeType=EuTiscZq
&Count=4
&Quantity=2

Response Example

{
  "Action": "GetULHostInstancePriceResponse",
  "Message": "vKVZkQZk",
  "PriceSet": [
    {
      "ChargeType": "KiRfqWCb",
      "ListPrice": 6.67657,
      "ListPriceDetail": {},
      "OriginalPrice": 8.63741,
      "OriginalPriceDetail": {},
      "Price": 4.88968,
      "PriceDetail": {}
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.