GetNetworkLoadBalancerPrice - GetNetworkLoadBalancerPrice
Overview
GetNetworkLoadBalancerPrice
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetNetworkLoadBalancerPrice . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See Region and Zone List | Yes |
ProjectId | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API | No |
ChargeType | string | Payment Mode Limited enumeration values: "Year" / "Month"/ "Dynamic" Default to get three types of prices | No |
PayMode | string | Load Balancing Instance Billing Method Limited enumeration values: "Instance" / "LCU" Default value: "Instance". | No |
Quantity | int | Purchase Duration No need for this parameter when purchasing by the hour (Dynamic). When paying monthly, this parameter is set to 0, which means purchase until the end of the month. Default is 1. | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Prices | array[PriceDetail] | Yes |
Data Model
PriceDetail
Field Name | Type | Description Information | Required |
---|---|---|---|
ChargeType | string | Payment Method for Load Balancing | No |
Price | float | Actual price for purchasing Load Balancing, unit "Yuan" | No |
CustomPrice | float | User discounted price, unit "yuan". CustomPrice=OriginalPrice*User Discount | No |
OriginalPrice | float | Original price of purchasing Load Balancer, unit "Yuan" | No |
PurchaseValue | int | Resource validity period, represented by Unix Timestamp | No |
Example
Request Example
https://api.surfercloud.com/?Action=GetNetworkLoadBalancerPrice
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=nGnZnGNf
&ChargeType=FftdAOgA
&PayMode=WVsBoyws
&Quantity=PNtsJWRQ
Response Example
{
"Action": "GetNetworkLoadBalancerPriceResponse",
"Prices": [
{
"ChargeType": "YMQVkefZ",
"CustomPrice": 2.94455,
"OriginalPrice": 3.55214,
"Price": 4.19143,
"PurchaseValue": 6
}
],
"RetCode": 0
}