Docs
api
Network Load Balance(NLB)
CreateNetworkLoadBalancer

CreateNetworkLoadBalancer - CreateNetworkLoadBalancer

Overview

CreateNetworkLoadBalancer

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateNetworkLoadBalancer.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Zone ListYes
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APINo
VPCIdstringThe resource ID of the VPC to which the load balancing instance belongsYes
SubnetIdstringSubnet resource ID to which the load balancing instance belongsYes
ApiVersionstringAPI Version, limited values v1.0 v2.0, default value: v2.0No
TagstringThe business group ID to which the load balancing instance belongsNo
NamestringName of the Load Balancing Instance
Character length limit: [1-255]
Only supports special characters: -_.
Default value: nlb
No
RemarkstringRemarks information for the load balancing instance
Character length limit: [0-255]
No
IPVersionstringIP protocol of the load balancing instance, limited values: IPv4/IPv6/DualStack, default value: IPv4No
ChargeTypestringPayment mode, limited values: Dynamic/Month/YearNo
QuantityintPurchased DurationNo
CouponIdstringCoupon CodeNo

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
NLBIdstringYes

Example

Request Example

https://api.dezai.com/?Action=CreateNetworkLoadBalancer
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=HkjWDdfl
&VPCId=EssQuIsg
&SubnetId=vyYFxdTt
&Version=wJdyXLks
&Tag=AMKOemER
&Remark=bhMftnEX
&IPVersion=fVEAhtVI
&ChargeType=RflnbSTn
&Quantity=2
&CouponId=gnDIbnkQ
&Name=tFAHapTS

Response Example

{
  "Action": "CreateNetworkLoadBalancerResponse",
  "Message": "cfTYWNPs",
  "NLBId": "gTFbefPL",
  "RetCode": 0
}