Tüm Ürünler
Search
Belge Merkezi

:UpdateLoadBalancerAddressTypeConfig

Son Güncelleme:Sep 30, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

nlb:UpdateLoadBalancerAddressTypeConfig

update

*LoadBalancer

acs:nlb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}

  • nlb:AddressType
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: İnternet'e açık bir NLB örneğinin düğümleri genel IP adreslarına sahiptir. İnternet'e açık bir NLB örneğinin DNS adı, düğümlerin genel IP adreslarına genel olarak çözümlenebilir. Bu nedenle, İnternet'e açık NLB örnekleri istemcilerden gelen istekleri İnternet üzerinden yönlendirebilir.

  • Intranet: Dahili bir NLB örneğinin düğümleri yalnızca özel IP adreslarına sahiptir. Dahili bir NLB örneğinin DNS adı, düğümlerin özel IP adreslarına genel olarak çözümlenebilir. Bu nedenle, dahili NLB örnekleri yalnızca NLB örneği için sanal özel buluta (VPC) erişimi olan istemcilerden gelen istekleri yönlendirebilir.

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:

  • Common: bir EIP

  • Anycast: bir Anycast EIP

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:

  • true: Yalnızca deneme çalıştırması yapılır. Sistem; eksik parametre değerleri, hatalı istek sözdizimi ve hizmet limitleri gibi olası sorunlara karşı isteği kontrol eder. İstek kontrolü geçemezse sorunu belirten bir hata mesajı döndürülür. İstek kontrolü geçerse DryRunOperation hata kodu döndürülür.

  • false (varsayılan): İstek kontrol edilir ve işlem gerçekleştirilir. İstek kontrolü geçerse 2xx HTTP durum kodu döndürülür ve işlem gerçekleştirilir.

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.