全部產品
Search
文件中心

ENS:CreateLoadBalancer - 建立Server Load Balancer執行個體

更新時間:Mar 20, 2026

調用CreateLoadBalancer介面建立Server Load Balancer執行個體。

介面說明

  • API 呼叫頻率:100 次/秒。

  • 單使用者調用頻率:5 次/秒。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ens:CreateLoadBalancer

create

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

EnsRegionId

string

ENS 節點 ID。

cn-chengdu-telecom

LoadBalancerSpec

string

Server Load Balancer執行個體的規格。

elb.s2.medium

LoadBalancerName

string

Server Load Balancer執行個體的名稱,長度為 1~80 個英文或中文字元。不指定該參數時,由系統隨機分配一個執行個體名稱。

說明

不能以http://https://開頭。

gcs-pre-websocket-eslb-telecom

PayType

string

付費類型。PostPaid(目前只支援此種):隨用隨付。

PostPaid

NetworkId

string

建立的邊緣負載平衡(ELB)執行個體的網路識別碼。

n-5sax03dh2eyagujgsn7z9****

VSwitchId

string

專用網路執行個體的所屬的交換器 ID。

vsw-5s78haoys9oylle6ln71m****

ClientToken

string

保證請求等冪性,避免多次重試帶來重複操作的問題。

  • 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元 。

  • 當您使用了一個已經使用過的 ClientToken,其他請求參數無變化,那麼重複提交該請求後,用戶端將收到與首次提交相同的結果,對您的服務端狀態沒有影響。

  • 在介面逾時或者錯誤碼為 PROCESSING 的時候可以發起重試,等冪有效。返回結果是 200 HTTPCode 時,重試後用戶端可以得到與上次相同的結果,但對您的服務端狀態沒有影響;返回結果是 4xx HTTPCode 時,且錯誤碼不是 PROCESSING 則等冪無效。

  • ClientToken 有效期間為 10 分鐘。

26C28756-2586-17AF-B802-0DC50D8FDEBB

BillingCycle

string

ELB 執行個體計費周期。

Hour

LoadBalancerType

string

邊緣Server Load Balancer執行個體類型。

  • CLB:傳統型Server Load Balancer執行個體

  • InternetDR:公網模式Server Load Balancer執行個體

CLB

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

1ECC937A-AE0E-4626-BE51-DED1D6D1C888

LoadBalancerId

string

Server Load Balancer執行個體的 ID。

lb-5s7crik3yo3bp03gqrbp5****

VSwitchId

string

Server Load Balancer執行個體的所屬交換器的 ID。

vsw-5savh5ngxh8sbj14bu7n****

LoadBalancerName

string

Server Load Balancer執行個體名稱。

gcs-pre-websocket-****

NetworkId

string

網路識別碼。

n-5sax03dh2eyagujgsn7z9****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "1ECC937A-AE0E-4626-BE51-DED1D6D1C888",
  "LoadBalancerId": "lb-5s7crik3yo3bp03gqrbp5****",
  "VSwitchId": "vsw-5savh5ngxh8sbj14bu7n****",
  "LoadBalancerName": "gcs-pre-websocket-****",
  "NetworkId": "n-5sax03dh2eyagujgsn7z9****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidParameter.%s The specified field %s invalid. Please check it again.
400 NoPermission Permission denied.
400 SaleControl.VerificationFailed You did not pass the salecontrol verification.Please contact the product. 建立資源的時候沒有通過資源的售賣約束校正
400 CallInterface Call Interface Happen Error. 介面調用出錯。
400 OrderFailed Order failed, please try again. 訂單失敗請重試
400 SystemUseCouponFailed Failed to use coupon. 使用代金券失敗
400 SystemUseStoredCardFailed Failed to use stored value card. 使用儲值卡失敗
400 System.SystemError system error. 後端系統錯誤
400 SystemCanRefundCheckFailed The business rule check of the cloud product fails, and this order cannot be refunded. 雲產品商務規則檢查不通過,本訂單無法申請退款
400 SystemOtsSystem ots storage error. ots儲存錯誤
400 SystemQueryImmortalError Failed to call Juxiange. 調用聚仙閣失敗
400 SystemQueryInstanceInfoFailed Failed to find instance information. 尋找執行個體資源資訊失敗
400 SystemResellerPayCalRefundUnitError Ecological payment channel calculation unsubscribe information error. 生態支付渠道計算退訂資訊錯誤
400 SystemSaleValidateFailed Sales Expression Validation System Error. 銷售運算式校正系統錯誤
400 SystemTransferDeleteOldResourceFailed Failed to delete the transferred instance in the transfer order. 過戶訂單邏輯刪除已過戶執行個體失敗
400 SystemUnSupportOperationType Unsupported operation type. 不支援的操作類型
400 RiskRiskControlRejection Risk Control Rejection. 風險控制拒絕
400 AuthRamAuthFailed ram sub-account authentication failed.
400 CommodityInvalidComponent The module you purchased is illegal, please re-select. 你購買的模組非法,請重新選擇
400 CommodityInvalidItemCode Specification code illegal. 規格code非法
400 PriceHsfTimeoutError Time out when calling the request for quotation interface. 調用詢價介面逾時
400 PricePatingConfigError Inquiry related goods configuration error. 詢價相關商品配置錯誤
400 PricePricingPlanResultNotFound Pricing plan price result not found. 定價計劃價格結果沒有找到
400 PriceRatingGetRatingpricingPlan Obtain a valid pricing plan exception. 得到有效定價計劃異常
400 OrderAbnormalResourceStatusForRenew Invalid resource status for renewal. 續約資源狀態非法
400 OrderAccountStatusIllegal Illegal account status. 帳號狀態非法
400 OrderArrearage User Arrears. 使用者欠費
400 OrderBidUserOrderForbidden Bid users cannot buy on the official website. bid使用者不能在官網購買
400 OrderCaptureFailed The paid order of the instance has not been deducted successfully. 執行個體的已支付訂單未扣款成功
400 OrderExistsReleasedInstances There are already released instances. 存在已經釋放的執行個體
400 OrderGroupOrderSizeOverflow The quantity of bound combined payment order exceeds the limit. 綁定合并支付訂單數量超限
400 OrderHomeCurrencyCanNotDowngrade Users in current currency cannot downgrade. 本幣使用者不能降配
400 OrderHomeCurrencyCanNotUpgradeByValueTransfer Users of current currency cannot upgrade through residual value transfer. 本幣使用者不能通過剩餘價值轉移的方式升級
400 OrderInstanceHasInactiveChange Instances exist temporary upgrade. 執行個體存在臨時升級
400 OrderInstHasUnpaidOrder The instance has an unpaid order. 執行個體有未支付訂單
400 OrderInstHasUnsettledBills The instance has an unsettled bill. 執行個體有未結算賬單
400 OrderLatestOrderIsHandling Recent order is being processed, please try again later. 最近的訂單正在處理中,請稍候重試
400 OrderMainOrderSizeOverflow The quantity of the main order exceeds the limit. 主訂單數量超限
400 OrderMissingModuleInfoError Module parameter not specified. 未指定模組參數
400 OrderNoRealNameAuthentication No real-name authentication. 未實名認證
400 OrderNotFound The specified order information is not found. 未查詢到指定的訂單資訊
400 OrderOpend You have activated this product. 您已開通該產品
400 OrderPeriodInvalid Illegal order cycle. 訂購周期非法
400 OrderQuantityInvalid Illegal quantity ordered. 訂購數量非法
400 OrderQueryInstanceError Query instance error. 查詢執行個體錯誤
400 OrderQueryInstanceNotExists Instance data does not exist. 執行個體資料不存在
400 OrderQueryOrderExchangeRateFail Failed to query order exchange rate information. 查詢訂單匯率資訊失敗
400 OrderQueryUserSettleInfoFail Failed to query user settlement information. 查詢使用者結算資訊失敗
400 OrderQuotaExceeded Quantity exceeds limit. 數量超出額度限制
400 OrderSysConstraintInvalid System constraint check failed. 系統約束校正失敗
400 OrderTradeCompleteSettleInfoFail Failed to complete the order settlement currency amount information. 補全訂單結算幣種金額資訊失敗
400 TradeTradeOrderAfterPayCheckError You have already paid for the subsequent orders of this instance. The current order has been automatically voided and you cannot pay any more. 您已支付此執行個體的後續訂單,當前訂單已自動作廢,您不可再支付
400 PurchaseExistRenewchangeProd There is a renewal change subscription that has not yet taken effect. 存在未生效的續約變更配置訂購
400 PurchaseExistToBeValidProdRuleError Currently, there are temporary orders that are not in effect, and the upgrade operation cannot be performed. 當前有未生效的臨時訂購,不能進行升級操作
400 PurchaseExistToBeValidRenewChangeProdRuleError Currently, there is an uneffective renewal change subscription, and temporary upgrade operation cannot be performed. 當前有未生效續約變更配置訂購,不能進行臨時升級操作
400 PurchaseExistValidProdRuleError Currently, there is a temporary order in effect, and operations such as upgrade/downgrade/expansion/pre-transfer cannot be performed. 當前有生效中的臨時訂購,不能進行升級/降配/擴容/預轉後等操作
400 ProductInstanceReleased Instance released. 執行個體已釋放
400 ProductInstanceTypeNotSupported The instance type is not supported. 執行個體類型不支援
400 PatRiskRejectForTradeData Payment order problem leads to risk control rejection. 支付訂單問題導致風控拒絕
400 PayAccountBookNotExist There is no insufficient account balance in the account book, please retry after recharging. 賬本不存在 賬戶餘額不足,請儲值後重試
400 PayAmountLimitExceeded Payment limit exceeded, please resubmit. 超出支付限額,請重新提交
400 PayBeforePayRiskRuleValidateFailed The payment was blocked by risk control, and the payment failed. 該筆支付被風險控制攔截,支付失敗
400 PayCounponNotExist Counpon does not exist. 代金券不存在
400 PayCouponAmountNotEnough Insufficient voucher balance or expired. 代金券餘額不足或已到期
400 PayCouponNotMeetConsumptionRule The coupon does not meet the conditions for use. 代金券不滿足使用條件
400 PayCurrencyInconsistency Currency mismatch. 幣種不匹配
400 PayCurrencyNotSupported Currency not supported. 幣種不支援
400 PayForbiddenNoReasonFefund Banned five days no reason refund. 禁止五天無理由退款
400 PayHsfTimeoutError Call payment system timeout. 調用支付系統逾時
400 PayInsufficientBalance Account balance is insufficient, please recharge and try again. 賬戶餘額不足,請儲值後重試
400 PayInvalidCreditCard Invalid credit card. 信用卡無效
400 PayInvalidPayMethod Illegal payment method. 支付方式非法
400 PayMegrePayOrderHasThanOneChagreChannel Payment failed, please retry or submit work order feedback. 支付失敗,請重試或提交工單反饋
400 PayNoCreditCard No valid payment method, please check the payment method and try again. 沒有有效支付方式,請檢查支付方式後重試
400 PayOrderPayTimeInvalid Order effective time is invalid. 訂單生效時間無效
400 PayPartRefundNotSupport Not Capture, no partial refund. 未Capture,不能部分退款
400 PayPayChannelPayOrderInvalidStatus Illegal status of payment order in payment channel. 支付渠道支付訂單狀態非法
400 PayPayChannelPayOrderNotExist Payment channel payment order does not exist. 支付渠道支付訂單不存在
400 PayPayerAccountIllegal Illegal payment account. 支付賬戶非法
400 PayPayFailedParentRelationchanged If the financial custody relationship changes, please void the order and place a new order for payment. 財務裝載關聯性發生變化,請作廢訂單並重新下單支付
400 PayPayForbidUserCoupon Coupon prohibited for orders. 訂單禁止使用代金券
400 PayQueryAvailableAmountFailed Failed to query user availability, please try again later. 查詢使用者可用金失敗,請稍後重試
400 PayQueryAvailableEnduserAmountFailed Failed to query the availability of quota direct customer main user, please try again later. 查詢quota直客主使用者可用金失敗,請稍後重試
400 PayQueryParentRelationshipFailed Failed to query current user hosting relationship, please try again later. 查詢目前使用者裝載關聯性失敗,請稍後重試
400 PayQueryPayChangeChannelNotEqual Multi-order payment channels are inconsistent, please check whether the original order data payment channel is correct. 多訂單支付渠道不一致,請檢查原訂單資料支付渠道是否正確
400 PayRefundFailed Accumulated refund amount exceeds payment order amount. 累計退款金額超過支付單金額
400 PayResellerPayGetUrlError Order payment failed, please try again later. 訂單支付失敗,請稍後重試
400 PayRiskRejectForPayerAccount Payment account problem leads to risk control rejection. 支付賬戶問題導致風控拒絕
400 PayStoredCardNotExist Stored value card does not exist. 儲值卡不存在
400 PaySystemError Error calling payment system. 調用支付系統錯誤
400 PayTaxCalcFailed Failed to get user tax address. 擷取使用者計稅地址失敗
400 PayWithholdingAgreementIllegal Withholding Agreement Status Illegal. 代扣協議狀態非法
400 AccountAliyunAccountFrozen Alibaba Cloud account is frozen. 阿里雲帳號被凍結
400 AccountAliyunAccountNotExist Alibaba Cloud account does not exist. 阿里雲帳號不存在
400 RefundRefundInstanceNotFound Unable to find instance information. 無法查到執行個體資訊
400 RefundRefundNoValidProd Refund is not available to unsubscribe. 退款無可退訂購
400 RefundRefundParamInvalid Abnormal refund parameter. 退款參數異常
400 RefundRefundQueryOrderFail Failed to query order for refund field. 退款域查詢訂單失敗
400 SystemConcurrentOperate Concurrent operation causes failure. 並行作業導致失敗
400 PricePricingPlanNotFound Pricing plan tree not found. 定價計劃樹沒有找到
400 OrderInstanceHasTempUpgrade Instances exist temporary upgrade. 執行個體存在臨時升級
400 PayQueryParentRelationchangedFailed The financial custody relationship may change, please refresh and pay again. 財務裝載關聯性可能發生變化,請重新整理後重新支付
400 PayforCreditPayInsufficientBalance Insufficient quota, please contact your channel partner to increase the quota. 額度不足,請聯絡您的通路合作夥伴提升額度
400 PayforAccountMoneyValidateError The available amount of your channel partner's account is insufficient, please contact your channel partner to recharge in time. 您的通路合作夥伴的帳號可用金額不足,請聯絡您的通路合作夥伴及時儲值
400 BasicInfoUncompleted You have not completed your basic personal information. Please complete the information and re-operate it. 您未完善個人基本資料,請完善資訊後重新操作
400 Processing Request is in progress, please try again later. 請求正在處理中,請稍後重試

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情