Belirtilen bir bölgede Ağ Yük Dengeleyicisi (NLB) örneği oluşturur.
Operation description
-
Bir NLB örneği oluşturduğunuzda, hizmete bağlı AliyunServiceRoleForNlb rolü otomatik olarak oluşturulur ve size atanır.
-
CreateLoadBalancer eşzamansız bir işlemdir. Bir istek gönderdikten sonra sistem bir örnek kimliği döndürür ve görevi arka planda çalıştırır. Bir NLB örneğinin durumunu sorgulamak için GetLoadBalancerAttribute işlemini çağırabilirsiniz.
-
Bir NLB örneği Provisioning durumundaysa, NLB örneği oluşturuluyor demektir.
-
Bir NLB örneği Active durumundaysa, NLB örneği oluşturulmuş demektir.
-
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:CreateLoadBalancer |
create |
*LoadBalancer
*VSwitch
EipAddress
*VPC
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerType |
string |
No |
Sunucu Yük Dengeleyicisi (SLB) örneğinin türü. Değeri, bir NLB örneğini belirten network olarak ayarlayın. |
network |
| LoadBalancerName |
string |
No |
NLB örneğinin adı. Uzunluğu 2 ila 128 karakter arasında olmalı, harf, rakam, nokta (.), alt çizgi (_) ve tire (-) içerebilmeli ve bir harfle başlamalıdır. |
NLB1 |
| AddressType |
string |
Yes |
NLB örneği için kullanılan IPv4 adreslerinin türü. Geçerli değerler:
Not
Çift yığınlı bir NLB örneği için genel bir IPv6 adresini etkinleştirmek üzere EnableLoadBalancerIpv6Internet işlemini çağırın. |
Internet |
| AddressIpVersion |
string |
No |
NLB örneği için kullanılan IP adreslerinin sürümü. Geçerli değerler:
|
ipv4 |
| VpcId |
string |
Yes |
NLB örneğini oluşturmak istediğiniz VPC'nin kimliği. |
vpc-bp1b49rqrybk45nio**** |
| ZoneMappings |
array<object> |
Yes |
Kullanılabilirlik bölgeleri ve vSwitch'ler arasındaki eşlemeler. Bir NLB örneği en fazla 10 kullanılabilirlik bölgesine dağıtılabilir. İlgili bölge iki veya daha fazla kullanılabilirlik bölgesini destekliyorsa, en az iki kullanılabilirlik bölgesi belirtmelisiniz. |
|
|
object |
No |
Kullanılabilirlik bölgesi ve vSwitch arasındaki eşleme. Bir NLB örneği en fazla 10 kullanılabilirlik bölgesine dağıtılabilir. İlgili bölge iki veya daha fazla kullanılabilirlik bölgesini destekliyorsa, en az iki kullanılabilirlik bölgesi belirtmelisiniz. |
||
| VSwitchId |
string |
Yes |
Kullanılabilirlik bölgesindeki vSwitch'in kimliği. Bir NLB örneğinin her kullanılabilirlik bölgesinde yalnızca bir vSwitch (alt ağ) belirtebilirsiniz. Bir NLB örneği en fazla 10 kullanılabilirlik bölgesine dağıtılabilir. İlgili bölge iki veya daha fazla kullanılabilirlik bölgesini destekliyorsa, en az iki kullanılabilirlik bölgesi belirtmelisiniz. |
vsw-sersdf**** |
| ZoneId |
string |
Yes |
NLB örneğinin dağıtıldığı kullanılabilirlik bölgesinin kimliği. Bir NLB örneği en fazla 10 kullanılabilirlik bölgesine dağıtılabilir. İlgili bölge iki veya daha fazla kullanılabilirlik bölgesini destekliyorsa, en az iki kullanılabilirlik bölgesi belirtin. En güncel kullanılabilirlik bölgesi listesini sorgulamak için DescribeZones işlemini çağırabilirsiniz. |
cn-hangzhou-a |
| PrivateIPv4Address |
string |
No |
IPv4 sürümünün özel sanal IP adresi (VIP). NLB örneğinin harici hizmetler sağlamak için kullandığı özel IPv4 adresi. |
192.168.10.1 |
| AllocationId |
string |
No |
İnternet'e açık NLB örneğiyle ilişkilendirilen esnek IP adresinin (EIP) kimliği. Her kullanılabilirlik bölgesine bir EIP atanır. Bir NLB örneği en fazla 10 kullanılabilirlik bölgesine dağıtılabilir. İlgili bölge iki veya daha fazla kullanılabilirlik bölgesini destekliyorsa, en az iki kullanılabilirlik bölgesi belirtin. |
eip-bp1aedxso6u80u0qf**** |
| Ipv6Address |
string |
No |
IPv6 sürümünün VIP'si. NLB örneğinin harici hizmetler sağlamak için kullandığı IPv6 adresi. |
2408:400a:d5:3080:b409:840a:ca:e8e5 |
| Ipv4LocalAddresses |
array |
No |
Yerel IPv4 adresleri. NLB örneğinin arka uç sunucularla iletişim kurmak için kullandığı IP adresları. IP adresi sayısı çift sayı olmalı, en az 2 ve en fazla 8 olmalıdır. |
|
|
string |
No |
Yerel IPv4 adresi. |
192.168.10.2 |
|
| Ipv6LocalAddresses |
array |
No |
Yerel IPv6 adresleri. NLB örneğinin arka uç sunucularla iletişim kurmak için kullandığı IP adresları. IP adresi sayısı çift sayı olmalı, en az 2 ve en fazla 8 olmalıdır. |
|
|
string |
No |
Yerel IPv6 adresi. |
2408:400a:d5:3080:b409:840a:ca:e8e6 |
|
| BandwidthPackageId |
string |
No |
İnternet'e açık NLB örneğiyle ilişkilendirilen İnternet Paylaşımlı Bant Genişliği örneğinin kimliği. |
cbwp-bp1vevu8h3ieh**** |
| LoadBalancerBillingConfig |
object |
No |
NLB örneğinin faturalandırma ayarları. |
|
| PayType |
string |
No |
NLB örneğinin faturalandırma yöntemi. Değeri, kullandıkça öde faturalandırma yöntemini belirten PostPay olarak ayarlayın. |
PostPay |
| ResourceGroupId |
string |
No |
Örneğin ait olduğu kaynak grubunun kimliği. |
rg-atstuj3rtop**** |
| DryRun |
boolean |
No |
Gerçek isteği yapmadan bir deneme çalıştırması yapılıp yapılmayacağını belirtir. Geçerli değerler:
|
false |
| ClientToken |
string |
No |
İsteğin yinelenebilirliğini sağlamak için kullanılan istemci belirteci. Belirteci oluşturmak için istemciyi kullanabilirsiniz. Belirtecin farklı istekler arasında benzersiz olduğundan emin olun. Yalnızca ASCII karakterlerine izin verilir. Not
Bu parametreyi belirtmezseniz, RequestId değeri kullanılır.**** RequestId değeri her istek için farklıdır. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
NLB örneğinin dağıtıldığı bölgenin kimliği. En güncel bölge listesini sorgulamak için DescribeRegions işlemini çağırabilirsiniz. |
cn-hangzhou |
| DeletionProtectionConfig |
object |
No |
Silme koruması özelliğinin yapılandırması. |
|
| Enabled |
boolean |
No |
Silme koruması özelliğinin etkinleştirilip etkinleştirilmeyeceğini belirtir. Geçerli değerler:
|
false |
| Reason |
string |
No |
Silme koruması özelliğinin etkinleştirilme veya devre dışı bırakılma nedeni. Neden 2 ila 128 karakter uzunluğunda olmalı, harf, rakam, nokta (.), alt çizgi (_) ve tire (-) içerebilmeli ve bir harfle başlamalıdır. |
Instance is running |
| ModificationProtectionConfig |
object |
No |
Yapılandırma salt okunur modunun yapılandırması. |
|
| Status |
string |
No |
Yapılandırma salt okunur modunun etkinleştirilip etkinleştirilmeyeceğini belirtir. Geçerli değerler:
Not
Parametre ConsoleProtection olarak ayarlanırsa, yapılandırma salt okunur modu etkinleştirilir. NLB konsolunda NLB örneğinin yapılandırmalarını değiştiremezsiniz. Ancak, NLB örneğinin yapılandırmalarını değiştirmek için API işlemlerini çağırabilirsiniz. |
ConsoleProtection |
| Reason |
string |
No |
Yapılandırma salt okunur modunu etkinleştirme nedeni. Neden 2 ila 128 karakter uzunluğunda olmalı, harf, rakam, nokta (.), alt çizgi (_) ve tire (-) içerebilmeli ve bir harfle başlamalıdır. Not
Bu parametre yalnızca Status, ConsoleProtection olarak ayarlandığında geçerli olur. |
Business protection period |
| Tag |
array<object> |
No |
Etiketler. |
|
|
object |
No |
Etiket. |
||
| Key |
string |
No |
Etiketin anahtarı. Etiket anahtarı en fazla 64 karakter uzunluğunda olabilir, Her çağrıda en fazla 20 etiket belirtebilirsiniz. |
env |
| Value |
string |
No |
Etiketin değeri. Etiket değeri en fazla 128 karakter uzunluğunda olabilir, Her çağrıda en fazla 20 etiket belirtebilirsiniz. |
product |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt. |
||
| RequestId |
string |
İsteğin kimliği. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| LoadbalancerId |
string |
NLB örneğinin kimliği. |
nlb-83ckzc8d4xlp8o**** |
| OrderId |
integer |
NLB örneği için siparişin kimliği. |
20230000 |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"LoadbalancerId": "nlb-83ckzc8d4xlp8o****",
"OrderId": 20230000
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.OnlyPayByTrafficSupported | The operation is not allowed because of OnlyPayByTrafficSupported. | |
| 400 | OperationFailed.%s | The operation failed because of %s. | Failed to call the API operation due to %. |
| 400 | Mismatch.ZoneIdAndVswitchId | The ZoneIdAndVswitchId is mismatched for %s and %s. | |
| 400 | QuotaExceeded.%s | The quota of %s is exceeded, usage %s/%s. | |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | OperationDenied.OnlyPostPaidSupported | The operation is not allowed because of OnlyPostPaidSupported. | |
| 400 | OperationFailed.DuplicateZones. | The operation failed because of Can not Specify duplicate zones. | |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | The specified virtual switch (vSwitch) IP resources are insufficient. |
| 400 | DuplicatedParam.AllocationId | The param of AllocationId is duplicated. | |
| 400 | ResourceInConfiguring.VswitchId | The specified resource of VswitchId is being configured, please try again later. | The specified resource of VswitchId is being configured, please try again later. |
| 400 | IllegalParam | The param of %s is illegal. | |
| 400 | OperationFailed.UnpaidBill | The operation failed because of UnpaidBill. | |
| 400 | OperationDenied.ServiceLinkedRoleNotExist | The operation is not allowed because of ServiceLinkedRoleNotExist. | The operation is not allowed because of ServiceLinkedRoleNotExist.Please check if the necessary permissions are granted in RAM for the NLB. |
| 400 | ResourceAlreadyAssociated.AllocationId | The specified resource of %s is already associated. | |
| 400 | OperationFailed.vSwitchNotSupportIpv6 | The operation failed because of vSwitchNotSupportIpv6. | |
| 400 | InvalidZones | The current zone list is illegal. | The Availability Zone used in Zone maping is illegal. |
| 400 | QuotaExceeded.QuotaInsufficient | The quota of %s is exceeded, usage %s/%s. | The quota is insufficient, currently used %s/%s. Please modify the quota size in the quota center. |
| 400 | ResourceInUse.IP | The specified resource of IP is in use. | |
| 400 | OperationFailed.CreateOrderError | Operation failed because CreateOrderError. | The operation failed because the order creation failed. |
| 400 | OperationFailed.NotExist.ResourceGroup | Operation failed because ResourceGroup not exist. | The specified resource group does not exist. |
| 400 | IllegalParam.loadBalancerName | Param loadBalancerName is illegal. | The instance name is invalid. Check the parameters. |
| 400 | SystemBusy | System is busy, please try again later. | |
| 400 | MissingParam.%s | The parameter of %s is missing. | |
| 400 | IllegalParam.DeletionProtectionConfig | DeletionProtectionConfig reason is illegal. | The reason parameter for changing the delete protection status is invalid. |
| 400 | IllegalParam.ModificationProtectionConfig | ModificationProtectionConfig reason is illegal. | ModificationProtectionConfig reason is illegal. |
| 400 | Throttling.User | Request was denied due to api flow control. | Request was denied due to api flow control. |
| 403 | UnauthorizedZone | The specified zone of %s is not authorized. | |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 403 | UnauthorizedRegion | The specified region of %s is not authorized. | |
| 404 | ResourceNotFound.VSwitch | The specified resource of vSwitch is not found. | The specified vSwitch resource was not found. Please check the input parameters. |
| 404 | ResourceNotFound.Vpc | The specified resource of Vpc is not found. | The specified VPC resource was not found. Please check the input parameters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.