Creates a Classic Load Balancer (CLB) instance.
Operation description
-
Before you create a CLB instance, call the operation to query the resources available for purchase in the region where you want to create the CLB instance.
-
After a CLB instance is created, you are charged for using the CLB instance.
-
Pay-as-you-go CLB instances only support the pay-by-LCU instance resource metering method. As of 00:00:00 (UTC+8) on June 1, 2025, pay-by-specification CLB instances are no longer available for purchase. For more details, see .
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:CreateLoadBalancer |
create |
*LoadBalancer
|
|
None |
Request parameters
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VpcId |
string |
The ID of the VPC to which the CLB instance belongs. |
vpc-25dvzy9**** |
| AddressIPVersion |
string |
The IP version that is used by the CLB instance. |
ipv4 |
| VSwitchId |
string |
The ID of the vSwitch to which the CLB instance belongs. |
vsw-255ecr**** |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| LoadBalancerName |
string |
The CLB instance name. |
lb-bp1o94dp5i6ea**** |
| LoadBalancerId |
string |
The CLB instance ID. |
lb-hddhfjg**** |
| ResourceGroupId |
string |
The ID of the resource group to which the CLB instance belongs. |
rg-atstuj3rto**** |
| Address |
string |
The IP address that is allocated to the CLB instance. |
42.XX.XX.6 |
| NetworkType |
string |
The network type of the CLB instance. Valid values:
|
classic |
| OrderId |
integer |
The order ID of the subscription CLB instance. |
20212961978**** |
Examples
Success response
JSON format
{
"VpcId": "vpc-25dvzy9****",
"AddressIPVersion": "ipv4",
"VSwitchId": "vsw-255ecr****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"LoadBalancerName": "lb-bp1o94dp5i6ea****",
"LoadBalancerId": "lb-hddhfjg****",
"ResourceGroupId": "rg-atstuj3rto****",
"Address": "42.XX.XX.6",
"NetworkType": "classic",
"OrderId": 0
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationFailed.ZoneResourceLimit | The operation failed because of resource limit of the specified zone. | |
| 400 | CloudBoxNotSupportIpv6 | The cloudBox instance does not support ipv6. | |
| 400 | CloudBoxNotSupportInternet | The cloudBox instance does not support internet. | |
| 400 | OperationFailed.RegionResourceLimit | The operation failed because of resource limit of the specified region. | |
| 400 | Operation.NotAllowed | Operation Denied. The charge type of internet prepay instance can only be paybybandwidth. | |
| 400 | OperationFailed.UnpaidBillsExist | The account has unpaid bills. Please pay your overdue bill first. | |
| 400 | RegionOrZonesNotSupportIpv6 | The specified region or master/slave zones does not support ipv6. | |
| 400 | InvalidParameter.Mismatch | AddressType and IpVersion is conflict, IPv6 does not support intranet instance. | |
| 400 | PAYFOR.CREDIT_PAY_INSUFFICIENT_BALANCE | Your account does not have enough balance. | |
| 400 | HighRiskOperationDenied | The operation is denied because of high risk. | |
| 400 | VSwitchAvailableIpNotExist | The specified VSwitch has no availabe ip. | |
| 400 | VSwitchNotExist | The specified VSwitch does not exist. | |
| 400 | InvalidParameter | Illegal parameter. The IP address is not in subnet. | |
| 400 | Instance.ShareSlbNotSupportPay95 | Illegal parameter. The share instance not support PayBy95 or PayByOld95. | |
| 400 | Instance.Pay95RateInvalid | Illegal parameter. The rate is illegal. | |
| 400 | Instance.Pay95BandwidthIllegal | Illegal parameter. The bandwidth is illegal. | |
| 400 | Instance.InternetChargeTypeNotAllowed | Illegal parameter. The specified InternetChargeType not allowed. | |
| 400 | OperationFailed.TokenIsProcessing | The operation is failed, because the Client Token is processing. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | Your account balance is insufficient. Top up your account and try again. |
| 400 | MissingParam.VSwitchId | The parameter VSwitchId is required. | |
| 400 | InvalidVpcId.NotExist | The specified VPC not exist. | |
| 400 | PAY.MAYI_WITHHOLDING_AGREEMENT_ILLEGAL | Your account did not sign a withholding agreement or no coupons in Alipay. | |
| 400 | InvalidParameter.CloudType | The specified CloudType is invalid. | |
| 400 | OperationFailed.InvalidAccount | The account information is incomplete. | |
| 400 | RegionOrZonesNotSupportCEN | The specified region or master/slave zones does not support cloudType of hybrid_cen. | |
| 400 | MissingParam.LoadBalancerSpec | The param LoadBalancerSpec is required. | |
| 400 | InvalidParameter.Bandwidth | The param Bandwidth is invalid. | |
| 400 | OperationForbidden.AccountRiskReject | The operation failed because of account risk reject. | |
| 400 | OperationForbidden.QuotaLimit | The operation failed because of quota limit of shared loadbalancers. | |
| 400 | InvalidParam.ModificationProtectionStatus | The param ModificationProtectionStatus is invalid. | |
| 400 | InvalidParam.ModificationProtectionReason | The param ModificationProtectionReason is invalid. | |
| 400 | ShareSlbHaltSales | The share instance has been discontinued. | |
| 400 | OperationFailed.CashBookInsufficient | No payment method is specified for your account, We recommend that you add a payment method or maintain a prepayment balance. | |
| 400 | OperationFailed.OnlyInnerCommoditySupportToPurchase | AliCroup2Cloud user only can buy inner commodity. | |
| 400 | OperationFailed.InvokeLingXiaoFailed | Failed to invoke lingxiao service. | |
| 400 | AllocateVpcInstanceFailed | Failed to allocate vpc instance. | |
| 400 | QueryCreditCtrlInfoFailed | Failed to query credit ctrl info. | |
| 400 | QueryCommodityCenterFailed | Failed to query commodity center. | |
| 400 | RegionNotSupportParameter | Current region does not support the param of %s. | |
| 400 | QueryAccountBookInfoFailed | Failed to invoke account book info. | |
| 400 | RateAccountFailed | Failed to rate account for pricing. | |
| 400 | TradeWaitDistributorAudit | The trade needs distributor to audit. | |
| 400 | OperationFailed.InvokeProxyFailed | Failed to invoke proxy. | |
| 400 | QueryAccountCompleteProgressFailed | Failed to query account progress. | |
| 400 | QueryVoucherInfoFailed | Failed to query voucher info. | |
| 400 | InvalidVSwitchId.NotFound | The specified vSwitch instance is invalid. | The current specified vswitch instance is illegal. |
| 400 | IllegalParam.SpecType | The param of SpecType is illegal. | |
| 400 | MissingParam.SpecType | The param of SpecType is missing. | |
| 400 | UnsupportedRegion | The feature is not supported in current region. | |
| 400 | PayInsufficientBalance | Your account balance is insufficient. | |
| 400 | IllegalParam.InstanceChargeType | The parameter InstanceChargeType is illegal. | |
| 400 | SystemBusy | The system is busy. | System Busy |
| 400 | PRODUCT.NOT_AVAILABLE_IZ | The Instance zone id doesn t support | |
| 400 | PRICE.INQUIRY_FAILED | The instance pricing inquiry is failed. | |
| 400 | AssociateIpFail | The instance associating ip is failed. | |
| 400 | SDK.ServerUnreachable | Service is unreachable. | |
| 400 | OverQuota | The Total is over the quota | Total amount has reach the limit. Reduce the quantity and try again. |
| 400 | InvalidParam.TagValue | %s. | |
| 400 | InvalidParam.TagKey | %s. | |
| 400 | SizeLimitExceeded.Tag | %s. | |
| 400 | MissingParam.TagKey | The param MissingParam.TagKey is missing. | |
| 400 | SubnetIpExhaust | No subnet IP addresses are available. | No subnet IP address is available. |
| 400 | BeforePayRuleBatchValidateError | The pre-payment rule center instance rule validation failed. Please check if the instance limit has been reached. | |
| 400 | TradeSyncCreateSubError | Subscription transfer failed. | |
| 400 | QueryOrderError | Failed to query the order. Please try again later. | |
| 400 | CreateOrderTimeout | Order creation timed out. Please try again later. | |
| 400 | MultiGrayKeyResourceInconsist | The identifier for the gray resource is set incorrectly. | |
| 400 | InsufficientAvailableQuota | Your account available balance is less than 0. Please recharge before attempting to make a purchase. | |
| 400 | Forbidden.AliGroupForbiddenRegion | Thre region is forbidden for aligroup user. | |
| 403 | SecurityRisk.AuthVerification | We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification. | We have detected a security risk with your payment method. Please proceed with verification via the link in your email or console message and re-submit your order after verification. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.