Bir Ağ Yük Dengeleyici (NLB) örneğinin IPv4 adresinin ağ türünü değiştirir.
Operation description
-
Bir NLB örneğinin oluşturulduğundan emin olun. Daha fazla bilgi için CreateLoadBalancer bölümüne bakın.
-
Ağ türünü değiştirdikten sonra bir NLB örneğinin AddressType değerini sorgulamak için GetLoadBalancerAttribute işlemini çağırabilirsiniz.
-
UpdateLoadBalancerAddressTypeConfig eşzamansız bir işlemdir. Bir istek gönderildikten sonra sistem bir istek kimliği döndürür ve görevi arka planda çalıştırır. Görev durumunu sorgulamak için GetJobStatus işlemini çağırabilirsiniz:
Görev Succeeded durumundaysa, NLB örneğinin IPv4 adresinin ağ türü değiştirilmiştir.
Görev Processing durumundaysa, NLB örneğinin IPv4 adresinin ağ türü değiştirilmektedir. Bu durumda yalnızca sorgulama işlemleri gerçekleştirebilirsiniz.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:UpdateLoadBalancerAddressTypeConfig |
update |
*LoadBalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
NLB örneğinin kimliği. |
nlb-83ckzc8d4xlp8o**** |
| AddressType |
string |
Yes |
Yeni ağ türü. Geçerli değerler:
|
Internet |
| ZoneMappings |
array<object> |
No |
Bölgeler ve vSwitch'ler arasındaki eşlemeler. En fazla 10 bölge belirtebilirsiniz. |
|
|
object |
No |
Bölge ile bölgedeki bir vSwitch arasındaki eşleme. |
||
| VSwitchId |
string |
No |
Bölgedeki vSwitch'in kimliği. Bir NLB örneğinin her bölgesinde yalnızca bir vSwitch (alt ağ) belirtebilirsiniz. |
vsw-bp10ttov87felojcn**** |
| ZoneId |
string |
No |
NLB örneğinin bölge kimliği. En güncel bölge listesini sorgulamak için DescribeZones işlemini çağırabilirsiniz. |
cn-hangzhou-a |
| AllocationId |
string |
No |
Esnek IP adresinin (EIP) kimliği. |
eip-bp1aedxso6u80u0qf**** |
| EipType |
string |
No |
EIP türü. Geçerli değerler:
Not
Bu parametre yalnızca AddressType değeri Internet olarak ayarlandığında gereklidir. |
Common |
| DryRun |
boolean |
No |
İsteği gerçekten yapmadan bir deneme çalıştırması gerçekleştirir. Geçerli değerler:
|
false |
| ClientToken |
string |
No |
İsteğin yinelenmezliğini sağlamak için kullanılan istemci belirteci. Bu değeri oluşturmak için istemciyi kullanabilirsiniz. Değerin tüm istekler arasında benzersiz olduğundan emin olun. Yalnızca ASCII karakterlerine izin verilir. Not
Bu parametreyi belirtmezseniz RequestId değeri kullanılır. Her isteğin RequestId değeri farklıdır. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
NLB örneğinin bölge kimliği. En güncel bölge listesini sorgulamak için DescribeRegions işlemini çağırabilirsiniz. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Bir NLB örneğinin IPv4 adresinin ağ türünü değiştirir. |
||
| RequestId |
string |
İstek kimliği. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| JobId |
string |
Eşzamansız görevin kimliği. |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DuplicatedParam.AllocationId | The param of AllocationId is duplicated. | |
| 400 | ResourceInConfiguring.loadbalancer | The specified resource of loadbalancer is being configured, please try again later. | The specified resource of loadbalancer is being configured, please try again later. |
| 400 | OperationDenied.EipAlreadyInBandwidthPackage | The operation is not allowed because of EipAlreadyInBandwidthPackage. | |
| 400 | ResourceInConfiguring.%s | The specified resource of %s is being configured, please try again later. | |
| 400 | OperationDenied.AddressTypeNotChanged | The operation is not allowed because of AddressTypeNotChanged. | |
| 400 | Mismatch.ZoneIdAndVswitchId | The ZoneIdAndVswitchId is mismatched for %s and %s. | |
| 400 | TagInvokeError | listTagsByResourceIds: InvalidResourceId.NotFound : The specified ResourceIds are not found in our records. | |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | IllegalParam | The param of %s is illegal. | |
| 400 | Throttling.User | Request was denied due to api flow control. | Request was denied due to api flow control. |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | The specified load balancer resource was not found. Please check the input parameters. |
| 404 | ResourceNotFound.AnycastInstance | The specified resource of AnycastInstance is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.