CreateLoadBalancer
1. API Description
This API is used to create a load balancer instance.
2. Input Parameters
The following request parameter list only provides API request parameters.
regionId
Yes
String
Region ID.
vpcId
Yes
String
VPC ID to which the load balance backend server belongs.
loadBalancerName
Yes
String
Load balance instance name.
Containing 1 to 64 characters.
Available range: [1.0, +).
bandwidthMbps
Yes
Integer
Maximum outbound bandwidth of the elastic IP.
Unit: Mbps.
The maximum limit is usually 10000
Mbps. If you have additional requirements, please contact Support.
Available range: [1, +).
trafficPackageSize
No
Float
Data transfer package size.
The parameter is only required when internetChargeType
is ByTrafficPackage
.
Available range: [0.0, 999999.0].
bandwidthClusterId
No
String
ID of bandwidth cluster.
The parameter is only required when internetChargeType
is BandwidthCluster
.
resourceGroupId
No
String
Resource Group ID
If not specified, the load balance instance will belong to the default resource group.
number
No
Integer
The number of created load balancers.
Default value: 1
.
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required to locate a problem.
orderNumber
String
Order number.
loadBalancerIds
Array of String
A collection of unique IDs of the load balancers.
4. Code Example
Create a public network load balancer. IP billing method is flat rate.
5. Developer Resources
Zenlayer Cloud API 2.0 SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
404
INVALID_VPC_NOT_FOUND
VPC does not exist.
Last updated